{
"type": "init",
"model": "aura-2-celeste-es",
"voice": "aura-2-celeste-es",
"config": {
"sample_rate": 24000,
"encoding": "linear16"
}
}{
"type": "text",
"text": "Hello, this is a test of text-to-speech synthesis."
}{
"type": "flush"
}{
"type": "clear"
}{
"type": "cancel"
}{
"type": "Metadata",
"request_id": "a7e2f4b1-3c89-4d5a-b6e1-9f8a7c6d5e4b",
"model_name": "aura-2-celeste-es",
"model_version": "2025-04-15.0",
"model_uuid": "f1a2b3c4-5d6e-7f8a-9b0c-1d2e3f4a5b6c"
}"0000FF00000000FF00000000010101010101010100000000FFFFFFFFFFFEFEFDFEFEFEFEFDFDFEFEFEFEFEFEFEFEFEFFFFFFFFFEFEFEFEFF0001000001020303030303030303030201010000FFFFFEFDFDFDFDFEFFFFFFFF0001020303020201000000FFFDFCFBFAFAFBFAF9F8F7F7F7F6F6F4F2F2F3F7FC000406090F14191A19181715110E0A05FEF9F6F3F0EEECEBEBECEEF2F6F9FC0005090D0F101010100E0C080401"{
"type": "Flushed",
"sequence_id": 0
}{
"type": "Cleared"
}{
"type": "error",
"code": "provider_error",
"message": "Provider returned an unexpected error"
}Text-to-Speech API for generating speech from text using SLNG deepgram/aura. Real-time conversational TTS designed for voice agents with ultra-low latency. Spanish voices only. Establishes a WebSocket connection for real-time text-to-speech.
{
"type": "init",
"model": "aura-2-celeste-es",
"voice": "aura-2-celeste-es",
"config": {
"sample_rate": 24000,
"encoding": "linear16"
}
}{
"type": "text",
"text": "Hello, this is a test of text-to-speech synthesis."
}{
"type": "flush"
}{
"type": "clear"
}{
"type": "cancel"
}{
"type": "Metadata",
"request_id": "a7e2f4b1-3c89-4d5a-b6e1-9f8a7c6d5e4b",
"model_name": "aura-2-celeste-es",
"model_version": "2025-04-15.0",
"model_uuid": "f1a2b3c4-5d6e-7f8a-9b0c-1d2e3f4a5b6c"
}"0000FF00000000FF00000000010101010101010100000000FFFFFFFFFFFEFEFDFEFEFEFEFDFDFEFEFEFEFEFEFEFEFEFFFFFFFFFEFEFEFEFF0001000001020303030303030303030201010000FFFFFEFDFDFDFDFEFFFFFFFF0001020303020201000000FFFDFCFBFAFAFBFAF9F8F7F7F7F6F6F4F2F2F3F7FC000406090F14191A19181715110E0A05FEF9F6F3F0EEECEBEBECEEF2F6F9FC0005090D0F101010100E0C080401"{
"type": "Flushed",
"sequence_id": 0
}{
"type": "Cleared"
}{
"type": "error",
"code": "provider_error",
"message": "Provider returned an unexpected 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.
euInitialize an SLNG Deepgram Aura 2 Spanish TTS session.
Send text to synthesize into audio output.
Force any buffered text/audio to be finalized and delivered.
Clear any queued text/audio from the current session.
Cancel the current generation and stop any further audio.
Server metadata response after SLNG Deepgram Aura 2 Spanish session initialization.
Raw binary audio buffer from SLNG Deepgram Aura.
Acknowledges that buffered output was flushed from SLNG Deepgram Aura.
Acknowledges that queued output was cleared from SLNG Deepgram Aura.
Indicates an error occurred during synthesis.
Was this page helpful?