npm stats
  • Search
  • About
  • Repo
  • Sponsor
  • more
    • Search
    • About
    • Repo
    • Sponsor

Made by Antonio Ramirez

browser-speak

0.1.0

@lukeed

npmHomeRepoSnykSocket
Downloads:177
$ npm install browser-speak
DailyWeeklyMonthlyYearly

browser-speak Build Status

Simple text-to-speech function in supported browsers


:warning: Experimental Technology :warning:

Very limited browser support. Please check the compatability table for info.

---

Install

$ npm install --save browser-speak

Usage

const speak = require('browser-speak');

speak('unicorns');
//=> :speaker: "unicorns"

speak('another voice', 8);
//=> :speaker: "another voice"

API

speak(msg, idx)

msg

Type: string

The message to be said.

idx

Type: integer
Default: 0

The voice index to speak with.

License

MIT © Luke Edwards