Messages
{
"model_id": "<string>",
"transcript": "<string>",
"context_id": "<string>",
"continue": true,
"voice": {
"mode": "<string>",
"id": "<string>"
},
"output_format": {
"container": "<string>",
"encoding": "<string>",
"sample_rate": 123
}
}{
"context_id": "<string>",
"cancel": true
}{
"type": "<string>",
"context_id": "<string>",
"done": true,
"status_code": 123,
"data": "<string>"
}{
"type": "<string>",
"context_id": "<string>",
"done": true,
"status_code": 123
}{
"type": "<string>",
"done": true,
"error_code": "<string>",
"status_code": 123,
"title": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}TTS
Text-to-Speech (WebSocket)
Real-time, low-latency TTS over a persistent WebSocket connection.
WSS
/
tts
/
websocket
Messages
{
"model_id": "<string>",
"transcript": "<string>",
"context_id": "<string>",
"continue": true,
"voice": {
"mode": "<string>",
"id": "<string>"
},
"output_format": {
"container": "<string>",
"encoding": "<string>",
"sample_rate": 123
}
}{
"context_id": "<string>",
"cancel": true
}{
"type": "<string>",
"context_id": "<string>",
"done": true,
"status_code": 123,
"data": "<string>"
}{
"type": "<string>",
"context_id": "<string>",
"done": true,
"status_code": 123
}{
"type": "<string>",
"done": true,
"error_code": "<string>",
"status_code": 123,
"title": "<string>",
"message": "<string>",
"doc_url": "<string>",
"request_id": "<string>"
}api_key
type:httpApiKey
Your Nineninesix API key (sk_996_...), sent as the api_key query parameter on the connection URL.
Generation request
type:object
Speak a transcript within a context.
Cancel context request
type:object
Stop a context's in-flight generation and drop its queued sentences. Silent — the server sends no acknowledgement; chunks for that context simply stop. Other contexts keep running.
Audio chunk
type:object
One audio segment.
Done
type:object
The context/turn is complete, after a continue: false and all queued sentences render.
Error
type:object
Full Cartesia-shaped error envelope. See the error-code catalog above.
⌘I