cURL
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>" } } '
"<string>"
Convert text to speech using agent’s voice settings
Documentation IndexFetch the complete documentation index at: https://docs.elizaos.ai/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://docs.elizaos.ai/llms.txt
Use this file to discover all available pages before exploring further.
ID of the agent
Text to convert to speech
Show child attributes
Speech synthesized successfully
The response is of type file.
file
Was this page helpful?