JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 13097
  • Score
    100M100P100Q132992F
  • License Apache-2.0

Google Text-to-Speech for NodeJS (Unofficial API)

Package Exports

  • node-gtts

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 (node-gtts) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

node-gtts

Google Text-to-Speech for NodeJS (Unofficial API)

How to install

npm install node-gtts

How to use

const gtts = require('node-gtts')('en');
ttsEn.save(filepath, 'your text', callback);

Example

var gtts = require('node-gtts')('en');
var path = require('path');
var filepath = path.join(__dirname, 'i-love-you.wav');
gtts.save(filepath, 'I love you', function() {
  console.log('save done');
})