
edge-tts
CLIConverts text to speech with Microsoft Edge's online TTS service and can generate subtitle files at the same time. No API key needed, with voices for many languages. Not an official Microsoft project and depends on that online service staying available.
edge-tts
edge-tts lets you use Microsoft Edge's online text-to-speech service from Python, or from the command line with the edge-tts and edge-playback commands.
Installation
$ uv add edge-tts # or: pip install edge-tts
To use only the commands, install them as a tool, or run them without installing:
$ uv tool install edge-tts
$ uvx edge-tts --text "Hello, world!" --write-media hello.mp3
Command line
$ edge-tts --text "Hello, world!" --write-media hello.mp3 --write-subtitles hello.srt
To play the speech back immediately, use edge-playback, which takes the same options except --write-media, --write-subtitles and --list-voices. It requires mpv, except on Windows.
$ edge-playback --text "Hello, world!"
List the available voices with --list-voices, and pick one with --voice:
$ edge-tts --voice ar-EG-SalmaNeural --text "مرحبا كيف حالك؟" --write-media hello.mp3
Adjust the speech with --rate, --volume and --pitch. Write negative values with =, so they aren't read as options:
$ edge-tts --rate=-50% --pitch=-5Hz --text "Hello, world!" --write-media hello.mp3
Run edge-tts --help for all options. Custom SSML isn't supported, because the service only accepts the SSML that Microsoft Edge itself generates.
Python
import edge_tts
edge_tts.Communicate("Hello, world!", "en-GB-SoniaNeural").save_sync("hello.mp3")
See examples/ for async usage, streaming, subtitles and voice selection.
Troubleshooting
See TROUBLESHOOTING.md for common errors, such as NoAudioReceived, and how to deal with them.
Development
uv sync # create the environment from uv.lock
uv run pre-commit install # lint, format and type-check on every commit
uv run pytest
Releases are published to PyPI automatically when a GitHub release is created.
관련 리소스

notebooklm-py
CLIUnofficial Python library and CLI for driving Google NotebookLM (now Gemini Notebook): bulk-import sources, ask cited questions, and generate and download podcasts, videos, slides, quizzes and flashcards. Ships an agent skill. Relies on undocumented APIs and needs a Google sign-in.
teng-lin/notebooklm-py20.4k
MLX-Audio
CLIOffline speech toolkit for Apple Silicon Macs: CLI text-to-speech (including Chinese and voice cloning) and speech-to-text, for voicing lessons and explainer videos or transcribing lectures and interviews, with data staying local. Needs an M-series Mac and Python 3.10+; MP3 export needs ffmpeg.
Blaizzy/mlx-audio8.3k
whisper-ctranslate2
CLILocal transcription that's compatible with the OpenAI Whisper CLI but faster and lighter: outputs SRT/VTT subtitles or text and can transcribe a live microphone. Needs Python; models download on first run; speaker labels need pyannote.audio and a Hugging Face token.
Softcatala/whisper-ctranslate21.4k
Podcastfy
CLIOpen-source alternative to NotebookLM's podcast feature: turns web pages, PDFs, images, YouTube videos or text into two-host conversational audio, useful for lecture notes or articles. Uses Gemini and OpenAI API keys by default, or local models plus free Edge TTS.
souzatharsis/podcastfy6.9k
Piper
CLILocal neural text-to-speech engine that converts text to speech offline, with voices in dozens of languages, handy for listening materials or narrating articles and course slides. Needs Python; download a voice model before first use. The project is currently looking for maintainers.
OHF-Voice/piper1-gpl6.5k
Kokoro TTS
CLILocal text-to-speech CLI built on the open Kokoro model: batch-converts TXT, EPUB and PDF to MP3 or WAV by chapter, with multiple languages, voice blending and speed control; handy for audio versions of course materials. Needs Python 3.11-3.12 and two model files downloaded first.
nazdridoy/kokoro-tts2.1k