https://github.com/hubendubler/gtts.js
A Promise based Node.js/TypeScript port of the gTTS Google-Text-To-Speech python library
https://github.com/hubendubler/gtts.js
gtts node-module nodejs speech text-to-speech tts typescript
Last synced: about 1 year ago
JSON representation
A Promise based Node.js/TypeScript port of the gTTS Google-Text-To-Speech python library
- Host: GitHub
- URL: https://github.com/hubendubler/gtts.js
- Owner: hubendubler
- License: mit
- Created: 2019-05-13T12:47:41.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-15T10:09:49.000Z (about 7 years ago)
- Last Synced: 2025-04-09T14:08:41.350Z (about 1 year ago)
- Topics: gtts, node-module, nodejs, speech, text-to-speech, tts, typescript
- Language: TypeScript
- Homepage:
- Size: 73.2 KB
- Stars: 5
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# gTTS.js
[](https://travis-ci.com/hubendubler/gTTS.js) [](https://badge.fury.io/js/gtts.js)
This is a Promise based Node.js/TypeScript port of the [python gTTS Google Text-To-Speech library](https://github.com/pndurette/gTTS).
## Install
`npm install gtts.js`
## How to use
Note: The CLI is currently not supported.
```js
const gTTS = require("gtts.js").gTTS;
const tts = new gTTS("Hello");
tts.save("hello.mp3")
.then(() => {
// Save successful
})
.catch((err) => {
// Process failed
});
```
### TypeScript
```ts
import { gTTS } from "gtts.js";
```