Query TTS Task Status

Use this API to query TTS task status and results.
GET/v1/audio/speech/tasks

Authorization

AuthorizationstringheaderRequired
HTTP: Bearer Auth

Query Parameters

task_id string Required

The ID of the async synthesis task, which is the task_id returned by the API when the task was created.

Response Body Structure

task_idstring

The queried async synthesis task ID

statusenum<string>

Current task status:
  • Waiting: Task in queue
  • Processing: Task is processing
  • Success: Task completed
  • Failed: Task failed

file_idlong

The audio file ID corresponding to the task (returned when the task is completed)

base_respobject

base_resp.status_codeinteger

Query status code, 0 indicates successful query request

base_resp.status_msgstring

Query status description, success indicates successful request