Concatenate audio files asynchronously.
POST/operator/async-concat-audio
This endpoint concatenates audio files exactly like the normal concat audio endpoint. In contrast to that endpoint, it returns immediately with a task ID instead of waiting for the audio to be processed, which means it is not affected by the request timeout of your automation platform. The URL of the concatenated file is sent to the webhook given in sendTo, and can also be retrieved by passing the task ID to the /code/taskstatus endpoint. Use this endpoint whenever the combined length of your audio files is large enough that the synchronous endpoint runs into a timeout. The execution of this module costs 500 credits, and the credits are only deducted once the concatenation has succeeded.
Request
Header Parameters
- application/json
Bodyrequired
An array of URLs to the audio files to concatenate. Minimum 2 required.
Possible values: >= 2
["https://example.com/audio1.mp3","https://example.com/audio2.mp3"]The desired output audio file format. Default is mp3.
Possible values: [flac, m4a, mp3, ogg, wav]
The name of the concatenated audio file.
The amount of silence that should be inserted between the audio files in seconds.
The URL of the webhook the response will be sent to.
Responses
- 200
- 400
Success
- application/json
- Schema
- Example (auto)
Schema
Always pending, since the task was queued.
The ID of the task, which can be passed to /code/taskstatus.
{
"status": "string",
"taskId": "string"
}
Bad Request
- application/json
- Schema
- Example (auto)
Schema
{
"status": 0,
"errorMessage": "string",
"code": "string"
}