{
"type": "init",
"config": {
"encoding": "pcm_s16le",
"sample_rate": 16000,
"channels": 1,
"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, this is a test.",
"confidence": 0.95,
"language": "en",
"duration": 2.5
}{
"type": "flush_confirmation",
"id": "flush-001"
}{
"type": "error",
"code": "auth_error",
"message": "Invalid or expired API key"
}Real-time speech-to-text transcription using Reson8 via WebSocket. Supports streaming audio with word-level timestamps, confidence scores, and partial results.
{
"type": "init",
"config": {
"encoding": "pcm_s16le",
"sample_rate": 16000,
"channels": 1,
"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, this is a test.",
"confidence": 0.95,
"language": "en",
"duration": 2.5
}{
"type": "flush_confirmation",
"id": "flush-001"
}{
"type": "error",
"code": "auth_error",
"message": "Invalid or expired API key"
}API key issued by SLNG. Pass as Authorization: Bearer <token> in the WebSocket upgrade request headers.
GET
Target world part override. Auto-selected if not provided. Available world parts: eu.
euInitialize a Reson8 STT session with provider-specific recognition configuration.
Stream an audio frame to be transcribed.
Force-finalize buffered audio tokens without closing the connection.
Signal end of audio stream and close the connection.
Keep the WebSocket connection alive during silence.
Indicates the session is ready to receive audio.
Interim transcription result (when enable_partials is true).
Final transcription result with optional metadata.
Acknowledges flush completion from Reson8.
Indicates an error occurred during recognition.
Was this page helpful?