curl --location --request POST 'https://api.async.ai/text_to_speech' \
--header 'x-api-key: <api-key>' \
--header 'version: v1' \
--header 'Content-Type: application/json' \
--data-raw '{
"model_id": "asyncflow_v2.0",
"transcript": "Welcome to Async",
"voice": {
"mode": "id",
"id": "e0f39dc4-f691-4e78-bba5-5c636692cc04"
},
"output_format": {
"container": "raw",
"encoding": "pcm_f32le",
"sample_rate": 44100
}
}'
This endpoint returns a file in audio/mpeg format.