curl --request POST \
--url https://eu-north.api.slng.ai:2/v1/tts/deepgram/aura:2 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "aura-2-thalia-en",
"text": "Hello, this is a test of text to speech synthesis."
}
'"<string>"{
"error": "Validation error",
"details": "Missing required field: text"
}{
"error": "TTS service error",
"status": 400,
"details": "Upstream provider error: 400 Bad Request - Invalid voice"
}{
"error": "Service error",
"details": "Internal processing error"
}{
"error": "TTS service error",
"status": 400,
"details": "Upstream provider error: 400 Bad Request - Invalid voice"
}Aura 2
Synthesize speech using Deepgram Aura 2 for conversational voice agents.
curl --request POST \
--url https://eu-north.api.slng.ai:2/v1/tts/deepgram/aura:2 \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "aura-2-thalia-en",
"text": "Hello, this is a test of text to speech synthesis."
}
'"<string>"{
"error": "Validation error",
"details": "Missing required field: text"
}{
"error": "TTS service error",
"status": 400,
"details": "Upstream provider error: 400 Bad Request - Invalid voice"
}{
"error": "Service error",
"details": "Internal processing error"
}{
"error": "TTS service error",
"status": 400,
"details": "Upstream provider error: 400 Bad Request - Invalid voice"
}Authorizations
API key issued by SLNG. Pass as Authorization: Bearer <token>.
Body
Text to synthesize.
1Output audio encoding for HTTP synthesis (default linear16). Parameter applicability depends on the encoding and Deepgram rejects a parameter that does not apply: sample_rate does not apply to mp3 or opus, container does not apply to mp3 or flac, and bit_rate applies only to mp3 and opus. flac accepts every sample rate except 24000. aac is not offered because its raw stream cannot be metered. Over WebSocket the same Aura models accept only linear16, mulaw, and alaw.
linear16, mp3, opus, flac, mulaw, alaw Output sample rate in Hz. Applies to linear16 (all values, default 24000), mulaw/alaw (8000 or 16000), and flac (8000, 16000, 32000, 48000; 24000 is rejected, default 48000). Must be omitted for mp3 and opus.
8000, 16000, 24000, 32000, 48000 Output container. none or wav for linear16, mulaw, and alaw (default wav); ogg only for opus. Must be omitted for mp3 and flac.
none, wav, ogg Output bit rate for lossy encodings only. mp3 accepts 8000, 16000, 24000, 32000, and 48000 (the MP3 sample rate is derived from it, e.g. 48000 bps yields 24000 Hz); opus accepts every listed value. Must be omitted for other encodings.
8000, 16000, 24000, 32000, 48000, 64000, 96000, 128000, 192000, 256000 Voice model name. Check the full list with audio samples in the voice list.
aura-2-amalthea-en, aura-2-andromeda-en, aura-2-apollo-en, aura-2-arcas-en, aura-2-aries-en, aura-2-asteria-en, aura-2-athena-en, aura-2-atlas-en, aura-2-aurora-en, aura-2-callista-en, aura-2-cordelia-en, aura-2-cora-en, aura-2-delia-en, aura-2-draco-en, aura-2-electra-en, aura-2-harmonia-en, aura-2-helena-en, aura-2-hera-en, aura-2-hermes-en, aura-2-hyperion-en, aura-2-iris-en, aura-2-janus-en, aura-2-juno-en, aura-2-jupiter-en, aura-2-luna-en, aura-2-mars-en, aura-2-minerva-en, aura-2-neptune-en, aura-2-odysseus-en, aura-2-ophelia-en, aura-2-orion-en, aura-2-orpheus-en, aura-2-pandora-en, aura-2-phoebe-en, aura-2-pluto-en, aura-2-saturn-en, aura-2-selene-en, aura-2-thalia-en, aura-2-theia-en, aura-2-vesta-en, aura-2-zeus-en, aura-2-agustina-es, aura-2-alvaro-es, aura-2-antonia-es, aura-2-aquila-es, aura-2-carina-es, aura-2-celeste-es, aura-2-diana-es, aura-2-estrella-es, aura-2-gloria-es, aura-2-javier-es, aura-2-luciano-es, aura-2-nestor-es, aura-2-olivia-es, aura-2-selena-es, aura-2-silvia-es, aura-2-sirio-es, aura-2-valerio-es, aura-2-beatrix-nl, aura-2-cornelia-nl, aura-2-daphne-nl, aura-2-hestia-nl, aura-2-lars-nl, aura-2-leda-nl, aura-2-rhea-nl, aura-2-roman-nl, aura-2-sander-nl, aura-2-agathe-fr, aura-2-hector-fr, aura-2-aurelia-de, aura-2-elara-de, aura-2-fabian-de, aura-2-julius-de, aura-2-kara-de, aura-2-lara-de, aura-2-viktoria-de, aura-2-cesare-it, aura-2-cinzia-it, aura-2-demetra-it, aura-2-dionisio-it, aura-2-elio-it, aura-2-flavio-it, aura-2-livia-it, aura-2-maia-it, aura-2-melia-it, aura-2-perseo-it, aura-2-ama-ja, aura-2-ebisu-ja, aura-2-fujin-ja, aura-2-izanami-ja, aura-2-uzume-ja Response
Synthesis successful.
Binary audio data.