volume-highText to Speech

πŸ”Š /v1/audio/speech β€” Text to Speech

Convert written text to audio using voice models like XTTS or Bark.

Parameters:

  • model (string) β€” required

  • input (string) β€” required

  • voice, language, etc. β€” optional

Example:

curl https://api.uniportai.site/v1/audio/speech \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "xtts-v2",
    "input": "Hello and welcome to the Uniport platform."
  }'

Last updated