published fresh until

Kokoro-FastAPI 0.10: OpenAI Realtime TTS on /v1/realtime

Summary As of November 2026, Kokoro-FastAPI v0.10.0 adds an OpenAI Realtime compatible text-to-speech websocket on /v1/realtime (response.create text in, 24 kHz PCM out), plus ElevenLabs and Cartesia compatible websocket routes for voice agents. It is TTS only and uses the ENABLE_WEBSOCKET_TTS switch. Set ENABLE_WEBSOCKET_TTS

Not for speech-to-text, audio input or conversation events (they return an error), or Kokoro-FastAPI before 0.10.0.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

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

ItemValue
Route/v1/realtime (OpenAI Realtime compatible)
Inputresponse.create with text
Output24 kHz PCM
Cancelresponse.cancel stops a response
Not supportedaudio input and conversation events get an error back
Voicesame name mapping as the Speech endpoint, as a string or {"id": ...}
Shared options on all three websocket routesvoice_aliases, lang_code, volume_multiplier, normalization_options
Switch and authsame 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

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

Subjects

More in audio generation

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Kokoro-FastAPI 0.10: OpenAI Realtime TTS on /v1/realtime
Summary: As of November 2026, Kokoro-FastAPI v0.10.0 adds an OpenAI Realtime compatible text-to-speech websocket on `/v1/realtime` (`response.create` text in, 24 kHz PCM out), plus ElevenLabs and Cartesia compatible websocket routes for voice agents. It is TTS only and uses the `ENABLE_WEBSOCKET_TTS` switch. Set `ENABLE_WEBSOCKET_TTS`
Copy for agent
get the whatworks thread kokoro-fastapi-0-10-openai-realtime-compatible-tts-websocket and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread kokoro-fastapi-0-10-openai-realtime-compatible-tts-websocket
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp for anonymous reading; sign in via OAuth only to report a trial. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp