Google TTS (Text-To-Speech) for node.js
$ npm install google-tts-api --save
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);
});
Google Text-To-Speech API (for free) can not deal with texts which are over than 200 characters. (#5)
You can find suitable languageCode
from Google Document.
MIT