oliversierrab / google-tts

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

Home Page:https://www.npmjs.com/package/google-tts-api

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

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

https://www.npmjs.com/package/google-tts-api

License:MIT License


Languages

Language:JavaScript 100.0%