{
"type": "init",
"config": {
"sample_rate": 16000,
"encoding": "linear16",
"enable_partials": true,
"smart_format": true,
"diarize": true
}
}"0000FF00000000FF00000000010101010101010100000000FFFFFFFFFFFFFEFEFDFEFEFEFEFDFDFEFEFEFEFEFEFEFEFEFFFFFFFFFEFEFEFEFF000100001020303030303030303030201010000FFFFFEFDFDFDFDFEFFFFFFFF0001020303020201000000FFFDFCFBFAFAFBFAF9F8F7F7F7F6F6F4F2F2F3F7FC000406090F14191A19181715110E0A05FEF9F6F3F0EEECEBEBECEEF2F6F9FC0005090D0F101010100E0C080401"{
"type": "finalize"
}{
"type": "close"
}{
"type": "keepalive"
}{
"type": "Metadata",
"request_id": "a2b1db35-40ff-41f9-9912-dedaeab02228",
"created": "2026-04-01T09:40:09.152Z",
"duration": 0,
"channels": 1,
"sha256": "incomplete",
"transaction_key": "deprecated"
}{
"type": "Results",
"channel_index": [
0,
1
],
"duration": 4.49,
"start": 0,
"is_final": true,
"speech_final": false,
"channel": {
"alternatives": [
{
"transcript": "इसके बाद हम एक ऐसे खिलाड़ी के बारे में बात करेंगे जिससे इस world cup में भारतीय fans को",
"confidence": 0.9980469,
"words": [
{
"word": "इसके",
"start": 0.08,
"end": 0.32,
"confidence": 0.9970703,
"punctuated_word": "इसके"
},
{
"word": "बाद",
"start": 0.32,
"end": 0.48,
"confidence": 0.9980469,
"punctuated_word": "बाद"
}
]
}
]
}
}{
"type": "Error",
"code": "backend_connection_failed",
"message": "Failed to connect to backend: 500 Internal Server Error"
}Transcribe Hindi audio using SLNG-hosted Deepgram Nova 3.
{
"type": "init",
"config": {
"sample_rate": 16000,
"encoding": "linear16",
"enable_partials": true,
"smart_format": true,
"diarize": true
}
}"0000FF00000000FF00000000010101010101010100000000FFFFFFFFFFFFFEFEFDFEFEFEFEFDFDFEFEFEFEFEFEFEFEFEFFFFFFFFFEFEFEFEFF000100001020303030303030303030201010000FFFFFEFDFDFDFDFEFFFFFFFF0001020303020201000000FFFDFCFBFAFAFBFAF9F8F7F7F7F6F6F4F2F2F3F7FC000406090F14191A19181715110E0A05FEF9F6F3F0EEECEBEBECEEF2F6F9FC0005090D0F101010100E0C080401"{
"type": "finalize"
}{
"type": "close"
}{
"type": "keepalive"
}{
"type": "Metadata",
"request_id": "a2b1db35-40ff-41f9-9912-dedaeab02228",
"created": "2026-04-01T09:40:09.152Z",
"duration": 0,
"channels": 1,
"sha256": "incomplete",
"transaction_key": "deprecated"
}{
"type": "Results",
"channel_index": [
0,
1
],
"duration": 4.49,
"start": 0,
"is_final": true,
"speech_final": false,
"channel": {
"alternatives": [
{
"transcript": "इसके बाद हम एक ऐसे खिलाड़ी के बारे में बात करेंगे जिससे इस world cup में भारतीय fans को",
"confidence": 0.9980469,
"words": [
{
"word": "इसके",
"start": 0.08,
"end": 0.32,
"confidence": 0.9970703,
"punctuated_word": "इसके"
},
{
"word": "बाद",
"start": 0.32,
"end": 0.48,
"confidence": 0.9980469,
"punctuated_word": "बाद"
}
]
}
]
}
}{
"type": "Error",
"code": "backend_connection_failed",
"message": "Failed to connect to backend: 500 Internal Server Error"
}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. Available regions: ap-southeast-2.
ap-southeast-2Target world part override. Auto-selected if not provided. Available world parts: eu, ap.
eu, apInitialize an SLNG-hosted Deepgram Nova 3 Hindi STT session.
Stream raw binary PCM audio frames to be transcribed. Sent as binary WebSocket frames (NOT JSON). Recommended chunk size is 8192 bytes (~256ms at 16kHz linear16). Start streaming immediately after the init message — do not wait for the Metadata response.
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.
Deepgram session metadata. Sent when the backend connects and again after the session ends with final statistics. This is informational — do not wait for it before streaming audio.
Deepgram transcription result — partial or final, determined by is_final.
Error from the Deepgram backend or gateway.
Was this page helpful?