查询定制声音详情
1.接口说明
请求该接口查询客户定制的自定义声音详情数据。
2.请求地址
https://digitbot.bokecc.com/api/voice/custom/get
3.请求方式
GET
4.请求参数
(1).公共参数,参考服务说明。
(2).接口参数
①.Query参数:通过URL参数传递。
| 参数名 | 类型 | 必需 | 说明 |
|---|---|---|---|
| version | String | 是 | 接口版本号,当前支持版本:1.0.0、1.1.0。 |
| id | String | 是 | 数字人ID。 |
5.请求示例
GET https://digitbot.bokecc.com/api/voice/custom/get?id=xxx&accountId=xxx&version=1.1.0&hash=xxx&time=xxx HTTP/1.1
6.响应示例
{
"id": "xxx",
"name": "定制声音",
"gender": 1,
"status": 3,
"progress": 30,
"refusedReason": "",
"createTime": "2024-01-24 09:10:11",
"finishTime": "2024-01-24 10:00:00",
"expireDate": "2025-01-23",
"auditionUrl": "https://xxxxx.xxxxx",
"models": [1, 2]
}
7.响应说明
| 字段名 | 类型 | 说明 | 版本说明 |
|---|---|---|---|
| id | String | 数字人ID。 | |
| name | String | 数字人名称。 | |
| gender | Integer | 数字人性别,枚举值。0=女;1=男。 | |
| status | Integer | 数字人(任务)状态,枚举值。1=审核中;2=审核不通过;3=训练中;4=训练失败;5=训练成功;6=已过期。 | |
| progress | Integer | 数字人训练进度,取值[-1, 100]区间,-1表示排队中;0~100表示进度的百分比。status=3时有效。 | |
| refusedReason | String | 审核不通过的原因。status=2时有效。 | |
| createTime | String | 创建时间,yyyy-MM-dd HH:mm:ss格式。 | |
| finishTime | String | 完成时间,yyyy-MM-dd HH:mm:ss格式。 | |
| expireDate | String | 数字人过期日期,yyyy-MM-dd格式。status=5、6时有效。 | |
| auditionUrl | String | 声音试听音频链接。status=5时有效。 | |
| models | Array | 声音模型数组,示例: [1, 2] , 1=专属定制版模型,2=多语言版模型, 至少包含一个值。 | 1.0.0:不返回该字段1.1.0起:返回该字段 |