curl --request POST \
--url http://localhost:3000/api/audio/{agentId}/process-audio \
--header 'Content-Type: multipart/form-data' \
--form userId=3c90c3cc-0d44-4b50-8888-8dd25736052a \
--form roomId=3c90c3cc-0d44-4b50-8888-8dd25736052a \
--form file=@example-file
{
"success": true,
"data": {
"text": "<string>",
"response": "<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 userId=3c90c3cc-0d44-4b50-8888-8dd25736052a \
--form roomId=3c90c3cc-0d44-4b50-8888-8dd25736052a \
--form file=@example-file
{
"success": true,
"data": {
"text": "<string>",
"response": "<string>"
}
}
ID of the agent
Audio processed successfully
The response is of type object
.
Was this page helpful?