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-gttsHow 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');
})