POST
/
action
/
output_audio
curl --request POST \
  --url https://api-lr.agent.ai/v1/action/output_audio \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "text_to_speech": "<string>"
}'
{
  "status": 200,
  "response": "https://s3.us-east-2.amazonaws.com/asset-uploads.agent.ai/4oi2001mommncnj6.mp3"
}

Authorizations

Authorization
string
header
required

Bearer token from your account (https://agent.ai/user/settings#credits)

Body

application/json
text_to_speech
string

Text to convert to speech.

Response

200
application/json
Generated audio output
status
integer

HTTP status code of the action response

response
object

Response data from the action