{"name":"say","description":"TTS (text to speech) for node.js. send text from node.js to your speakers.","version":"0.4.0","author":{"name":"Marak Squires"},"repository":{"type":"git","url":"http://github.com/Marak/say.js.git"},"dependencies":{"colors":">= 0.3.0","translate":">= 0.3.3"},"engine":["node >=0.1.90"],"main":"lib/say","_id":"say@0.4.0","engines":{"node":"*"},"_engineSupported":true,"_npmVersion":"0.2.15","_nodeVersion":"v0.3.1","directories":{"lib":"./lib"},"modules":{"say.js":"lib/say.js"},"files":[""],"_defaultsLoaded":true,"dist":{"shasum":"60ee70b250340963c32e63ce441e05610e027f99","tarball":"http://registry-npm.ywwl.com/say/download/say-0.4.0.tgz","integrity":"sha512-e48cbH1q/moi7VKMmO27Dys9CdEOD109Y7lqox3BWe6kc9JaJGtRT7MWSSN9BLZ1KgSZRd8VD80mG0NQycc2PQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFuwVzXQoKBdgJVt3UiUOUlK4SbUEsxgvIBg+LesGr/PAiBv7/yGJnmMnLhTZxUwv17kPaTGGyARw1v0XxNWYPLWDA=="}],"size":78927,"noattachment":false,"key":"/say/-/say-0.4.0.tgz"},"readme":"<img src=\"https://travis-ci.org/Marak/say.js.svg?branch=master\" />\n\n<img src=\"https://github.com/Marak/say.js/raw/master/logo.png\" />\n\n## Installing say.js\n\n```bash\nnpm install say\n```\n\n\n## Usage\n\n```javascript\n// automatically pick platform\nconst say = require('say')\n\n// or, override the platform\nconst Say = require('say').Say\nconst say = new Say('darwin' || 'win32' || 'linux')\n\n// Use default system voice and speed\nsay.speak('Hello!')\n\n// Stop the text currently being spoken\nsay.stop()\n\n// More complex example (with an OS X voice) and slow speed\nsay.speak(\"What's up, dog?\", 'Alex', 0.5)\n\n// Fire a callback once the text has completed being spoken\nsay.speak(\"What's up, dog?\", 'Good News', 1.0, (err) => {\n  if (err) {\n    return console.error(err)\n  }\n\n  console.log('Text has been spoken.')\n});\n\n// Export spoken audio to a WAV file\nsay.export(\"I'm sorry, Dave.\", 'Cellos', 0.75, 'hal.wav', (err) => {\n  if (err) {\n    return console.error(err)\n  }\n\n  console.log('Text has been saved to hal.wav.')\n})\n```\n\n### Methods\n\n#### Speak:\n\n* Speed: 1 = 100%, 0.5 = 50%, 2 = 200%, etc\n\n```javascript\nsay.speak(text, voice || null, speed || null, callback || null)\n```\n\n#### Export Audio:\n\n* MacOS / Windows Only\n* Speed: 1 = 100%, 0.5 = 50%, 2 = 200%, etc\n\n```javascript\nsay.export(text, voice || null, speed || null, filename, callback || null)\n```\n\n#### Stop Speaking:\n\n```javascript\nsay.stop(callback || null)\n```\n\n#### Get List of Installed Voice(s):\n\n```javascript\nsay.getInstalledVoices(callback)\n```\n\n## Feature Matrix\n\nUnfortunately every feature isn't supported on every platform. PR's welcome!\n\nPlatform | Speak | Export | Stop | Speed | Voice | List\n---------|-------|--------|------|-------|-------|-----\nmacOS    | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :no_entry_sign:\nLinux    | :white_check_mark: | :no_entry_sign:    | :white_check_mark: | :white_check_mark: | :white_check_mark: | :no_entry_sign:\nWindows  | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark: | :white_check_mark:\n\n\n## macOS Notes\n\nVoices in macOS are associated with different localities. To a list of voices and their localities run the following command:\n\n```sh\nsay -v \"?\"\n```\n\nAs an example, the default voice is `Alex` and the voice used by Siri is `Samantha`.\n\n\n## Windows Notes\n\nNone.\n\n## Linux Notes\n\nLinux support requires [Festival](http://www.cstr.ed.ac.uk/projects/festival/). As far as I can tell there is no sane way to get a list of available voices. The only voice that seems to work is `voice_kal_diphone`, which seems to be the default anyway.\n\nThe `.export()` method is not available.\n\nTry the following command to install Festival with a default voice:\n\n```shell\nsudo apt-get install festival festvox-kallpc16k\n```\n\n\n## Requirements\n\n* Mac OS X (comes with `say`)\n* Linux with Festival installed\n* Windows (comes with SAPI.SpVoice)\n  * Needs to have Powershell installed and available in $PATH (see [issue #75](https://github.com/Marak/say.js/issues/75))\n","publish_time":1295915969820,"maintainers":[{"name":"marak","email":"marak.squires@gmail.com"},{"name":"tlhunter","email":"tlhunter@gmail.com"}],"_cnpm_publish_time":1295915969820,"dist-tags":{"latest":"0.16.0"}}