{"repo":"babutree/TTS-API","free":true,"listed":false,"github":"https://github.com/babutree/TTS-API","clone":"git clone https://github.com/babutree/TTS-API.git","description":"Self-hosted streaming TTS gateway with Web UI + REST/WebSocket API — dual-engine local Kokoro CPU inference + Microsoft Edge neural voices, ready-to-run for AI apps, extensions, and automation. 开箱即用的自托管流式 TTS 网关，提供 Web UI + REST/WebSocket API —— 支持本地 Kokoro CPU 推理语音与 Microsoft Edge 语音，面向 AI 应用、浏览器扩展和自动化工作流。","language":"Python","stars":38,"topics":[],"license":"MIT","category":"self-hosted-apps","readme_excerpt":"TTS-API English 中文 Ready-to-run self-hosted streaming TTS. One FastAPI service: listen in the browser, or call it from code. Local Kokoro (CPU) after models are installed, or Microsoft Edge TTS in the cloud — same process, same limits. - Two engines, one service. Offline Kokoro or natural Edge voices. - Chinese + English mixed text. UI Auto routes each sentence to a matching voice. - Markdown-safe input. Markup is cleaned before speak — never read aloud. - Programmable API. REST MP3, WebSocket PCM, and OpenAI-compatible /v1 with six binary formats. Use it Scenario Endpoint Returned or visible result ---------- ---------- ---------------------------- Browser playback /index.html Voice selection, preview, speed, seek, pause, and sentence-level Auto routing HTTP integration POST /api/tts Streaming audio/mpeg (MP3) Interactive audio client WebSocket /ws/tts 24 kHz mono signed 16-bit little-endian PCM and control frames OpenClaw / Hermes and similar agents POST /v1/audio/speech MP3, Opus, AAC, FLAC, WAV, or 24 kHz raw PCM; pre-stream errors use the OpenAI shape API reference /api or API.md Interactive tester, or the full request and protocol reference Auto is UI-only. The browser splits mixed text and sends concrete engine / voice per segment. API clients send kokoro or edge directly. Why this project Cloud TTS is easy but meters every character and needs the network. A raw local model is free, but you still own drivers, sentence splitting, playback, and glue. TTS-API puts both en","default_branch":null,"files":null,"tree":[],"storefront":"/r/babutree","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/babutree/TTS-API/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}