POST
/
tts
curl --request POST \
  --url https://audio.dubverse.ai/api/tts \
  --header 'Content-Type: application/json' \
  --header 'X-API-KEY: <x-api-key>' \
  --data '{
  "text": "Welcome to Dubverse AI. Convert your text to lifelike speech with our advanced AI models.",
  "speaker_no": 1190,
  "config": {
    "use_streaming_response": false,
    "sample_rate": 22050
  },
  "callback_url": "<string>"
}'
This response does not have an example.

Headers

X-API-KEY
string
required

API key for authentication

Body

application/json
text
string
required

The input text you want to convert to speech.

Example:

"Welcome to Dubverse AI. Convert your text to lifelike speech with our advanced AI models."

speaker_no
integer
required

The ID of the speaker voice.

Example:

1190

config
object
callback_url
string

URL to receive the API response if different from the origin.

Response

200 - audio/wav
Successful response

The response is of type file.