Realtime TTS
Realtime text-to-speech availability and integration notes.
CN API paths use a separate contract
This English reference describes the global FishAudio Open API. For Kitta Audio China integrations, use the CN API Reference, API Playground, and API Keys in this site.
Realtime TTS
Realtime TTS is for low-latency preview, conversational playback, and applications that submit text in smaller chunks. On the overseas Open API, realtime availability is controlled by account capability and rollout status. Confirm availability with your account team and the current GET /api/openapi.json schema before building production traffic around it.
Request
Realtime integrations use a WebSocket session when enabled for the account. The session still uses the same API key authentication:
Authorization: Bearer FISHSPEECH_API_KEYClient events usually include session start, text chunks, flush, and stop semantics. Keep the API key on your server or trusted backend component; do not place it in a public browser client.
Response
Realtime responses are streamed events rather than one JSON document. Your client should handle audio chunks, partial status events, terminal completion, and terminal error events. Persist enough local state to reconnect or fall back to Async Jobs when a session fails.
Billing And Credits
Realtime generation may charge by generated content, session duration, or enabled model. Because partial audio may already have been produced before a disconnect, do not assume every interrupted session is free. Reconcile important sessions with Profile.
Errors
Authentication errors happen during connection setup. Session errors happen inside the event stream. When realtime is not enabled for the account, use sync HTTP or async jobs as the supported overseas path.
Continue with runnable API checks
Docs and executable requests stay in the same CN-site surface. After reading the reference, open the API Playground for curl examples or manage API keys in the developer workspace.