gtts.js
v1.0.1
Published
A Promise based Node.js/TypeScript port of the gTTS python library
Downloads
53
Maintainers
Readme
gTTS.js
This is a Promise based Node.js/TypeScript port of the python gTTS Google Text-To-Speech library.
Install
npm install gtts.js
How to use
Note: The CLI is currently not supported.
const gTTS = require("gtts.js").gTTS;
const tts = new gTTS("Hello");
tts.save("hello.mp3")
.then(() => {
// Save successful
})
.catch((err) => {
// Process failed
});
TypeScript
import { gTTS } from "gtts.js";