curl --request POST \
--url https://dream-gateway.livepeer.cloud/text-to-speech \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model_id": "",
"text": "",
"description": "A male speaker delivers a slightly expressive and animated speech with a moderate speed and pitch."
}
'{
"audio": {
"url": "<string>"
}
}API reference for the text-to-speech endpoint that converts text into speech audio with customizable voice characteristics.
curl --request POST \
--url https://dream-gateway.livepeer.cloud/text-to-speech \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model_id": "",
"text": "",
"description": "A male speaker delivers a slightly expressive and animated speech with a moderate speed and pitch."
}
'{
"audio": {
"url": "<string>"
}
}ai-video channel on
Discord.Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Hugging Face model ID used for text to speech generation.
Text input for speech generation.
Description of speaker to steer text to speech generation.
Successful Response
Response model for audio generation.
The generated audio.
Show child attributes
Was this page helpful?