cURL
Async process
Async transcription follows a submit-poll pattern:
- Submit a task: Send the request. The server returns a
task_id. - Get the result: Poll the result API with the
task_iduntil the task completes.
SDK
- Call
async_call()(Python) orasyncCall()(Java) to submit. The method returns a task object with atask_id. - Call
fetch()with the task object ortask_id. The SDK polls automatically until the task completes or times out.
REST API
- Use this endpoint to submit a task and get a
task_id. - Query the result with the
task_id.
Audio formats
Audio file URLs must be publicly accessible.
Each audio track in channel_id is billed separately. For example, [0, 1] for a single file incurs two charges.Authorizations
string
header
required
DashScope API key. Get your API key from Qwen Cloud console.
Header Parameters
enum<string>
required
Must be set to enable for asynchronous task submission.
enable