A Node.js module for text-to-speech conversion using Google's TTS API.
$ npm install google-tts
You can either play the received speech directly or save it to a file:
var GoogleTTS = ;// Play the received speechGoogleTTS;// Save the received speech into an mp3 fileGoogleTTS;
The callback functions are run after the speech is finished playing or the file is completely written, respectively.
Note that the
.mp3 extension is added automatically to
filename for safety.