npm.io
1.0.0 • Published 9 years ago

whatever-tts

Licence
MIT
Version
1.0.0
Deps
1
Vulns
1
Weekly
0
Stars
1

whatever-tts

npm package

return MP3 audio as a stream from given text

currently use google translate backend

Usage

This example write the audio file to out.mp3

var tts = require('whatever-tts');
var outFile = require('fs').createWriteStream('./out.mp3');

tts("hello world", { lang: "en" }).then(stream => stream.pipe(outFile)).catch(console.log)