Text-to-speech

POST /v1/tts turns text into audio in one request. Use it for narration, notifications and pre-rendered lines. For live use, call say() inside a realtime session instead.

curl https://api.vaux.ng/v1/tts \
  -H "Authorization: Bearer $VAUX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "text": "We did it!", "voice": "maya", "emotion": "excited", "format": "mp3" }' \
  --output speech.mp3
FieldTypeDescription
textstring, ≤ 5,000 charsWhat to say
voicestringVoice slug, name or id
emotionstringOptional. See emotions
speed0.6–1.5Optional
volume0.5–2Optional
languagestringOptional, default en
formatmp3 · wavDefault mp3

The response body is the audio. The X-Credits-Charged header shows the cost (billed per 1,000 characters).