Skip to content
/ gtts Public
forked from dunosaurs/gtts

A simple deno text-to-speech library using the google translate api.

License

Notifications You must be signed in to change notification settings

Ilawy/gtts

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

deno-gtts

Note

This is a fork of https://github.com/dunosaurs/gtts with new default method

A simple text-to-speech library using the google translate api. It is designed to be used either as a deno library or as a cli tool.

Usage

import gtts, { save } from "jsr:@ilawy/gtts";
await gtts("Hello world");
await save("./demo.wav", "This sentence is being read by a machine");

OR

deno install --allow-write --allow-net -n gtts jsr:@ilawy/gtts
gtts "some text to speak"
gtts "some text to speak to a destination" --path="./test.wav"
gtts "text but in a french accent" --lang=fr
gtts "text at a destination but in a french accent" --path="./french.wav" --lang=fr

Very loosely inspired by this nightmare of a library

About

A simple deno text-to-speech library using the google translate api.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 100.0%