语音识别-语音转译审核
接口地址:http://tupu.apistd.com/v3/recognition/speech/speech-to-text-moderation请求格式:multipart/form-data请求方法:post
请求参数 (Query)
| 参数名 | 类型 | 必须 | 描述 | 
|---|---|---|---|
| key | string | 是 | 请求 AccessKey, 请在控制台中查看 | 
返回参数 (Body)
| 参数名 | 类型 | 描述 | 
|---|---|---|
| code | number | 请求的状态码 | 
| message | string | 请求的状态信息 | 
| timestamp | number | 当前的服务器的Unix时间戳 | 
| nonce | number | 随机数 | 
| data | object | 识别任务的结果 | 
| fileList | array | 识别的详细结果 | 
| file_name | string | 上传的语音文件名称 | 
| result | object | 结果数据结构 | 
| content | string | 文本内容,可能为空 | 
| action | string | 是否违规,block:违规,pass:通过,review:复审 | 
| label | string | 违规标签, 'Normal' 正常, 'Terror' 暴恐, 'Porn' 色情, 'Politics' 涉政, 'Sensitive'  敏感, 'ADs'  ⼴告, 'Abuse'  谩骂, 'Nosense' 灌水, 'UserDefine' 自定义 | 
| review | boolean | 是否复审,true:是 false:否 | 
| rate | string | 吻合分数,分数越高,识别出来的结果越准确,取值为0到1之间或者空值null | 
| hasVoice | boolean | 是否有声音,true:是,false:否 | 
| details | array | 命中的关键词详细信息,如果actions为pass,则details为空数组,详见以下数据结构 | 
| keyword | string | 测试文本中违规的词语 | 
| hint | string | 命中的关键词 | 
| mainLabel | string | 关键词的主标签 | 
| subLabel | string | 关键词的次标签 | 
错误码
| 错误码 | 描述 | 
|---|---|
| 1 | 授权失败 | 
| 10 | 没有callback参数 | 
| 100 | 服务错误 | 
| 101 | 未知错误 | 
| 11 | 接口访问失败 | 
| 12 | 时间参数错误 | 
| 13 | 没有配置计算任务或者都已关闭 | 
| 14 | 文件下载错误 | 
| 15 | 参数非法 | 
| 16 | 未查到数据 | 
| 17 | 并发数超出限制 | 
| 18 | 正常文件过少 | 
| 19 | 超出单次请求的文件数量限制 | 
| 2 | 模型信息错误 | 
| 20 | 人脸对比、活体认证的头像图片无效(下载失败、图片超大、格式非法等) | 
| 21 | 提交重复的语音流 | 
| 22 | 语音任务不存在,或已过期 | 
| 3 | 没有上传文件 | 
| 4 | API版本号错误 | 
| 5 | API版本已弃用 | 
| 6 | secretId错误 | 
| 7 | 任务id错误,secretId不能调用该任务 | 
| 8 | secretId状态异常 | 
| 9 | 尚未上传证书 | 
