pndurette/gTTS
Python library and CLI tool to interface with Google Translate's text-to-speech API
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.
Stars
2,594
Forks
382
Language
Python
License
MIT
Category
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.
Featured in
Related tools
KoljaB/RealtimeTTS
Converts text to speech in realtime
nateshmbhat/pyttsx3
Offline Text To Speech synthesis for python
n1teshy/yapper-tts
offline text to speech and free SOTA LLM APIs to let your programs speak to you
dputhier/pygtftk
A python package and a set of shell commands to handle GTF files
wannaphong/ttsmms
TTS with The Massively Multilingual Speech (MMS) project