Messages
{
"type": "init",
"model": "aura:2",
"voice": "aura-2-thalia-en",
"config": {
"sample_rate": 24000,
"encoding": "linear16"
}
}{
"type": "text",
"text": "Hello, this is a test of text-to-speech synthesis."
}{
"type": "flush"
}{
"type": "clear"
}{
"type": "close"
}"0000FF00000000FF00000000010101010101010100000000FFFFFFFFFFFEFEFDFEFEFEFEFDFDFEFEFEFEFEFEFEFEFEFFFFFFFFFEFEFEFEFF0001000001020303030303030303030201010000FFFFFEFDFDFDFDFEFFFFFFFF0001020303020201000000FFFDFCFBFAFAFBFAF9F8F7F7F7F6F6F4F2F2F3F7FC000406090F14191A19181715110E0A05FEF9F6F3F0EEECEBEBECEEF2F6F9FC0005090D0F101010100E0C080401"{
"type": "flushed"
}{
"type": "cleared"
}{
"type": "error",
"code": "provider_error",
"message": "Provider returned an unexpected error"
}Deepgram
Aura 2 (WebSocket)
Stream low-latency conversational text-to-speech from Deepgram Aura 2 over WebSocket as raw binary frames, optimized for ultra-low-latency voice agents.
WSS
/
v1
/
tts
/
deepgram
/
aura:2
Messages
{
"type": "init",
"model": "aura:2",
"voice": "aura-2-thalia-en",
"config": {
"sample_rate": 24000,
"encoding": "linear16"
}
}{
"type": "text",
"text": "Hello, this is a test of text-to-speech synthesis."
}{
"type": "flush"
}{
"type": "clear"
}{
"type": "close"
}"0000FF00000000FF00000000010101010101010100000000FFFFFFFFFFFEFEFDFEFEFEFEFDFDFEFEFEFEFEFEFEFEFEFFFFFFFFFEFEFEFEFF0001000001020303030303030303030201010000FFFFFEFDFDFDFDFEFFFFFFFF0001020303020201000000FFFDFCFBFAFAFBFAF9F8F7F7F7F6F6F4F2F2F3F7FC000406090F14191A19181715110E0A05FEF9F6F3F0EEECEBEBECEEF2F6F9FC0005090D0F101010100E0C080401"{
"type": "flushed"
}{
"type": "cleared"
}{
"type": "error",
"code": "provider_error",
"message": "Provider returned an unexpected 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 Request
type:object
Initialize a TTS session with model and voice configuration.
Text Message
type:object
Send text to synthesize into audio output.
Flush Message
type:object
Force any buffered text/audio to be finalized and delivered.
Clear Message
type:object
Clear any queued text/audio from the current session.
Close Message
type:object
Close the session and stop any further audio.
Binary Audio Frame
type:object
Raw binary audio frame from Deepgram Aura.
Flushed
type:object
Acknowledges that buffered output was flushed.
Cleared
type:object
Acknowledges that queued output was cleared.
Error Response
type:object
Indicates an error occurred during synthesis.