Skip to content

hubendubler/gTTS.js

Repository files navigation

gTTS.js

Build Status npm version

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

About

A Promise based Node.js/TypeScript port of the gTTS Google-Text-To-Speech python library

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published