curl --request POST \
--url http://localhost:3000/api/audio/{agentId}/process-audio \
--header 'Content-Type: multipart/form-data' \
--form file='@example-file' \
--form userId=3c90c3cc-0d44-4b50-8888-8dd25736052a \
--form roomId=3c90c3cc-0d44-4b50-8888-8dd25736052a{
"success": true,
"data": {
"text": "<string>",
"response": "<string>",
"audioResponse": "<string>"
}
}Process an audio message - transcribe and get agent response
curl --request POST \
--url http://localhost:3000/api/audio/{agentId}/process-audio \
--header 'Content-Type: multipart/form-data' \
--form file='@example-file' \
--form userId=3c90c3cc-0d44-4b50-8888-8dd25736052a \
--form roomId=3c90c3cc-0d44-4b50-8888-8dd25736052a{
"success": true,
"data": {
"text": "<string>",
"response": "<string>",
"audioResponse": "<string>"
}
}ID of the agent
Was this page helpful?