Skip to main content
POST
/
tasks
/
tts
Text To Speech
curl --request POST \
  --url https://api.sunbird.ai/tasks/tts \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "text": "<string>",
  "speaker_id": 248,
  "temperature": 0.7,
  "max_new_audio_tokens": 2000
}
'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Documentation Index

Fetch the complete documentation index at: https://sunbirdai.mintlify.app/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json
text
string
required
speaker_id
enum<integer>
default:248
Available options:
241,
242,
243,
245,
246,
248
temperature
number
default:0.7
max_new_audio_tokens
integer
default:2000

Response

Successful Response