Skip to content
Google TTS (Text-To-Speech) for node.js
Branch: master
Clone or download
Latest commit b55689f Nov 29, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
example [example] modify the algorithm in the example of 'long-english-charac… Aug 11, 2017
lib
test Throw an exception if text length over than 200 characters. Aug 10, 2017
.gitignore [gitignore] add .DS_Store to gitignore Sep 21, 2018
.npmignore update version to 0.0.1 Mar 27, 2016
.travis.yml
CHANGELOG.md update version to 0.0.4 Nov 29, 2018
LICENSE
README.md
appveyor.yml [CI] remove node v4 from the test plan, and add node v10 Sep 21, 2018
index.js implement google-tts Mar 27, 2016
package-lock.json
package.json
yarn.lock update the development dependencies Sep 21, 2018

README.md

google-tts

Google TTS (Text-To-Speech) for node.js

Installation

$ npm install google-tts-api --save

Change Log

Please see CHANGELOG.

Usage

var googleTTS = require('google-tts-api');

googleTTS('Hello World', 'en', 1)   // speed normal = 1 (default), slow = 0.24
.then(function (url) {
  console.log(url); // https://translate.google.com/translate_tts?...
})
.catch(function (err) {
  console.error(err.stack);
});

More Example

Limitation

Google Text-To-Speech API (for free) can not deal with texts which are over than 200 characters. (#5)

Language Support

You can find suitable languageCode from Google Document.

License

MIT

You can’t perform that action at this time.
You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session.