History
Introduction
API Category
Making API Requests
Region APIs
Instance APIs
Cloud Hosting Cluster APIs
Image APIs
Instance Launch Template APIs
Placement Group APIs
Key APIs
Security Group APIs
Network APIs
Data Types
Error Codes
GET /audio/auditing/<jobId> HTTP/1.1Host: <BucketName-APPID>.ci.<Region>.myqcloud.comDate: <GMT Date>Authorization: <Auth String>
<Response><JobsDetail><Code>Success</Code><Message>Success</Message><DataId></DataId><JobId></JobId><State></State><CreationTime></CreationTime><Object></Object><Result>1</Result><AudioText></AudioText><PornInfo><HitFlag></HitFlag><Score></Score><Label></Label></PornInfo><Section><Url>https://cos.ap-guangzhou.myqcloud.com/0.mp3</Url><OffsetTime>0</OffsetTime><Duration>3000</Duration><Text>哈哈哈</Text><PornInfo><HitFlag></HitFlag><Score></Score><Keywords></Keywords></PornInfo></Section></JobsDetail><RequestId></RequestId></Response>
节点名称(关键字) | 父节点 | 描述 | 类型 |
Response | 无 | 音频审核任务结果。 | Container |
节点名称(关键字) | 父节点 | 描述 | 类型 |
JobsDetail | Response | 音频审核任务的详细信息。 | Container |
RequestId | Response | 每次请求发送时,服务端将会自动为请求生成一个 ID,遇到问题时,该 ID 能更快地协助定位问题。 | String |
节点名称(关键字) | 父节点 | 描述 | 类型 |
Code | Response.JobsDetail | String | |
Message | Response.JobsDetail | 错误描述,只有 State 为 Failed 时返回。 | String |
DataId | Response.JobsDetail | 该字段在审核结果中会返回原始内容,长度限制为512字节。您可以使用该字段对待审核的数据进行唯一业务标识。 | String |
JobId | Response.JobsDetail | 本次音频审核任务的 ID。 | String |
State | Response.JobsDetail | 音频审核任务的状态,值为 Submitted(已提交审核)、Success(审核成功)、Failed(审核失败)、Auditing(审核中)其中一个。 | String |
CreationTime | Response.JobsDetail | 音频审核任务的创建时间。 | String |
Object | Response.JobsDetail | 审核的音频文件为存储在 COS 中的文件时,该字段表示本次审核的音频文件名称。 | String |
Url | Response.JobsDetail | 审核的音频文件为一条文件链接时,该字段表示本次审核的音频文件链接。 | String |
Label | Response.JobsDetail | 该字段用于返回检测结果中所对应的优先级最高的恶意标签,表示模型推荐的审核结果,建议您按照业务所需,对不同违规类型与建议值进行处理。 返回值:Normal:正常,Porn:色情,Ads:广告,以及其他不安全或不适宜的类型。 | String |
Result | Response.JobsDetail | 该字段表示本次判定的审核结果,您可以根据该结果,进行后续的操作;建议您按照业务所需,对不同的审核结果进行相应处理。有效值:0(审核正常),1 (判定为违规敏感文件),2(疑似敏感,建议人工复核)。 | Integer |
AudioText | Response.JobsDetail | 该字段用于返回音频文件中已识别的对应文本内容。 | String |
PornInfo | Response.JobsDetail | 审核场景为色情的审核结果信息。 | Container |
AdsInfo | Response.JobsDetail | 审核场景为广告的审核结果信息。 | Container |
Section | Response.JobsDetail | 当音频过长时,会对音频进行分段,该字段用于返回音频片段的审核结果,主要包括开始时间和音频审核的相应结果。 | Container Array |
UserInfo | Response.JobsDetail | 用户业务字段。创建任务未设置 UserInfo 时无此字段。 | Container |
ListInfo | Response.JobsDetail | 账号黑白名单结果。 | Container |
ForbidState | Response.JobsDetail | 若您设置了自动冻结,该字段表示音频文件的冻结状态。0:未冻结,1:已被冻结,2:已转移文件。 | Integer |
节点名称(关键字) | 父节点 | 描述 | 类型 |
HitFlag | Response.JobsDetail.*Info | 用于返回该审核场景的审核结果,返回值:0:正常。1:确认为当前场景的违规内容。2:疑似为当前场景的违规内容。 | Integer |
Score | Response.JobsDetail.*Info | 该字段表示审核结果命中审核信息的置信度,取值范围:0(置信度最低)-100(置信度最高 ),越高代表该内容越有可能属于当前返回审核信息。例如:色情 99,表明该内容非常有可能属于色情内容。 | Integer |
Label | Response.JobsDetail.*Info | 本次审核的综合结果标签,如果命中了敏感的关键词,该字段返回对应的关键词。 | String |
Category | Response.JobsDetail.*Info | 该字段表示审核命中的具体审核类别。注意:该字段可能返回空。 | String |
SubLabel | Response.JobsDetail.*Info | 该字段表示审核命中的具体子标签。注意:该字段可能返回空。 | String |
节点名称(关键字) | 父节点 | 描述 | 类型 |
Url | Response.JobsDetail.Section | 当前音频片段的访问地址,您可以通过该地址获取该音频片段的内容,地址格式为标准 URL 格式。注意:每次查看数据的有效期为2小时,2小时后如还需查看,请重新发起查询请求。 | String |
Text | Response.JobsDetail.Section | 该字段用于返回当前音频片段的 ASR 文本识别的检测结果。 | String |
OffsetTime | Response.JobsDetail.Section | 该字段用于返回当前音频片段位于总音频中的时间,单位为毫秒,例如5000(音频开始后5000毫秒)。 | Integer |
Duration | Response.JobsDetail.Section | 当前音频片段的时长,单位毫秒。 | Integer |
Label | Response.JobsDetail.Section | 该字段用于返回检测结果中所对应的优先级最高的恶意标签,表示模型推荐的审核结果,建议您按照业务所需,对不同违规类型与建议值进行处理。 返回值:Normal:正常,Porn:色情,Ads:广告,以及其他不安全或不适宜的类型。 | String |
SubLabel | Response.JobsDetail | 该字段表示审核命中的具体子标签。注意:该字段可能返回空。 | String |
Result | Response.JobsDetail.Section | 该字段表示本次判定的审核结果,您可以根据该结果,进行后续的操作;建议您按照业务所需,对不同的审核结果进行相应处理。有效值:0(审核正常),1 (判定为违规敏感文件),2(疑似敏感,建议人工复核)。 | Integer |
PornInfo | Response.JobsDetail.Section | 审核场景为色情的审核结果信息。 | Container |
AdsInfo | Response.JobsDetail.Section | 审核场景为广告的审核结果信息。 | Container |
节点名称(关键字) | 父节点 | 描述 | 类型 |
HitFlag | Response.JobsDetail.Section.*Info | 用于返回该审核场景的审核结果,返回值:0:正常。1:确认为当前场景的违规内容。2:疑似为当前场景的违规内容。 | Integer |
Score | Response.JobsDetail.Section.*Info | 该字段表示审核结果命中审核信息的置信度,取值范围:0(置信度最低)-100(置信度最高 ),越高代表该内容越有可能属于当前返回审核信息。例如:色情 99,表明该内容非常有可能属于色情内容。 | Integer |
Category | Response.JobsDetail.Section.*Info | 该字段为 Label 的子集,表示审核命中的具体审核类别。例如 Sexy,表示色情标签中的性感类别。 | String |
Keywords | Response.JobsDetail.Section.*Info | 本次审核命中的敏感关键词,没有时不返回。 | String Array |
LibResults | Response.JobsDetail.Section.*Info | 该字段用于返回基于风险库识别的结果。注意:未命中风险库中样本时,此字段不返回。 | Container Array |
节点名称(关键字) | 父节点 | 描述 | 类型 |
LibType | Response.JobsDetail.Section.*Info.LibResults | 命中的风险库类型,取值为1(预设风险库)和2(自定义风险库)。 | Integer |
LibName | Response.JobsDetail.Section.*Info.LibResults | 命中的风险库名称。 | String |
Keywords | Response.JobsDetail.Section.*Info.LibResults | 命中的库中关键词。该参数可能会有多个返回值,代表命中的多个关键词。 | String Array |
节点名称(关键字) | 描述 | 类型 | 是否必选 |
TokenId | 一般用于表示账号信息,长度不超过128字节。 | String | 否 |
Nickname | 一般用于表示昵称信息,长度不超过128字节。 | String | 否 |
DeviceId | 一般用于表示设备信息,长度不超过128字节。 | String | 否 |
AppId | 一般用于表示 App 的唯一标识,长度不超过128字节。 | String | 否 |
Room | 一般用于表示房间号信息,长度不超过128字节。 | String | 否 |
IP | 一般用于表示 IP 地址信息,长度不超过128字节。 | String | 否 |
Type | 一般用于表示业务类型,长度不超过128字节。 | String | 否 |
ReceiveTokenId | 一般用于表示接收消息的用户账号,长度不超过128字节。 | String | 否 |
Gender | 一般用于表示性别信息,长度不超过128字节。 | String | 否 |
Level | 一般用于表示等级信息,长度不超过128字节。 | String | 否 |
Role | 一般用于表示角色信息,长度不超过128字节。 | String | 否 |
节点名称(关键字) | 父节点 | 描述 | 类型 |
ListResults | Response.JobsDetail.ListInfo | 命中的所有名单结果。 | Container Array |
节点名称(关键字) | 父节点 | 描述 | 类型 |
ListType | Response.JobsDetail.ListInfo.ListResults | 命中的名单类型,取值为0(白名单)和1(黑名单)。 | Integer |
ListName | Response.JobsDetail.ListInfo.ListResults | 命中的名单名称。 | String |
Entity | Response.JobsDetail.ListInfo.ListResults | 命中了名单中的哪条内容。 | String |
GET /audio/auditing/vab1ca9fc8a3ed11ea834c525400863904 HTTP/1.1Accept: */*Authorization: q-sign-algorithm=sha1&q-ak=AKIDZfbOAo7cllgPvF9cXFrJD0a1ICvR****&q-sign-time=1497530202;1497610202&q-key-time=1497530202;1497610202&q-header-list=&q-url-param-list=&q-signature=28e9a4986df11bed0255e97ff90500557e0e****Host: examplebucket-1250000000.ci.ap-beijing.myqcloud.com
HTTP/1.1 200 OKContent-Type: application/xmlContent-Length: 666Connection: keep-aliveDate: Thu, 15 Jun 2017 12:37:29 GMTServer: tencent-cix-ci-request-id: NTk0MjdmODlfMjQ4OGY3XzYzYzhf****<Response><JobsDetail><JobId>aab1ca9fc8a3ed11ea834c525400863904</JobId><State>Success</State><CreationTime>2019-07-07T12:12:12+0800</CreationTime><Object>a.mp3</Object><Result>1</Result><AudioText>wc xx</AudioText><PornInfo><HitFlag>1</HitFlag><Score>91</Score><Label>xx</Label></PornInfo><AdsInfo><HitFlag>0</HitFlag><Score>0</Score><Label></Label></AdsInfo><Section><AdsInfo><HitFlag>0</HitFlag><Score>0</Score></AdsInfo><Duration>30000</Duration><OffsetTime>0</OffsetTime><PornInfo><HitFlag>1</HitFlag><Score>91</Score><Keywords>xx</Keywords><Keywords>wc</Keywords></PornInfo><Text>wc xx</Text><Url>https://auditing-1250000000.cos.ap-guangzhou.myqcloud.com/q9MhdztF/0.mp3</Url></Section></JobsDetail><RequestId>xxxxxxxxxxxxxx</RequestId></Response>
文档反馈