{"name":"say","description":"TTS (Text To Speech) Module for Node.js","version":"0.16.0","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":"^12.0.1"},"dependencies":{"one-time":"0.0.4"},"gitHead":"444a49c34c617c5f76268ab798bc1379a840c24e","bugs":{"url":"https://github.com/Marak/say.js/issues"},"homepage":"https://github.com/Marak/say.js#readme","_id":"say@0.16.0","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"tlhunter","email":"me@thomashunter.name"},"dist":{"integrity":"sha512-yEfncNu3I6lcZ6RIrXgE9DqbrEmvV5uQQ8ReM14u/DodlvJYpveqNphO55RLMSj77b06ZKNif/FLmhzQxcuUXg==","shasum":"c9e0cfe9e5b2c9af4098eab4023027e4c0e2e6e0","tarball":"http://registry-npm.ywwl.com/say/download/say-0.16.0.tgz","fileCount":11,"unpackedSize":16355,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdATy4CRA9TVsSAnZWagAAjh0P/iaJS0c9pu6xHFLGE7Dh\ncNYSDM+b+7bIgoLcLTss69Xr01DbPMJoVn6qlTnEIFM9P4vzU4FI+2n01qnZ\nEQdVQr0vNMXSMB6pNI6PBoCzywVbMPJyh9w75u9N1IDzTdLp70ZYj3+nP3lu\nwpmUFveWNJt5inpFvWZN3EwevtvtXlOua0/6skYMQttfyLYCNF6wv0Vmd3Si\n0K1ZisM+F06EiJDNIkPk5ebeQO/c8GhW7KOl4TkY0d0kkpolw6TzfJYYAQKt\n7PE58ayVwzVvTNJ7cT+zWWSoan1lg3xZ0rtfV8urtSaBq9Vn3miJH87c0sSR\nOSGKsae/WRh3eexLc3i1DOkFpGBJAnyZ81W8JMasl+PSEvC1Mk8zw3dIITbG\nHAlX1XU3xNri3oNm/CBGwILZaDZlmqEqYTMxVv+OkjdJJ+iryWtEDJKZK7wI\nPOG9J28o3ClZaT7K6UAKFpA7jIoE7R+qnncmMQjzEBkOQknX4Z702xNXS/M3\nmbXChHNf4gQa1ip9p3buVX83rxFqCilHBuUp1GVkZlSRjJe+aKsChdWChZV2\nNDqdq4QdoCJD6EvSY/RecHJOxBFXTXlgQ2ZRD3l9vEmGgljy8WsXcO6gdsgx\nvtWgYy6zkhtbVbvMUDdlmXY/QLxcSoERRnETGSO2KjCc9VZwg3XXrlQs2QWb\nQoXd\r\n=oC0m\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEX01LiyhsW8jtfKVl/FCkr4e8RpMvkihaIRtrAi/RG4AiEAjE+vUi09V0NZpbBGCFfXTJk4/yL4CZzNVnj4+qHsaVg="}],"size":5180,"noattachment":false,"key":"/say/-/say-0.16.0.tgz"},"maintainers":[{"name":"marak","email":"marak.squires@gmail.com"},{"name":"tlhunter","email":"tlhunter@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/say_0.16.0_1560362168021_0.2414390783366045"},"_hasShrinkwrap":false,"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":1560362168110,"_cnpm_publish_time":1560362168110,"dist-tags":{"latest":"0.16.0"}}