pndurette/gTTS

★ 2,639⑂ 389

Python library and CLI tool to interface with Google Translate's text-to-speech API

About pndurette/gTTS

pndurette/gTTS is an open-source project on GitHub, mainly written in Python. Python library and CLI tool to interface with Google Translate's text-to-speech API It currently holds 2,639 stars and 389 forks with 24 open issues, and was last pushed on 2026-04-06 (repository created 2014-05-15).

Project Overview

Git Homed tracks it on the Audio Trending board and on the AI Audio Trending list.

GitHub Repository Details

Repository pndurette/gTTS · default branch main · size 566 KB · watchers 62 · source: GitHub REST API and repository README

README

gTTS

gTTS (Google Text-to-Speech), a Python library and CLI tool to interface with Google Translate's text-to-speech API. Write spoken mp3 data to a file, a file-like object (bytestring) for further audio manipulation, or stdout.

PyPI version Python versions Tests workflow codecov Commits Since PyPi Downloads Buy me a Coffee

Features

Installation

$ pip install gTTS

Quickstart

Command Line:

$ gtts-cli 'hello' --output hello.mp3

Module:

>>> from gtts import gTTS >>> tts = gTTS('hello') >>> tts.save('hello.mp3')

See for documentation and examples.

Disclaimer

This project is not affiliated with Google or Google Cloud. Breaking upstream changes can occur without notice. This project is leveraging the undocumented Google Translate speech functionality and is different from Google Cloud Text-to-Speech.

Project

Licence

The MIT License (MIT) Copyright © 2014-2024 Pierre Nicolas Durette & Contributors

GitHub Stars & Activity

2,639Stars
389Forks
24Open issues
PythonLanguage

GitHub Popularity

GitHub stars2,639
Forks389
Open issues24
Primary languagePython
LicenseMIT
Stars gained today0
Created2014-05-15
Last pushed2026-04-06

Trending History

Trending statusnot on today's boards

Related GitHub Projects

1

huggingface / transformers

Python★ 169,134⑂ 0
→
2

debpalash / VoiceStudio

Python★ 112,289⑂ 0
→
3

RVC-Boss / GPT-SoVITS

Python★ 65,245⑂ 0
→
4

coqui-ai / TTS

Python★ 46,240⑂ 0
→
5

OpenBMB / VoxCPM

Python★ 42,576⑂ 0
→
6

2noise / ChatTTS

Python★ 40,013⑂ 0
→
7

myshell-ai / OpenVoice

Python★ 38,265⑂ 0
→
8

babysor / MockingBird

Python★ 36,862⑂ 0
→

More Trending Repositories