{"name":"say","description":"TTS (Text To Speech) Module for Node.js","version":"0.15.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":"^10.0.3"},"dependencies":{"one-time":"0.0.4"},"gitHead":"9399f98df3a59cc5aed0e9f6553c62ae1ef095a9","bugs":{"url":"https://github.com/Marak/say.js/issues"},"homepage":"https://github.com/Marak/say.js#readme","_id":"say@0.15.0","_npmVersion":"5.6.0","_nodeVersion":"8.11.1","_npmUser":{"name":"tlhunter","email":"me@thomashunter.name"},"dist":{"integrity":"sha512-X/vJ/ETDUnU0WZVJ1HA6AHzJJzT0PvFuZyThJ76wkqwsgcgvqJVH3tf+EqHdDBgANdYUEEmqzYo6I31cvT08pQ==","shasum":"ca0d7b88a06cfc485aaa82287b263c31a0d33e75","tarball":"http://registry-npm.ywwl.com/say/download/say-0.15.0.tgz","fileCount":11,"unpackedSize":15596,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJbKKt0CRA9TVsSAnZWagAAmbkQAJ7HFAL3XZA9p+e4Nw57\nj/wYz8FsV7YPNCsmxN+ugOuRAzzsTikqB/iyBmvFaxKRrsLK51+oJtW8B0/r\nUm4fIV5aX1bsyNCvCKy+Llnkn+pt/ppP5UNSd0CFOxDkIMgxlNOcylOW9IXM\nmZelKg+R24naaQvPzfn07IaMqOUGRDK8mdMS9iZZIfRIb4DJ4HqMhCGudHiq\nB/iSLXeYak3ER9BWtWmsL4JS9g9xfaGI2yRdbBwNgz6nIBsTz4CudfGrjUSW\nn4Sk3XyW74ab8SB5xulX9Z/QZwdan0zQBvmBqid3VfcYdI1coY0aPQM2fUgU\nbBxbjUkxLRdD818py3AQ9YxOPnIcWextFP3MKHfv8ueTauk7o+doMjDXkK+4\nFSLh2uIQv3Alq4lOWcOSIsEsqCayslJ3Y/PzMedLvQqgJf7dgREVV8DAL8lN\nHj4NttTqgIZ4VeEBSZtixsbz5KETzR1mNOzAEvA5XycUlSXCcw1aoGyZc8Nc\nOg0VR/ZJenJWoHhQqsVST1vCG0rPjKQHenW5g3H79J+SNe2jAp4FAfUZpaEf\n/3dMn/XevRtZN0u5M+7R8u+LtxI202xP0ICFaeMUeXeo9Ic/9TZyt8CMu6o/\nyTLlGNb9D77NpSt1Q2vbV1AJYGZ/oQQOvAcbxSn72BTKhVu0T17QYpHpZ0y1\nLxs1\r\n=fJCu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC6IaDIJwT4gY18XT1Syfx2b/R8YcB+rwzK0p6nX0PN6QIgfdaIp1aidlI8FnUGhaBxvMqK9CHwFZKX+sRe9/BhDpY="}],"size":5139,"noattachment":false,"key":"/say/-/say-0.15.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.15.0_1529391987223_0.2385273904890295"},"_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":1529391987340,"_cnpm_publish_time":1529391987340,"dist-tags":{"latest":"0.16.0"}}