voice_id,可用于后续 TTS 任务。audio_file_id — 音频文件 ID(支持 mp3/wav/m4a,10-300 秒,≤20MB)voice_name — 克隆声音的名称clone_model — 克隆模型,目前仅支持 3(Pro)voice_idapp-key: ********************{
"pipeline_id": "string",
"callback_url": "string",
"callback_auth": {
"type": "bearer",
"token": "string",
"header_name": "string",
"header_value": "string"
},
"clone_model": 3,
"audio_file_id": "string",
"voice_name": "string"
}curl --location 'https://api.jieshuo.cn/v1/tasks/voice-clone' \
--header 'x-code;' \
--header 'app-key: <api-key>' \
--header 'Content-Type: application/json' \
--data '{
"pipeline_id": "string",
"callback_url": "string",
"callback_auth": {
"type": "bearer",
"token": "string",
"header_name": "string",
"header_value": "string"
},
"clone_model": 3,
"audio_file_id": "string",
"voice_name": "string"
}'{
"code": 10000,
"message": "Success",
"data": {
"task_id": "string",
"status": 0,
"estimated_points": 0,
"message": "Task created",
"voice_id": "string"
}
}