Messages
{
"type": "init",
"config": {
"language": "en",
"sample_rate": 16000,
"encoding": "linear16",
"enable_partials": true
}
}{
"type": "audio",
"data": "UklGRiQAAABXQVZFZm10IBAAAAABAAEA..."
}{
"type": "finalize"
}{
"type": "close"
}{
"type": "keepalive"
}{
"type": "ready",
"session_id": "1e1a9598-077e-4d9d-aba6-78af6363f27c",
"slng_request_id": "2c9953d7-d4b4-4385-bb27-f64e0d979be5"
}{
"type": "partial_transcript",
"transcript": "Hello wor",
"confidence": 0.85
}{
"type": "final_transcript",
"transcript": "Hello world",
"confidence": 0.95,
"language": "en",
"duration": 2.5
}{
"type": "utterance_end",
"last_word_end": 2.48
}{
"type": "error",
"data": {
"request_id": "req_abc123",
"message": "Upstream service unavailable",
"code": "provider_error"
},
"message": "Upstream service unavailable",
"code": "provider_error"
}Unified STT
Unified STT
Stream audio to any SLNG-supported STT model over the unified WebSocket protocol with init, audio, finalize, partial, and final transcript messages.
WSS
/
v1
/
bridges
/
unmute
/
stt
/
{model_variant}
Messages
{
"type": "init",
"config": {
"language": "en",
"sample_rate": 16000,
"encoding": "linear16",
"enable_partials": true
}
}{
"type": "audio",
"data": "UklGRiQAAABXQVZFZm10IBAAAAABAAEA..."
}{
"type": "finalize"
}{
"type": "close"
}{
"type": "keepalive"
}{
"type": "ready",
"session_id": "1e1a9598-077e-4d9d-aba6-78af6363f27c",
"slng_request_id": "2c9953d7-d4b4-4385-bb27-f64e0d979be5"
}{
"type": "partial_transcript",
"transcript": "Hello wor",
"confidence": 0.85
}{
"type": "final_transcript",
"transcript": "Hello world",
"confidence": 0.95,
"language": "en",
"duration": 2.5
}{
"type": "utterance_end",
"last_word_end": 2.48
}{
"type": "error",
"data": {
"request_id": "req_abc123",
"message": "Upstream service unavailable",
"code": "provider_error"
},
"message": "Upstream service unavailable",
"code": "provider_error"
}bearer
type:http
API key issued by SLNG. Pass as Authorization: Bearer <token> in the WebSocket upgrade request headers.
method
type:string
GET
Init (Unmute STT)
type:object
Initialize Unmute STT session with configuration.
Audio (Unmute STT)
type:object
Send audio data to Unmute STT Bridge.
Finalize (Unmute STT)
type:object
Force-finalize buffered audio without closing the connection.
Close (Unmute STT)
type:object
Signal end of audio stream and close the connection.
Keepalive Message
type:object
Keep the WebSocket connection alive during silence.
Ready (Unmute STT)
type:object
Unmute STT session is ready.
Partial Transcript (Unmute STT)
type:object
Partial (interim) transcription result.
Final Transcript (Unmute STT)
type:object
Final transcription result.
Utterance End (Unmute STT)
type:object
Endpoint marker indicating the end of a spoken utterance.
Error (Unmute STT)
type:object
Error occurred during Unmute STT session.