JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 81128
  • Score
    100M100P100Q168118F
  • License MIT

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

Package Exports

  • google-tts-api

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (google-tts-api) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

google-tts

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

Installation

$ npm install google-tts-api --save

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