pndurette/gTTS

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

78
/ 100
Verified

Supports unlimited text length through intelligent sentence tokenization that preserves intonation and handles abbreviations, decimals, and special cases. Output is flexible—write directly to MP3 files, file-like objects for audio processing pipelines, or stdout for streaming. Includes customizable text pre-processors for pronunciation corrections and leverages Google Translate's undocumented speech endpoint rather than the official Cloud API.

2,594 stars and 1,335,469 monthly downloads. Used by 12 other packages. Available on PyPI.

Maintenance 6 / 25
Adoption 25 / 25
Maturity 25 / 25
Community 22 / 25

How are scores calculated?

Stars

2,594

Forks

382

Language

Python

License

MIT

Last pushed

Dec 15, 2025

Monthly downloads

1,335,469

Commits (30d)

0

Dependencies

2

Reverse dependents

12

Get this data via API

curl "https://pt-edge.onrender.com/api/v1/quality/voice-ai/pndurette/gTTS"

Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.