Description
edge-tts is a Python module that lets you use Microsoft Edge's online text-to-speech service from your own code or from the command line, without needing the Edge browser. You can generate an audio file with --write-media and a matching subtitle file with --write-subtitles, or play the speech back immediately with the edge-playback command. The tool can list the available voices with --list-voices and choose one with --voice, including voices for many languages, so text in Arabic, for example, can be spoken with an Arabic voice. The README says custom SSML is not supported, because Microsoft only permits SSML that the Edge service itself generates, but rate, volume and pitch can still be changed through the library and command-line options. You install it with pip, or with pipx if you only want the command-line tools. The edge-playback command needs the mpv player installed, except on Windows, and it works with all edge-tts options except the ones that write files or list voices. The project is on GitHub and is used from Python code as well as the terminal.…
Highlights
- Microsoft Edge online text-to-speech
- Writes audio and subtitle files
- Plays speech with edge-playback
- Many voices and languages
- Python module and command line
Ratings & Reviews
No ratings yet
Be the first to rate Edge TTS.
People also visit
Edge TTS FAQ
What is edge-tts?
A Python module and command-line tool that uses Microsoft Edge's online text-to-speech service.
Do I need Microsoft Edge installed?
No. The README says it works without needing Microsoft Edge.
How do I install it?
Run pip install edge-tts, or pipx install edge-tts if you only want the command-line tools.
Can it create subtitles?
Yes. The --write-subtitles option writes a subtitle file next to the audio.
How do I choose a voice?
Use --list-voices to see the voices, then pass one with --voice.
Does it support SSML?
Custom SSML is not supported. The README says rate, volume and pitch can still be changed through the options.
What are the best Edge TTS alternatives?
Popular alternatives to Edge TTS include Edge TTS, Cognitive-Speech-TTS and Aspeak. See all Edge TTS alternatives




