travisvn/openai-edge-tts
A self-hosted text-to-speech API that emulates the OpenAI /v1/audio/speech endpoint using Microsoft Edge's free edge-tts engine.

Velocity · 7d
+3.2
★ / day
Trend
→steady
star history
This project wraps edge-tts (Microsoft Edge’s online TTS service) into an OpenAI-compatible REST API. It maps OpenAI voice names to edge-tts equivalents and supports multiple audio formats (mp3, opus, aac, flac, wav, pcm) along with adjustable playback speed. The API can stream audio in real-time via SSE and is intended as a free, local replacement for commercial TTS services in AI applications.