{"name":"say","description":"TTS (Text To Speech) Module for Node.js","version":"0.12.1","author":{"name":"Marak Squires"},"license":"MIT","repository":{"type":"git","url":"git+ssh://git@github.com/Marak/say.js.git"},"typings":"index.d.ts","engines":{"node":">=0.10.0"},"gitHead":"1e99157e11e2ce62f69e0699ab9ee7ff0d1e9f9a","bugs":{"url":"https://github.com/Marak/say.js/issues"},"homepage":"https://github.com/Marak/say.js#readme","_id":"say@0.12.1","_npmVersion":"5.4.1","_nodeVersion":"8.4.0","_npmUser":{"name":"tlhunter","email":"me@thomashunter.name"},"dist":{"integrity":"sha512-KxQjdBmfmZQsKUZvE1WgsAdTvSFbNm8c0AjOVvvuAwjxXUlE4R6P3dLfRk73IXkah5cwsqEp6Xkp19u6LSL1Ng==","shasum":"ea4c125294693c775f233341c7d14eae4d063c01","tarball":"http://registry-npm.ywwl.com/say/download/say-0.12.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICPnj9d+6JJPC8X2zJdgIZvelWY2SLfK9iG7gCcv1Rl8AiEAmMQzh34JckXCqh0ogqg2hmXLUlH3iyWEbCmWchJ/hU4="}],"size":3881,"noattachment":false,"key":"/say/-/say-0.12.1.tgz"},"maintainers":[{"name":"marak","email":"marak.squires@gmail.com"},{"name":"tlhunter","email":"tlhunter@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/say-0.12.1.tgz_1505077063307_0.24364009406417608"},"directories":{},"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":1505077063383,"_cnpm_publish_time":1505077063383,"dist-tags":{"latest":"0.16.0"}}