{
"type": "init",
"config": {
"language": "en",
"sample_rate": 16000,
"encoding": "linear16",
"enable_partials": true
}
}{
"type": "audio",
"data": "UklGRiQAAABXQVZFZm10IBAAAAABAAEA..."
}{
"type": "finalize"
}{
"type": "ready",
"session_id": "sess_abc123"
}{
"type": "partial_transcript",
"transcript": "Hello wor",
"confidence": 0.85
}{
"type": "final_transcript",
"transcript": "Hello world",
"confidence": 0.95,
"language": "en",
"duration": 2.5
}{
"type": "error",
"code": "provider_error",
"message": "Upstream service unavailable"
}WebSocket protocol bridge using SLNG’s native protocol for STT. Messages pass through directly using SLNG’s standard STT message types (init, audio, finalize, ready, partial_transcript, final_transcript, error).
{
"type": "init",
"config": {
"language": "en",
"sample_rate": 16000,
"encoding": "linear16",
"enable_partials": true
}
}{
"type": "audio",
"data": "UklGRiQAAABXQVZFZm10IBAAAAABAAEA..."
}{
"type": "finalize"
}{
"type": "ready",
"session_id": "sess_abc123"
}{
"type": "partial_transcript",
"transcript": "Hello wor",
"confidence": 0.85
}{
"type": "final_transcript",
"transcript": "Hello world",
"confidence": 0.95,
"language": "en",
"duration": 2.5
}{
"type": "error",
"code": "provider_error",
"message": "Upstream service unavailable"
}API key issued by SLNG. Pass as Authorization: Bearer <token> in the WebSocket upgrade request headers.
GET
Initialize Unmute STT session with configuration.
Send audio data to Unmute STT Bridge.
Finalize Unmute STT session.
Unmute STT session is ready.
Partial (interim) transcription result.
Final transcription result.
Error occurred during Unmute STT session.
Was this page helpful?