gtts.js
TypeScript icon, indicating that this package has built-in type declarations

1.0.1 • Public • Published

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

Package Sidebar

Install

npm i gtts.js

Weekly Downloads

1

Version

1.0.1

License

MIT

Unpacked Size

59.3 kB

Total Files

40

Last publish

Collaborators

  • hubendubler