Available as a library on github or install it with npm.
npm install retro-speech-maker
const { RetroSpeech } = require ('retro-speech-maker' );
// Generate speech with a tone
RetroSpeech .speak (10 , "female" , "sawtooth" , "calm" , 0.8 );
// or let the sentence itself generate the tone via punctuation
RetroSpeech .speakText ("Hello there! How are you?" , "female" , "sawtooth" , 1 );