| 名称 | 位置 | 类型 | 必选 | 说明 |
|---|---|---|---|---|
| appId | header | string | 是 | 应用ID |
| timestamp | header | string | 是 | 时间戳 |
| sign | header | string | 是 | 签名 |
| user-agent | header | string | 是 | UA安全认证码 |
返回示例
200 Response
{
"code": 1,
"msg": "操作成功",
"data": [
{
"voice_id": 11,
"voice_name": "测试男声",
"sex": "男",
"clone_status": 2,
"create_time": "2024-11-29 12:00:24"
},
{
"voice_id": 12,
"voice_name": "测试男声",
"sex": "男",
"clone_status": 2,
"create_time": "2024-11-29 12:03:01"
}
]
}| 状态码 | 状态码含义 | 说明 | 数据模型 |
|---|---|---|---|
| 200 | OK | none | Inline |
| 名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
|---|---|---|---|---|---|
| » code | integer | true | none | none | |
| » msg | string | true | none | none | |
| » data | [object] | true | none | none | |
| »» voice_id | integer | true | none | none | |
| »» voice_name | string | true | none | none | |
| »» sex | string | true | none | none | |
| »» clone_status | integer | true | none | none | |
| »» create_time | string | true | none | none |
Body 请求参数
{
"voice_service_code": "niwaai",
"voice_name": "测试男声-niwa",
"voice_url": "https://daijia-dev.oss-cn-shenzhen.aliyuncs.com/vedio/ces.mp3",
"sex": 1
}| 名称 | 位置 | 类型 | 必选 | 说明 |
|---|---|---|---|---|
| appId | header | string | 是 | none |
| timestamp | header | string | 是 | none |
| sign | header | string | 是 | none |
| user-agent | header | string | 是 | UA安全认证码 |
| body | body | object | 否 | none |
| » voice_service_code | body | string | 是 | none |
| » voice_name | body | string | 是 | none |
| » voice_url | body | string | 是 | none |
| » description | body | string | 是 | none |
| » sex | body | integer | 是 | none |
返回示例
200 Response
{
"code": 1,
"msg": "操作成功",
"data": {
"voice_id": 49,
"voice_name": "测试男声",
"sex": "男",
"clone_status": 1,
"create_time": "2024-12-04 09:10:48"
}
}| 状态码 | 状态码含义 | 说明 | 数据模型 |
|---|---|---|---|
| 200 | OK | none | Inline |
| 名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
|---|---|---|---|---|---|
| » code | integer | true | none | none | |
| » msg | string | true | none | none | |
| » data | object | true | none | none | |
| »» voice_id | integer | true | none | none | |
| »» voice_name | string | true | none | none | |
| »» sex | string | true | none | none | |
| »» clone_status | integer | true | none | 克隆状态 | 1克隆中 2克隆成功 2克隆失败 |
| »» create_time | string | true | none | none |
| 名称 | 位置 | 类型 | 必选 | 说明 |
|---|---|---|---|---|
| voiceId | path | string | 是 | 声音ID |
| appId | header | string | 是 | none |
| timestamp | header | string | 是 | none |
| sign | header | string | 是 | none |
| user-agent | header | string | 是 | UA安全认证码 |
返回示例
200 Response
{
"code": 1,
"msg": "操作成功",
"data": {
"voice_id": 49,
"voice_name": "测试男声",
"sex": "男",
"clone_status": 2,
"create_time": "2024-12-04 09:27:42"
}
}| 状态码 | 状态码含义 | 说明 | 数据模型 |
|---|---|---|---|
| 200 | OK | none | Inline |
| 名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
|---|---|---|---|---|---|
| » code | integer | true | none | none | |
| » msg | string | true | none | none | |
| » data | object | true | none | none | |
| »» voice_id | integer | true | none | none | |
| »» voice_name | string | true | none | none | |
| »» sex | string | true | none | none | |
| »» clone_status | integer | true | none | 克隆状态 | 1克隆中 2克隆成功 3克隆失败 |
| »» create_time | string | true | none | none |
Body 请求参数
{
"voice_id": 49,
"content": "今天,交通运输部举行交通物流降本提质增效专题新闻发布会,国家邮政局政策法规司二级巡视员李永松介绍,在邮政领域实施方案中提到,要扎实推进“快递进村”。邮政快递业连接线上线下、服务全程全网,是交通物流降本提质增效、畅通经济循环的生力军。在党中央、国务院坚强领导下,在各部门各地方大力支持下,县乡村寄递服务网络加快健全,全国已建成30多万个村级寄递物流综合服务站,农村地区的寄递服务网络和基础设施进一步健全,农村市场成为邮政快递业新的增长极。今年以来,我国快递市场持续快速发展,月均业务量达到140亿件。当前,我国已进入年快递业务量超千亿件、业务收入超万亿元的新阶段,建成了世界上最为通达、最为普惠、规模最大、受益人数最多的寄递服务网络。"
}| 名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
|---|---|---|---|---|---|
| appId | header | string | 否 | none | |
| timestamp | header | string | 否 | none | |
| sign | header | string | 否 | none | |
| user-agent | header | string | 否 | UA安全认证码 | |
| body | body | object | 否 | none | |
| » voice_id | body | integer | 是 | 声音ID | none |
| » content | body | string | 是 | 文案 | none |
| » model_type | body | string | 是 | 声音模型类型(1公模 2自有) | none |
| » language | body | string | 否 | 语言(仅3D精品版生效,识别码看下面语言识别码列表或联系客服获取) | none |
| » speed_ratio | body | number | 否 | 语速(仅Pro极速版生效) | none |
| » pitch_ratio | body | number | 否 | 音调(仅Pro极速版生效 | none |
| » volume_ratio | body | number | 否 | 音量(仅Pro极速版生效 | none |
| » model | body | string | 否 | Model 1或2(仅VPro高仿真版生效) | none |
返回示例
200 Response
{
"code": 1,
"msg": "操作成功",
"data": {
"audio_id": 44,
"merge_status": 1,
"audio_url": null
}
}| 状态码 | 状态码含义 | 说明 | 数据模型 |
|---|---|---|---|
| 200 | OK | none | Inline |
| 名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
|---|---|---|---|---|---|
| » code | integer | true | none | none | |
| » msg | string | true | none | none | |
| » data | object | true | none | none | |
| »» audio_id | integer | true | none | 音频ID | none |
| »» merge_status | integer | true | none | 合成状态 1进行中、2 成功、3失败 | none |
| »» audio_url | null | true | none | 合成成功 返回的音频地址 | none |
| »» audio_duration | integer | true | none | 时长 | none |
| 名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
|---|---|---|---|---|---|
| audioId | path | string | 是 | 音频ID | |
| appId | header | string | 否 | none | |
| timestamp | header | string | 否 | none | |
| sign | header | string | 否 | none | |
| user-agent | header | string | 否 | UA安全认证码 |
返回示例
200 Response
{
"code": 1,
"msg": "操作成功",
"data": {
"audio_id": 44,
"merge_status": 1,
"audio_url": null
}
}| 状态码 | 状态码含义 | 说明 | 数据模型 |
|---|---|---|---|
| 200 | OK | none | Inline |
| 名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
|---|---|---|---|---|---|
| » code | integer | true | none | none | |
| » msg | string | true | none | none | |
| » data | object | true | none | none | |
| »» audio_id | integer | true | none | 音频ID | none |
| »» merge_status | integer | true | none | 合成状态 1进行中、2 成功、3失败 | none |
| »» audio_url | null | true | none | 合成成功 返回的音频地址 | none |
| »» audio_duration | string | true | none | 时长 | none |
| 名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
|---|---|---|---|---|---|
| appId | header | string | 否 | none | |
| timestamp | header | string | 否 | none | |
| sign | header | string | 否 | none | |
| user-agent | header | string | 否 | UA安全认证码 |
返回示例
200 Response
{
"code": 1,
"msg": "操作成功",
"data": [
{
"voice_id": 1,
"voice_name": "中文女",
"sex": 2,
"clone_status": 2,
"voice_service_name": "tts666",
"create_time": ""
},
{
"voice_id": 2,
"voice_name": "拟哇1",
"sex": 1,
"clone_status": 2,
"voice_service_name": "拟娲-专业",
"create_time": "2024-12-03 18:26:59"
},
{
"voice_id": 5,
"voice_name": "中文男",
"sex": 1,
"clone_status": 2,
"voice_service_name": "tts666",
"create_time": ""
},
{
"voice_id": 6,
"voice_name": "英文女",
"sex": 2,
"clone_status": 2,
"voice_service_name": "tts666",
"create_time": ""
},
{
"voice_id": 7,
"voice_name": "英文男",
"sex": 1,
"clone_status": 2,
"voice_service_name": "tts666",
"create_time": ""
},
{
"voice_id": 8,
"voice_name": "韩文女",
"sex": 2,
"clone_status": 2,
"voice_service_name": "tts666",
"create_time": ""
},
{
"voice_id": 9,
"voice_name": "韩文男",
"sex": 1,
"clone_status": 2,
"voice_service_name": "tts666",
"create_time": ""
},
{
"voice_id": 10,
"voice_name": "日文女",
"sex": 2,
"clone_status": 2,
"voice_service_name": "tts666",
"create_time": ""
},
{
"voice_id": 11,
"voice_name": "日文男",
"sex": 1,
"clone_status": 2,
"voice_service_name": "tts666",
"create_time": ""
},
{
"voice_id": 13,
"voice_name": "粤语男",
"sex": 1,
"clone_status": 2,
"voice_service_name": "tts666",
"create_time": ""
}
]
}| 状态码 | 状态码含义 | 说明 | 数据模型 |
|---|---|---|---|
| 200 | OK | none | Inline |
| 名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
|---|---|---|---|---|---|
| » code | integer | true | none | none | |
| » msg | string | true | none | none | |
| » data | [object] | true | none | none | |
| »» voice_id | integer | true | none | 声音id | none |
| »» voice_name | string | true | none | 声音名称 | none |
| »» sex | integer | true | none | 性别 | none |
| »» clone_status | integer | true | none | 克隆状态 | none |
| »» voice_service_name | string | true | none | 服务商名称 | none |
| »» create_time | string | true | none | 创建时间 | none |
返回示例
200 Response
{}| 状态码 | 状态码含义 | 说明 | 数据模型 |
|---|---|---|---|
| 200 | OK | none | Inline |
Body 请求参数
{
"voice_service_code": "string",
"voice_url": "string",
"sex": 0,
"voice_name": "string",
"prompt_audio_url": "string",
"text": "string",
"model": "string"
}| 名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
|---|---|---|---|---|---|
| file | query | string | 否 | none | |
| body | body | object | 否 | none | |
| » voice_service_code | body | string | 是 | none | |
| » voice_url | body | string | 是 | none | |
| » sex | body | integer | 是 | none | |
| » voice_name | body | string | 是 | none | |
| » prompt_audio_url | body | string | 是 | none | |
| » text | body | string | 是 | none | |
| » model | body | string | 是 | none |
返回示例
200 Response
{}| 状态码 | 状态码含义 | 说明 | 数据模型 |
|---|---|---|---|
| 200 | OK | none | Inline |
Body 请求参数
{
"voice_id": 0,
"model_type": 0,
"model": "string",
"text": "string"
}| 名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
|---|---|---|---|---|---|
| file | query | string | 否 | none | |
| appId | header | string | 是 | none | |
| timestamp | header | string | 是 | none | |
| sign | header | string | 是 | none | |
| body | body | object | 否 | none | |
| » voice_id | body | integer | 是 | none | |
| » model_type | body | integer | 是 | none | |
| » model | body | string | 否 | none | |
| » text | body | string | 是 | none |
返回示例
200 Response
{}| 状态码 | 状态码含义 | 说明 | 数据模型 |
|---|---|---|---|
| 200 | OK | none | Inline |
Body 请求参数
{
"voice_id": 0,
"model_type": 0,
"model": "string",
"text": "string"
}| 名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
|---|---|---|---|---|---|
| file | query | string | 否 | none | |
| appId | header | string | 是 | none | |
| timestamp | header | string | 是 | none | |
| sign | header | string | 是 | none | |
| body | body | object | 否 | none | |
| » voice_id | body | integer | 是 | none | |
| » model_type | body | integer | 是 | none | |
| » model | body | string | 否 | none | |
| » text | body | string | 是 | none |
返回示例
200 Response
{}| 状态码 | 状态码含义 | 说明 | 数据模型 |
|---|---|---|---|
| 200 | OK | none | Inline |
| 名称 | 位置 | 类型 | 必选 | 中文名 | 说 明 |
|---|---|---|---|---|---|
| searchId | path | string | 是 | channelSearchId(渠道查询id)或 videoId(视频id) | |
| appId | header | string | 否 | none | |
| timestamp | header | string | 否 | none | |
| sign | header | string | 否 | none |
返回示例
200 Response
{
"code": 1,
"msg": "操作成功",
"data": {
"video_id": 191,
"merge_status": 2,
"allowed_enhance": 1,
"enhance_status": 0,
"video_url": "https://fdx-public-dev.oss-cn-shenzhen.aliyuncs.com/upload/attachment/video/202503/04/1741071407791_.mp4",
"fail_reason": null
}
}| 状态码 | 状态码含义 | 说明 | 数据模型 |
|---|---|---|---|
| 200 | OK | none | Inline |
| 名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
|---|---|---|---|---|---|
| » code | integer | true | none | none | |
| » msg | string | true | none | none | |
| » data | object | true | none | none | |
| »» video_id | integer | true | none | 视频id | |
| »» merge_status | integer | true | none | 合成状态 0等待 1生成中 2成功 3失败 | |
| »» video_url | string | true | none | 视频url | |
| »» allowed_enhance | integer | true | none | 是否允许增强 0不允许 1允许 | |
| »» enhance_status | integer | true | none | 加强状态 0待增强 1已增强 2增强中 3增强失败 | |
| »» failReason | string | true | none | 失败原因 |
Body 请求参数
{
"model_group_id": 2,
"sex": 1,
"name": "zz测试ne",
"platform_code": "niwa",
"video_oss_url": "https://daijia-dev.oss-cn-shenzhen.aliyuncs.com/vedio/1.mp4"
}| 名称 | 位置 | 类型 | 必选 | 中文名 | 说明 |
|---|---|---|---|---|---|
| appId | header | string | 否 | none | |
| timestamp | header | string | 否 | none | |
| sign | header | string | 否 | none | |
| body | body | object | 否 | none | |
| » voice_type | body | string | 是 | 1模型 2真人配音 3我的音频 | |
| » model_type | body | integer | 是 | 数字人模型类型(1公模 2 自有) | |
| » model_id | body | integer | 是 | 模型id | |
| » voice_id | body | integer | 否 | voiceType=1时 声音模型id | |
| » text | body | string | 否 | voiceType=1时 文本内容 | |
| » voice_model_type | body | string | 否 | voiceType=1时 声音模型类型(1公模 2自有) | |
| » speed_ratio | body | number | 否 | voiceType=1时 语速 | |
| » pitch_ratio | body | number | 否 | voiceType=1时 音调 | |
| » volume_ratio | body | number | 否 | voiceType=1时 音量 | |
| » audio_oss_url | body | integer | 否 | voiceType=2时 音频地址 | |
| » audio_id | body | integer | 否 | voiceTyp2=3时 我的音频Id | |
| » channel_search_id | body | string | 否 | 渠道查询id 开发者保持唯一(不必传) | |
| » oss_config | body | object | 否 | oss配置 | |
| »» access_id | body | string | 是 | KeyId | |
| »» access_secret | body | string | 是 | 密钥 | |
| »» bucket | body | string | 是 | bucket | |
| »» endpoint | body | string | 是 | 上传地址 | |
| »» url | body | string | 是 | 阿里云空音访问域名 https://开头 |
返回示例
200 Response
{
"code": 0,
"msg": "string",
"data": [
{
"id": 0,
"user_id": 0,
"model_group_id": 0,
"sex": 0,
"name": "string",
"platform_id": 0,
"platform_name": "string",
"video_oss_url": "string"
}
]
}| 状态码 | 状态码含义 | 说明 | 数据模型 |
|---|---|---|---|
| 200 | OK | none | Inline |
| 名称 | 类型 | 必选 | 约束 | 中文名 | 说明 |
|---|---|---|---|---|---|
| » code | integer | true | none | 1成功 | |
| » msg | string | true | none | 请求成功 | |
| » data | [object] | true | none | 视频id | |
| »» id | integer | true | none | 数字人id | none |
| »» user_id | integer | true | none | 数字人用户id | none |
| »» model_group_id | integer | true | none | none | |
| »» sex | integer | true | none | 性别 | none |
| »» name | string | true | none | 名称 | none |
| »» platform_id | integer | true | none | 平台id | none |
| »» platform_name | string | true | none | 平台名称 | none |
| »» video_oss_url | string | true | none | 数字人播放地址 | none |