constGoogleTts=require("google-tts.js")/*GoogleTts.saveFile("text", "language codes", "the location that will be filled by the result mp3. (optional)")*/GoogleTts.saveFile("abc","id","./src/audio.mp3").then(console.log)/* console log:{ success: true, message: 'Saved audio in ./src/audio.mp3' }*//* andadd the resulting file to the location you wrote earlier.*/
Response
console log:
{ success: true, message: 'Saved audio in ./src/audio.mp3' }
and add the resulting file to the location you wrote earlier.
Events
Saved with .mp3 Result
GoogleTts.saveFile("text","language codes","the location that will be filled by the result mp3. (optional)")
The Tidelift Subscription provides access to a continuously curated stream of human-researched and maintainer-verified data on open source packages and their licenses, releases, vulnerabilities, and development practices.