音频模型接口参考恢复音频编排

恢复音频编排

恢复失败或已停止的音频编排:保留已完成的片段,只生成未完成的片段或重新混音。仍有片段在处理中时,需等其结束后再恢复。

认证

API Key:X-API-Key: <API Key> 或 Authorization: Bearer <API Key>。

示例中的凭证为占位值,请替换后在服务器端运行。

代码示例

curl -X POST 'https://shixux.com/api/v1/audio/compositions/job_id_example/retry' \  -H 'X-API-Key: yb_xxx_yyy'
{  "id": "job_xxx",  "type": "tts",  "status": "queued",  "reserved_credits": 1,  "estimate_detail": {}}

路径参数

job_id*string

响应体

请求成功

application/json
  1. response
estimate_detail*
id*Id
reserved_credits*Reserved Credits
status*JobStatus
可选值"queued""processing""succeeded""failed""cancelled"
type*JobType
可选值"tts""avatar""video""video_analysis""image""voice_design""audio_composition"

本页目录