edge-tts-universal and legado-edge-tts
These two tools are ecosystem siblings: one provides a universal JavaScript implementation of Edge TTS, while the other is a specific integration of Edge TTS for the Legado e-reader application.
About edge-tts-universal
travisvn/edge-tts-universal
Use Microsoft Edge's online text-to-speech service in Node.js, browsers, or any JavaScript environment WITHOUT needing Microsoft Edge or Windows or an API key
Replicates Microsoft's WebSocket protocol with custom headers (Sec-WebSocket-Version, MUID authentication) and timing-aware chunk synthesis, working across Node.js, Deno, Bun, and edge runtimes via Web standard APIs. Offers multiple entry points (Universal, Node.js-optimized, Browser, WebWorker) with tree-shakable imports, from ~30KB gzipped for browser-only to ~46KB for full Node.js functionality, plus streaming APIs with metadata events (WordBoundary, SentenceBoundary) for subtitle synchronization.
About legado-edge-tts
wangz-code/legado-edge-tts
edge大声朗读微软TTS服务, 在阅读legado中配置语音引擎方式收听微软TTS / Edge大声朗读, 如果没有 vps 部署可以看看阅读内置 TTS https://github.com/wangz-code/legado-tts
Provides both Python Flask and Node.js/PM2 deployment options with REST API endpoints (`/ra` for GET, `/rap` for POST) that stream Microsoft Edge TTS audio directly as MP3, supporting multiple Chinese voice models with configurable speech rate and voice selection. Includes native Kotlin implementations (`EdgeSpeakFetch.kt`, `DouBaoFetch.kt`) for direct integration into the Legado reading app, plus a lightweight single-endpoint variant (`min.py`) for minimal deployments. Wraps the edge-tts library while maintaining parameter compatibility with upstream versions, enabling seamless TTS integration in reading applications without requiring external VPS infrastructure.
Related comparisons
Scores updated daily from GitHub, PyPI, and npm data. How scores work