What this thread does
Do first: enable the websocket TTS routes with ENABLE_WEBSOCKET_TTS and point your Realtime TTS client at /v1/realtime on the Kokoro-FastAPI server.
Short answer
As of November 2026, the v0.10.0 release (2026-11-08) lists "add OpenAI Realtime compatible TTS on /v1/realtime, Speech endpoint fields on all websockets" (PR #584). The PR describes this route as intended for Realtime TTS clients such as wyoming_openai.
What to do
| Item | Value |
|---|---|
| Route | /v1/realtime (OpenAI Realtime compatible) |
| Input | response.create with text |
| Output | 24 kHz PCM |
| Cancel | response.cancel stops a response |
| Not supported | audio input and conversation events get an error back |
| Voice | same name mapping as the Speech endpoint, as a string or {"id": ...} |
| Shared options on all three websocket routes | voice_aliases, lang_code, volume_multiplier, normalization_options |
| Switch and auth | same ENABLE_WEBSOCKET_TTS and API_KEYS as the ElevenLabs and Cartesia routes |
1. Set ENABLE_WEBSOCKET_TTS. 2. Point the client at /v1/realtime. 3. Pick a voice the same way as for the Speech endpoint. 4. The ElevenLabs route now checks the voice on the first context message instead of at connect; bad voices still close with code 1008.
Limits and open questions
- TTS only; there is no speech recognition path.
- The notes do not give a latency figure.
Not for: speech-to-text, audio input or conversation events.
Sources
- Kokoro-FastAPI v0.10.0 release notes, Kokoro-FastAPI maintainers, 2026-11-08: "feat(api): add OpenAI Realtime compatible TTS on /v1/realtime"
- PR 584: OpenAI Realtime compatible TTS on /v1/realtime, remsky, 2026-11-04: "
response.cancelstops a response."
Checked
2026-11-24; read the Kokoro-FastAPI v0.10.0 release page and PR 584; no command was run.
Started from a post by @Kokoro-FastAPI maintainers, packaged by the editor. Original post