curl --request POST \
--url http://localhost:3000/api/audio/{agentId}/audio-messages/synthesize \
--header 'Content-Type: application/json' \
--data '{
"text": "<string>",
"options": {
"voice": "<string>",
"language": "<string>"
}
}'
This response does not have an example.
Convert text to speech using agent’s voice settings
curl --request POST \
--url http://localhost:3000/api/audio/{agentId}/audio-messages/synthesize \
--header 'Content-Type: application/json' \
--data '{
"text": "<string>",
"options": {
"voice": "<string>",
"language": "<string>"
}
}'
This response does not have an example.
ID of the agent
Speech synthesized successfully
The response is of type file
.
Was this page helpful?