edge-tts
Use Microsoft Edge's online text-to-speech service from Python WITHOUT needing Microsoft Edge or Windows or an API key
gTTS — Python library and CLI that turns text into spoken mp3 via Google Translate's speech API
gTTS is an open-source audio project by pndurette (pndurette/gTTS on GitHub). It has 2,636 GitHub stars and 390 forks, is released under the MIT license, and was last updated on GitHub on 6 April 2026.
Decide the text, language and output: an mp3 file, bytes for further audio processing, or stdout in a pipeline.
pip install gTTS — no credentials or project setup needed.
In code, pass the text and language to gTTS(...); optionally add pre-processors for pronunciation fixes.
Save your first mp3 with tts.save(...) or the gtts-cli command, and play it back.
Use the gTTS class in Python or the gtts-cli command for one-off conversions.
A customizable speech-specific sentence tokenizer allows unlimited text lengths while preserving intonation, abbreviations and decimals.
Customizable pre-processing hooks can, for example, provide pronunciation corrections.
Write spoken mp3 to a file, a file-like object (bytestring) for further manipulation, or stdout.
Language selection follows Google Translate's TTS voices (pass the language code to gTTS).
No API key or cloud project — it calls the public Google Translate speech endpoint (internet required).
Clone gTTS if you want the source; users install from PyPI in step 2.
git clone https://github.com/pndurette/gTTS.git
cd gTTSInstall gTTS from PyPI.
pip install gTTSUse the CLI quickstart, or the three-line Python module example.
gtts-cli 'hello' --output hello.mp3
# Python: from gtts import gTTS; gTTS('hello').save('hello.mp3')pndurette (Pierre Nicolas Durette) and contributors maintain it; documentation is at gtts.readthedocs.org.
Yes, MIT-licensed, and the endpoint it uses needs no key. The README warns it relies on an undocumented Google Translate feature, so upstream breaking changes can occur without notice.
No key at all — but it does need internet access to reach Google Translate's speech service.
pyttsx3 works fully offline with system voices; Google Cloud TTS is the official paid API with more voices and an SLA. gTTS sits in between: free and simple, but online and unofficial.
pip install gTTS, then gtts-cli 'hello' --output hello.mp3.
Use Microsoft Edge's online text-to-speech service from Python WITHOUT needing Microsoft Edge or Windows or an API key
FastRTC turns any Python function into a real-time audio or video stream over WebRTC or WebSockets
Offline text-to-speech for Python — uses your operating system's own voices, no internet needed
A ready API for speech-to-text with per-user access control.
A macOS voice assistant that turns speech into actions and notes.
Mozilla's deep-learning text-to-speech library with Tacotron, Glow-TTS and neural vocoders.
The most-starred other Audio projects in the LibreAI catalogue — the realistic shortlist if gTTS is not the right fit.
利用 AI 大模型和自动化工作流,根据主题或关键词一键生成高清短视频。Generate HD short videos from a topic or keyword with an automated AI workflow.
Robust Speech Recognition via Large-Scale Weak Supervision
1 min voice data can also be used to train a good TTS model! (few shot voice cloning)
Clone a voice from 5 seconds of audio and generate arbitrary speech in real time
Port of OpenAI's Whisper model in C/C++
Free and open — grab the source, star the repo, and start creating.