创建自定义音色
Last updated: Nov 4, 2026
POST
上传音频 / 视频定制音色,供生视频 voice_list 或主体绑定使用。
任务状态:
submitted: 已提交processing: 处理中succeed: 成功failed: 失败
使用 TE 北京地域 API Key 鉴权。模型能力、调用约定见 Kling 接口概览。
BearerAuthheader
AuthorizationBearer <token>TE 北京地域 API Key,填写后自动添加 Bearer 前缀。
application/json- body
voice_name*string≤ 20 字符
voice_url?stringmp3/wav/mp4/mov;人声干净、仅一种人声,5~30s
成功;具体状态及结果见响应字段。
application/json- response
code?stringmessage?stringrequestId?stringdata?curl -X POST 'https://vod.bj.baidubce.com/v3/aigc/kl/general/custom-voices' \ -H 'Content-Type: application/json' \ -d '{ "voice_name": "my-voice", "voice_url": "https://example.com/voice.mp3"}'Example Response200
{ "code": "string", "message": "string", "requestId": "string", "data": { "task_id": "tsk-xxxxxxxxxxxxxxxx", "task_status": "submitted", "created_at": 1722769557708, "updated_at": 1722769557708 }}
