whatever-tts

1.0.0 • Public • Published

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)
 

/whatever-tts/

    Package Sidebar

    Install

    npm i whatever-tts

    Weekly Downloads

    1

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • revolunet