cURL
curl --request POST \ --url http://localhost:3000/api/audio/{agentId}/speech/generate \ --header 'Content-Type: application/json' \ --data ' { "text": "<string>" } '
"<string>"
Generate speech audio from text using agent’s voice settings
ID of the agent
Text to convert to speech
Speech generated successfully
The response is of type file.
file
Was this page helpful?