1.0.0 • Published 7 years ago

whatever-tts v1.0.0

Weekly downloads
4
License
MIT
Repository
github
Last release
7 years ago

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)