{
"type": "stream",
"text": "Hello, how can I help you today?"
}{
"type": "flush"
}{
"type": "stop"
}{
"type": "keepalive"
}{
"type": "connect",
"data": {
"sample_rate": 16000,
"base64_encoding": false
}
}{
"type": "error",
"error": "Upstream synthesis service unavailable"
}Jambonz TTS
Reference for the Jambonz custom WebSocket TTS bridge channel, including stream, flush, stop messages, binary audio frames, and model_variant routing.
{
"type": "stream",
"text": "Hello, how can I help you today?"
}{
"type": "flush"
}{
"type": "stop"
}{
"type": "keepalive"
}{
"type": "connect",
"data": {
"sample_rate": 16000,
"base64_encoding": false
}
}{
"type": "error",
"error": "Upstream synthesis service unavailable"
}API key issued by SLNG. Pass as Authorization: Bearer <token> in the WebSocket upgrade request headers.
GET
Target region override. Auto-selected if not provided.
Target world part override. Auto-selected if not provided.
Target region override as a query parameter. Auto-selected if not provided. Equivalent to the X-Region-Override header; the header takes precedence when both are set.
ap-southeast-2, eu-north-1, us-east-1Target world part override as a query parameter. Auto-selected if not provided. Equivalent to the X-World-Part-Override header; the header takes precedence when both are set.
ap, eu, naSend text chunk to synthesize into audio.
Flush buffered audio to the client.
Stop synthesis and close the session.
Keep the WebSocket connection alive during silence.
Connection established with audio format information.
Error occurred during Jambonz TTS synthesis.
Was this page helpful?