1.0.1 • Published 5 years ago

gtts.js v1.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

gTTS.js

Build Status

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";