diygod/cloudflare-edge-tts — explained in plain English
Analysis updated 2026-05-18
Add text-to-speech to a web app by calling a self-hosted API instead of a third-party TTS service.
List available Microsoft Edge voices through a dedicated endpoint before generating audio.
Send text in a JSON request and receive back a streamed MP3 audio response.
| diygod/cloudflare-edge-tts | daydreamsai/lucid-agents | binghe1980/ai-canvas | |
|---|---|---|---|
| Stars | 185 | 185 | 182 |
| Language | TypeScript | TypeScript | TypeScript |
| Setup difficulty | easy | moderate | moderate |
| Complexity | 2/5 | 4/5 | 2/5 |
| Audience | developer | developer | designer |
Figures from each repo's GitHub metadata at analysis time.
Requires a Cloudflare account and Wrangler CLI to deploy the Worker.
This is a minimal server that runs on Cloudflare's edge network (their globally distributed serverless platform) and exposes Microsoft Edge's text-to-speech service over a simple web API. The problem it solves is giving developers a straightforward HTTP endpoint they can call to convert text into spoken audio, without needing to set up complex infrastructure. The server exposes three endpoints: a health check, a route that lists available voices, and a route that accepts text and returns an MP3 audio stream. You send it a JSON body with the text you want spoken and optionally a voice name, and it streams back the audio. Under the hood it connects to Microsoft's Edge TTS service using a WebSocket connection, which it handles natively within the Cloudflare Worker environment. You would use this if you want to add text-to-speech to a web app or tool and prefer a self-hosted solution running on Cloudflare rather than relying on a third-party TTS API directly. It is written in TypeScript and deployed as a Cloudflare Worker using Wrangler, the standard deployment tool for that platform.
A lightweight Cloudflare Worker that exposes Microsoft Edge's text-to-speech service as a simple HTTP API for converting text to spoken audio.
Mainly TypeScript. The stack also includes TypeScript, Cloudflare Workers, Wrangler.
Setup difficulty is rated easy, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.