调用AddLiveAudioAuditNotifyConfig添加音频审核回调信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | AddLiveAudioAuditNotifyConfig |
接口操作名。取值:AddLiveAudioAuditNotifyConfig。 |
DomainName | String | 是 | www.yourdomain.com |
播流域名。 |
RegionId | String | 否 | cn-shanghai |
域名所属地域。 |
Callback | String | 否 | https://example.aliyunlive.com/callback |
回调地址。用于接收问题语音内容的回调。 |
CallbackTemplate | String | 否 | {"domain":{DomainName},"app":{AppName},"stream":{StreamName},"timestamp":{Timestamp},"result":{Result}} |
审核回调模板。取值:
|
检测结果格式
直播语音审核服务会根据回调模板的配置,来替换其中{Result}变量来返回检测结果
Result示例:
[
{
"scene": "antispam",
"label": "ad",
"suggestion": "block",
"rate": 99.91,
"details": [
{
"startTime": 1571989513,
"endTime": 1571989515,
"text": "三楼香巴拉队主携手5楼了。",
"label": "normal"
},
{
"startTime": 1571989515,
"endTime": 1571989518,
"text": "上,烤鱼火锅节日期两个腾庆大款。",
"label": "normal"
},
{
"startTime": 1571989520,
"endTime": 1571989522,
"text": "多少香巴拉会员均享39",
"label": "normal"
},
{
"startTime": 1571989523,
"endTime": 1571989526,
"text": "皇上现金单次消费立减66元。",
"label": "normal"
},
{
"startTime": 1571989530,
"endTime": 1571989533,
"text": "元大奖详询3398787",
"label": "ad"
},
{
"startTime": 1571989533,
"endTime": 1571989534,
"text": "好消息,好像。",
"label": "normal"
},
{
"startTime": 1571989538,
"endTime": 1571989539,
"text": "携带行车证4人。",
"label": "normal"
},
{
"startTime": 1571989542,
"endTime": 1571989543,
"text": "代理现在还有10分钟。",
"label": "normal"
},
{
"startTime": 1571989545,
"endTime": 1571989547,
"text": "建行etc见证没",
"label": "normal"
},
{
"startTime": 1571989550,
"endTime": 1571989552,
"text": "赵信元、吕梁市国投集团旗下。",
"label": "normal"
}
]
}
]
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | 7BF95F2A-3B24-4CDE-9346-7F6FA86697A1 |
请求ID。 |
示例
请求示例
http(s)://live.aliyuncs.com/?Action=AddLiveAudioAuditNotifyConfig
&DomainName=www.yourdomain.com
&<公共请求参数>
正常返回示例
XML
格式
<AddLiveAudioAuditNotifyConfigResponse>
<RequestId>7BF95F2A-3B24-4CDE-9346-7F6FA86697A1</RequestId>
</AddLiveAudioAuditNotifyConfigResponse>
JSON
格式
{
"RequestId":"7BF95F2A-3B24-4CDE-9346-7F6FA86697A1"
}
错误码
访问错误中心查看更多错误码。
在文档使用中是否遇到以下问题
更多建议
匿名提交