Documentation Index
Fetch the complete documentation index at: https://docs.slng.ai/llms.txt
Use this file to discover all available pages before exploring further.
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.
With a Different Model
Each model has its own endpoint and may use different parameters. For example, Rime Arcana uses speaker 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 all available models, endpoints, and their parameters, see the TTS models page.
For voice catalogs with audio samples, browse the Voices section in the sidebar.