Skip to main content
Want to try TTS without setting up code? Open the live demo and test different models and voices in your browser.
You need an SLNG API key. These examples use the Deepgram Aura model; swap the endpoint path to use a different provider.

Basic Request

Send text and receive a complete audio file in WAV format:
curl https://api.slng.ai/v1/tts/slng/deepgram/aura:2 \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Hello from sunny Barcelona!"
  }' \
  --output hello.wav
It will sound like this:

More Examples

With Voice Selection (Deepgram Aura)

Beyond the audio generation, each model supports different parameters. For example, to specify a voice in Deepgram Aura:
curl https://api.slng.ai/v1/tts/slng/deepgram/aura:2 \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Hello from sunny Barcelona!",
    "model": "aura-2-theia-en"
  }' \
  --output hello-theia.wav
For the complete parameter reference, see the Text-to-Speech API reference.

Choosing a Model

SLNG hosts these models on its own infrastructure for lowest latency:
ModelEndpointBest for
Deepgram Aura 2/v1/tts/slng/deepgram/aura:2Low-latency English/Spanish, voice agents
Rime Arcana 3/v1/tts/slng/rime/arcana:3-enMultilingual (EN/FR/HI), natural realistic speech
Proxy endpoints are also available (e.g. /v1/tts/deepgram/..., /v1/tts/sarvam/...) — these forward requests to the provider’s API. See the Text-to-Speech API reference for the full list of endpoints.

With Rime Arcana 3

Rime Arcana uses a speaker parameter instead of model:
curl https://api.slng.ai/v1/tts/slng/rime/arcana:3-en \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "Hello from Rime Arcana!",
    "speaker": "astra"
  }' \
  --output hello-arcana.wav
For available speakers, see the Rime Arcana voices page.

Voice Catalogs

Deepgram Aura

For a complete catalog of Deepgram Aura voices with audio samples and characteristics, see the Deepgram Aura voices page.

Rime Arcana

Multilingual voices with support for English, French, Spanish, German, Hindi, and Arabic. For a complete catalog with audio samples, see the Rime Arcana voices page.