{"name":"say","description":"TTS (Text To Speech) Module for Node.js","version":"0.13.1","author":{"name":"Marak Squires"},"license":"MIT","scripts":{"test":"standard && ./examples/basic-callback.js","lint":"standard","lint-fix":"standard --fix"},"repository":{"type":"git","url":"git+ssh://git@github.com/Marak/say.js.git"},"typings":"index.d.ts","engines":{"node":">=6.9"},"devDependencies":{"standard":"^10.0.3"},"dependencies":{"one-time":"0.0.4"},"gitHead":"99489dadb9a1fd0a0f8c72c31a112e562627c07d","bugs":{"url":"https://github.com/Marak/say.js/issues"},"homepage":"https://github.com/Marak/say.js#readme","_id":"say@0.13.1","_npmVersion":"5.3.0","_nodeVersion":"8.5.0","_npmUser":{"name":"tlhunter","email":"me@thomashunter.name"},"dist":{"integrity":"sha512-s6dJxKC7ww1b9km+NTc8eIAJoGfMgzcmz6qQfYKMifbFJ8wUPXDrHzHdskD+gd1ujeTaUzaQuS6FJaoo1CPxuQ==","shasum":"214635ab7e86e5583e7cbed75ceab4d85ab8de01","tarball":"http://registry-npm.ywwl.com/say/download/say-0.13.1.tgz","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCgUNFAU2gi3nmf1K2c5+hRvBFxvbOHRqKkQLXoVagACwIgBqumSGhXUTx9xyagmImNG7bwoszK5foynCuNaawSuTc="}],"size":4802,"noattachment":false,"key":"/say/-/say-0.13.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.13.1.tgz_1506814006908_0.7255319587420672"},"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":1506814007101,"_cnpm_publish_time":1506814007101,"dist-tags":{"latest":"0.16.0"}}