{"_id":"node-gtts","_rev":"8-9fa2f7119e6057a839209784723564ce","name":"node-gtts","description":"Google Text-to-Speech for NodeJS (Unofficial API)","dist-tags":{"latest":"2.0.2"},"versions":{"1.0.0":{"name":"node-gtts","version":"1.0.0","description":"Google Text-to-Speech for NodeJS (Unofficial API)","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/thiennq/node-gtts.git"},"keywords":["node","google","text-to-speech","read","text","google","translate"],"author":{"name":"Thien Nguyen"},"license":"Apache-2.0","bugs":{"url":"https://github.com/thiennq/node-gtts/issues"},"homepage":"https://github.com/thiennq/node-gtts#readme","dependencies":{"async":"^2.4.1","escape-string-regexp":"^1.0.5","fake-useragent":"^1.0.1","multistream":"^2.1.0","request":"^2.81.0"},"gitHead":"f488716f40689109240685938752f2cd6583c153","_id":"node-gtts@1.0.0","_shasum":"04a6ce60fa9e9a00014035c665134c29deea2300","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.0","_npmUser":{"name":"thiennq","email":"quangthien.cse10@gmail.com"},"dist":{"shasum":"04a6ce60fa9e9a00014035c665134c29deea2300","tarball":"https://registry.npmjs.org/node-gtts/-/node-gtts-1.0.0.tgz","integrity":"sha512-MfD3Mca3J8FwtK9kWnJkX2FRrK/eYIy4K+m6ZBbkEifCg+P8M6TgSfvs8uSJYi4LlSRMP1X5IpJTVWALRtZKkg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIE/PgtmwyePfFCMytFRX1xxTa+ESfsjX5uDbyaMv09T3AiEAiQWk/YJUKzkEPvA7/Y/IIqGoKLK96Fp7CJiyaomebP8="}]},"maintainers":[{"name":"thiennq","email":"quangthien.cse10@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-gtts-1.0.0.tgz_1498160821626_0.3969680517911911"}},"1.0.1":{"name":"node-gtts","version":"1.0.1","description":"Google Text-to-Speech for NodeJS (Unofficial API)","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/thiennq/node-gtts.git"},"keywords":["node","google","text-to-speech","read","text","google","translate"],"author":{"name":"Thien Nguyen"},"license":"Apache-2.0","bugs":{"url":"https://github.com/thiennq/node-gtts/issues"},"homepage":"https://github.com/thiennq/node-gtts#readme","dependencies":{"async":"^2.4.1","escape-string-regexp":"^1.0.5","fake-useragent":"^1.0.1","multistream":"^2.1.0","request":"^2.81.0"},"gitHead":"6c337a02a03a55c80d31139dcd6cd921ef204798","_id":"node-gtts@1.0.1","_shasum":"4099ab7d15ab237cbb696572fe4f192fb218cd96","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.0","_npmUser":{"name":"thiennq","email":"quangthien.cse10@gmail.com"},"dist":{"shasum":"4099ab7d15ab237cbb696572fe4f192fb218cd96","tarball":"https://registry.npmjs.org/node-gtts/-/node-gtts-1.0.1.tgz","integrity":"sha512-ee6K+89WJfgTzU8mwv8Mo9ZOM57qYYlxcv24WZzduvtV0ifykR139PI3wLxMOKN62m2r5MpfAXaIcny2CzLybg==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCAEyawJM5LIBaP0R8tdnwRIBum9FkOvaLUj5ibiOP44AIhAMBHEAQAWQIxbwjzQ8E/oz7N4dfG4QJYxTEeCYRwwOph"}]},"maintainers":[{"name":"thiennq","email":"quangthien.cse10@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-gtts-1.0.1.tgz_1498161041507_0.4746887481305748"}},"1.1.1":{"name":"node-gtts","version":"1.1.1","description":"Google Text-to-Speech for NodeJS (Unofficial API)","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/thiennq/node-gtts.git"},"keywords":["node","google","text-to-speech","read","text","google","translate"],"author":{"name":"Thien Nguyen"},"license":"Apache-2.0","bugs":{"url":"https://github.com/thiennq/node-gtts/issues"},"homepage":"https://github.com/thiennq/node-gtts#readme","dependencies":{"async":"^2.4.1","escape-string-regexp":"^1.0.5","fake-useragent":"^1.0.1","multistream":"^2.1.0","request":"^2.81.0"},"gitHead":"a038068e95fe5928318340db707fd2b040c186c3","_id":"node-gtts@1.1.1","_shasum":"967536a78aecbe5a91e07b90baa713d4836bd42e","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.0","_npmUser":{"name":"thiennq","email":"quangthien.cse10@gmail.com"},"dist":{"shasum":"967536a78aecbe5a91e07b90baa713d4836bd42e","tarball":"https://registry.npmjs.org/node-gtts/-/node-gtts-1.1.1.tgz","integrity":"sha512-WJXeSgDHDP6M702WDAGwp6ZVdOXJEhfHHBupZJQgd4+yVVy1zEHqVyy6kq3SKj9xDarEUC9qVOOFiw/bWVklPQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCmb++6og6fmWpKjL3xU5YoooDLg1yZ5N6iZtoacGnmSwIhANFRupX0N51c4/xnCDQM6xNb1BDBwm8zGMtLlYw44gKO"}]},"maintainers":[{"name":"thiennq","email":"quangthien.cse10@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-gtts-1.1.1.tgz_1498161526207_0.14430461870506406"}},"1.1.2":{"name":"node-gtts","version":"1.1.2","description":"Google Text-to-Speech for NodeJS (Unofficial API)","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/thiennq/node-gtts.git"},"keywords":["node","google","text-to-speech","read","text","google","translate"],"author":{"name":"Thien Nguyen"},"license":"Apache-2.0","bugs":{"url":"https://github.com/thiennq/node-gtts/issues"},"homepage":"https://github.com/thiennq/node-gtts#readme","dependencies":{"async":"^2.4.1","escape-string-regexp":"^1.0.5","fake-useragent":"^1.0.1","multistream":"^2.1.0","request":"^2.81.0"},"gitHead":"cc589471d55253501413196847496ef853eb20ea","_id":"node-gtts@1.1.2","_shasum":"3beebbcb95f3cb3d8971087876a0ecd6b402dfba","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.0","_npmUser":{"name":"thiennq","email":"quangthien.cse10@gmail.com"},"dist":{"shasum":"3beebbcb95f3cb3d8971087876a0ecd6b402dfba","tarball":"https://registry.npmjs.org/node-gtts/-/node-gtts-1.1.2.tgz","integrity":"sha512-pSZBMH9NPp4QHb/Zx5k4EZZ4KBdldqjuKRN/YMgP6b13rUoeRWtU5ZRBGsDvkDWfKYtDJ7TpV22sw3ug4e0G2g==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDXdVdcYUKJaMyW2FEa1YIbxPk1qJWcUCwYm31yad81agIhAM0djNGXK3drnZ+RVOPsI6H2mVqFVVaObNOU9F+orcsj"}]},"maintainers":[{"name":"thiennq","email":"quangthien.cse10@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-gtts-1.1.2.tgz_1498162452621_0.4757717060856521"}},"1.2.1":{"name":"node-gtts","version":"1.2.1","description":"Google Text-to-Speech for NodeJS (Unofficial API)","main":"index.js","scripts":{"test":"node test.js"},"repository":{"type":"git","url":"git+https://github.com/thiennq/node-gtts.git"},"keywords":["node","google","text-to-speech","read","text","google","translate"],"author":{"name":"Thien Nguyen"},"license":"Apache-2.0","bugs":{"url":"https://github.com/thiennq/node-gtts/issues"},"homepage":"https://github.com/thiennq/node-gtts#readme","dependencies":{"async":"^2.4.1","escape-string-regexp":"^1.0.5","fake-useragent":"^1.0.1","multistream":"^2.1.0","request":"^2.81.0"},"gitHead":"5cf4eb392970fe55b8c176a9b6c7c4a6078b2651","_id":"node-gtts@1.2.1","_shasum":"d38c60fdd031982552204c856ab0c741b5fad7df","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.0","_npmUser":{"name":"thiennq","email":"quangthien.cse10@gmail.com"},"dist":{"shasum":"d38c60fdd031982552204c856ab0c741b5fad7df","tarball":"https://registry.npmjs.org/node-gtts/-/node-gtts-1.2.1.tgz","integrity":"sha512-vG2T+pAIgDk5L4Z31co2SKfo9mokEBjggYzabRwc81eu8hlGbXtYh0iiku/mT+f6k0ksZb+t5nWoJrFHVQwscw==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDiuPd6Bm7soAYl1OziXfUiJRwbKE4Ck+wsUO575r8uOwIgGT4RhrWEBrdFFVgOf37ODC5lM2skF6lKfW6yVwpYog8="}]},"maintainers":[{"name":"thiennq","email":"quangthien.cse10@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-gtts-1.2.1.tgz_1498199710613_0.6214805454947054"}},"2.0.1":{"name":"node-gtts","version":"2.0.1","description":"Google Text-to-Speech for NodeJS (Unofficial API)","main":"index.js","scripts":{"test":"node test.js"},"bin":{"node-gtts":"./bin.js"},"repository":{"type":"git","url":"git+https://github.com/thiennq/node-gtts.git"},"keywords":["node","google","text-to-speech","read","text","google","translate"],"author":{"name":"Thien Nguyen"},"license":"Apache-2.0","bugs":{"url":"https://github.com/thiennq/node-gtts/issues"},"homepage":"https://github.com/thiennq/node-gtts#readme","dependencies":{"async":"^2.4.1","escape-string-regexp":"^1.0.5","fake-useragent":"^1.0.1","multistream":"^2.1.0","request":"^2.81.0"},"gitHead":"94983d130273e67497d1d6e170560464d0123e24","_id":"node-gtts@2.0.1","_shasum":"d58b8b51080d383e14e0d0445156a2da44440b2a","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.0","_npmUser":{"name":"thiennq","email":"quangthien.cse10@gmail.com"},"dist":{"shasum":"d58b8b51080d383e14e0d0445156a2da44440b2a","tarball":"https://registry.npmjs.org/node-gtts/-/node-gtts-2.0.1.tgz","integrity":"sha512-HXyu4yN/k88xuf98pslpgf4gnI0GArRItIEvQhkCc85xrVLodteKGEjYoXtIPMq95A0qVYIc9T50sBtdDvyHmA==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH+epdNQHt6R0BuM7/+zdKx4MIL9BH3UoGtc8rq7r8HUAiAGQNSxnoIcgVmaIT0e9J58qPo/rupgV4qQi7N/6rbNfw=="}]},"maintainers":[{"name":"thiennq","email":"quangthien.cse10@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-gtts-2.0.1.tgz_1498202881388_0.7948306566104293"}},"2.0.2":{"name":"node-gtts","version":"2.0.2","description":"Google Text-to-Speech for NodeJS (Unofficial API)","main":"index.js","scripts":{"test":"node test.js"},"bin":{"node-gtts":"./bin.js"},"repository":{"type":"git","url":"git+https://github.com/thiennq/node-gtts.git"},"keywords":["node","google","text-to-speech","read","text","google","translate"],"author":{"name":"Thien Nguyen"},"license":"Apache-2.0","bugs":{"url":"https://github.com/thiennq/node-gtts/issues"},"homepage":"https://github.com/thiennq/node-gtts#readme","dependencies":{"async":"^2.4.1","escape-string-regexp":"^1.0.5","fake-useragent":"^1.0.1","multistream":"^2.1.0","request":"^2.81.0"},"gitHead":"a12c8f86eff17a5672a4a87416ff6e060487175d","_id":"node-gtts@2.0.2","_shasum":"b0ae0e544c249e3455b63291725c1b9f865cb59e","_from":".","_npmVersion":"4.2.0","_nodeVersion":"7.10.0","_npmUser":{"name":"thiennq","email":"quangthien.cse10@gmail.com"},"dist":{"shasum":"b0ae0e544c249e3455b63291725c1b9f865cb59e","tarball":"https://registry.npmjs.org/node-gtts/-/node-gtts-2.0.2.tgz","integrity":"sha512-g1EVgKgUJvbLheD3378SYQpUIca6U9F2VBzMzk5WxxSWzZb+IRGVSMoVGPwvpg4buZxE/FCL13tzzg2j1FAvbQ==","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCNDTcoSGoUvOpkwhtx6cbk3tAi48WpQtfs+jYW/DWLSwIgT5LkqBEfdCSjVgjDFhArnMq1/xN+97PGmORvnsVn+dI="}]},"maintainers":[{"name":"thiennq","email":"quangthien.cse10@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/node-gtts-2.0.2.tgz_1498234376705_0.5701153413392603"}}},"readme":"# node-gtts\nGoogle Text-to-Speech for NodeJS (Unofficial API)\n\n## How to install\n```bash\nnpm install node-gtts\n```\n\n## How to use\n\n### 1. Save audio file\n```javascript\nvar gtts = require('node-gtts')('en');\nvar path = require('path');\nvar filepath = path.join(__dirname, 'i-love-you.wav');\n\ngtts.save(filepath, 'I love you', function() {\n  console.log('save done');\n})\n```\n\n### 2. Pipe directly to router response\nExample with ExpressJS Router\n\n```javascript\nvar express = require('express');\nvar router = express.Router();\nvar gtts = require('node-gtts')('en');\n\nrouter.get('/speech', function(req, res) {\n  res.set({'Content-Type': 'audio/mpeg'});\n  gtts.stream(req.query.text).pipe(res);\n})\n```\n\n### 3. Create a standalone server\n```javascript\nvar gtts = require('node-gtts')('en');\ngtts.createServer(8668);\n```\n\n### 4. Command line usage\n```bash\n# create file: helllo-world.wav\nnode-gtts en Hello World\n\n# create server listen port 8668\n# (in English by default)\nnode-gtts serve 8668 en\n```\n\n\n## API for standalone server\n`GET /?text={your-text}`\n+ stream audio of speech with default language\n\n`GET /?text={your-text}?lang={lang}`\n+ stream audio of speech with specific language\n","maintainers":[{"name":"thiennq","email":"quangthien.cse10@gmail.com"}],"time":{"modified":"2022-06-21T15:21:10.213Z","created":"2017-06-22T19:47:01.720Z","1.0.0":"2017-06-22T19:47:01.720Z","1.0.1":"2017-06-22T19:50:41.605Z","1.1.1":"2017-06-22T19:58:46.358Z","1.1.2":"2017-06-22T20:14:12.709Z","1.2.1":"2017-06-23T06:35:11.025Z","2.0.1":"2017-06-23T07:28:01.523Z","2.0.2":"2017-06-23T16:12:56.836Z"},"homepage":"https://github.com/thiennq/node-gtts#readme","keywords":["node","google","text-to-speech","read","text","google","translate"],"repository":{"type":"git","url":"git+https://github.com/thiennq/node-gtts.git"},"author":{"name":"Thien Nguyen"},"bugs":{"url":"https://github.com/thiennq/node-gtts/issues"},"license":"Apache-2.0","readmeFilename":"readme.md"}