edge-tts

Python library and CLI using Microsoft Edge's online neural voices without Edge, Windows, or an API key.

Open Source
0.0 (0)

About

edge-tts gives Python developers Microsoft's neural text-to-speech voices by speaking the same protocol the Edge browser uses for its online Read Aloud service, so no Edge install, no Windows, and no Azure API key are required. The package installs from PyPI with pip or pipx and provides two commands: edge-tts renders text to audio files with optional SRT subtitle output, and edge-playback speaks the synthesis immediately, using the mpv player on non-Windows systems. A large multilingual catalog of Microsoft neural voices is selectable by name, with rate, volume, and pitch adjustable from the command line or the async Python API, and the library serves as the free TTS backend inside many open source reading, dubbing, and assistant projects. The tradeoffs are inherent to the design: synthesis happens on Microsoft's servers, so an internet connection is mandatory, nothing runs offline, and availability depends on an unofficial use of the service rather than a supported API contract. The code is GPL-3.0 licensed, the project holds around 11,600 GitHub stars, and usage itself costs nothing.

Should you use edge-tts?

Pick it when

Pick edge-tts when you want Microsoft's neural voices in many languages at no cost, with SRT subtitle output, for scripts, hobby reading apps, or prototypes where an internet connection and an unofficial service are acceptable.

Look elsewhere when

Skip it for anything that must run offline, keep text private, or rely on a supported contract: synthesis happens on Microsoft's servers through an unofficial protocol that can break. Piper or Kokoro run fully locally.

Alternatives to edge-tts

  • Kokoro TTS

    Runs locally on CPU with Apache-2.0 weights in eight languages, so no network or service risk, though its voice catalog is smaller than Microsoft's.

  • Piper TTS

    Fully offline and fast enough for a Raspberry Pi, with voices across dozens of languages, trading Microsoft's catalog for zero network dependency.

  • RealtimeTTS

    Wraps Edge voices alongside local and paid engines with automatic fallback, so a broken Edge endpoint fails over instead of taking your app down.

  • eSpeak NG

    Tiny offline synthesizer for 100-plus languages with no network at all, but its robotic formant output is far below Edge's neural voices.

Reviews (0)

Leave a Review

No reviews yet. Be the first to review!

Details

Price
Free
Platform
API
Difficulty
Easy (2/5)
License
GPL-3.0
Added
Jul 29, 2026

Tags