{
"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": "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": "utterance_end",
"last_word_end": 2.48
}{
"type": "error",
"code": "provider_error",
"message": "Upstream service unavailable"
}Unified STT
Stream audio to any SLNG-supported STT model over the unified WebSocket protocol with init, audio, finalize, partial, and final transcript messages.
Documentation Index
Fetch the complete documentation index at: https://docs.slng.ai/llms.txt
Use this file to discover all available pages before exploring further.
{
"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": "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": "utterance_end",
"last_word_end": 2.48
}{
"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
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, naInitialize Unmute STT session with configuration.
Send audio data to Unmute STT Bridge.
Force-finalize buffered audio without closing the connection.
Signal end of audio stream and close the connection.
Keep the WebSocket connection alive during silence.
Unmute STT session is ready.
Partial (interim) transcription result.
Final transcription result.
Endpoint marker indicating the end of a spoken utterance.
Error occurred during Unmute STT session.
Was this page helpful?