ci:CreateAuditingAudioJob
for the authorization policy. See all actions for more details.POST /audio/auditing HTTP/1.1Host: <BucketName-APPID>.ci.<Region>.myqcloud.comDate: <GMT Date>Authorization: <Auth String>Content-Length: <length>Content-Type: application/xml<body>
<Request><Input><Object></Object><Url></Url><DataId></DataId></Input><Conf><Callback></Callback><BizType></BizType></Conf></Request>
Node Name (Keyword) | Parent Node | Description | Type | Required or Not |
Request | No | The specific configuration item for AAS. | Container | Yes |
Node Name (Keyword) | Parent Node | Description | Type | Required or Not |
Input | Request | Content with need of moderation. | Container | Yes |
Conf | Request | Moderation of rule configuration. | Container | Yes |
Node Name (Keyword) | Parent Node | Description | Type | Required or Not |
Object | Request.Input | Name of the audio file stored in the COS bucket. For instance, the file audio.mp3 in the test directory is named test/audio.mp3. Either Object or Url can be selected. | String | No |
Url | Request.Input | URL of the audio file, such as 'http://examplebucket-1250000000.cos.ap-shanghai.myqcloud.com/audio.mp3'. Either Object or Url can be selected. | String | No |
DataId | Request.Input | This field in the moderation result will return the original content, with a length limit of 512 bytes. You can use this field to uniquely identify the data that needs moderation. | String | No |
UserInfo | Request.Input | User Business field. | Container | No |
Node Name (Keyword) | Parent Node | Description | Type | Required or Not |
TokenId | Request.Input.UserInfo | User Business TokenId, which can contain up to 128 bytes. | String | No |
Nickname | Request.Input.UserInfo | User Business Nickname, which can contain up to 128 bytes. | String | No |
DeviceId | Request.Input.UserInfo | User Business DeviceId, which can contain up to 128 bytes. | String | No |
AppId | Request.Input.UserInfo | User Business AppId, which can contain up to 128 bytes. | String | No |
Room | Request.Input.UserInfo | User Business Room, which can contain up to 128 bytes. | String | No |
IP | Request.Input.UserInfo | User Business IP, which can contain up to 128 bytes. | String | No |
Type | Request.Input.UserInfo | User Business Type, which can contain up to 128 bytes. | String | No |
ReceiveTokenId | Request.Input.UserInfo | User Business ReceiveTokenId, which can contain up to 128 bytes. | String | No |
Gender | Request.Input.UserInfo | User Business Gender, which can contain up to 128 bytes. | String | No |
Level | Request.Input.UserInfo | User Business Level, which can contain up to 128 bytes. | String | No |
Role | Request.Input.UserInfo | User Business Role, which can contain up to 128 bytes. | String | No |
Node Name (Keyword) | Parent Node | Description | Type | Required or Not |
BizType | Request.Conf | The only identifier for a moderation policy. You can configure your desired moderation scenarios on the moderation policy page on the console, such as pornography and advertising. Configuration guide: setting moderation policy. You can obtain BizType on the console. When BizType is entered, this moderation request will be moderated according to the scenarios configured in that moderation policy. When BizType is not entered, the default moderation policy will be automatically applied. | String | No |
Callback | Request.Conf | The moderation result will be sent to your callback address in the form of callback, supporting the address beginning with http:// or https:// , such as: http://www.callback.com . | String | No |
CallbackVersion | Request.Conf | The structure of the callback content. Valid values: Simple (The callback content includes basic information) and Detail (The callback content includes detailed information). The default value is Simple. | string | No |
CallbackType | Request.Conf | The callback segment type. Valid values: 1 (Callback for all the audio segments) and 2 (Callback for violation audio segments). The default value is 1. | Integer | No |
Freeze | Request.Conf | This field allows settings of various scores given by the moderation result to automatically block audio files. It is only effective when the audio under review in input is object . | Container | No |
Node Name (Keyword) | Parent Node | Description | Type | Required or Not |
PornScore | Request.Conf.Freeze | Its value ranges from 0 to 100, which indicates that the freeze operation will be carried out automatically when the pornography moderation result equals or exceeds the given number. If the PornScore is not entered, the automatic freeze operation will not occur. The default value is null. | Integer | No |
AdsScore | Request.Conf.Freeze | Its value ranges from 0 to 100, which indicates that the freeze operation will be carried out automatically when the advertising moderation result equals or exceeds the given number. If the AdsScore is not entered, the automatic freeze operation will not occur. The default value is null. | Integer | No |
<Response><JobsDetail><DataId></DataId><JobId></JobId><State></State><CreationTime></CreationTime></JobsDetail><RequestId></RequestId></Response>
Node Name (Keyword) | Parent Node | Description | Type |
Response | No | The specific response content returned by AAS. | Container |
Node Name (Keyword) | Parent Node | Description | Type |
JobsDetail | Response | Detailed information of the AAS task. | Container |
RequestId | Response | Whenever a request is sent, the server will automatically create an ID for the request, which can help locate problems more quickly when it encounters problems. | String |
Node Name (Keyword) | Parent Node | Description | Type |
DataId | Response.JobsDetail | The only business identifier added in the request. | String |
JobId | Response.JobsDetail | ID of the AAS task. | String |
State | Response.JobsDetail | State of the AAS task, the value of which can be Submitted, Success, Failed, or Auditing. | String |
CreationTime | Response.JobsDetail | Creation time of the AAS task. | String |
POST /audio/auditing HTTP/1.1Authorization: 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.comContent-Length: 166Content-Type: application/xml<Request><Input><Object>a.mp3</Object><DataId>123-fdrsg-123</DataID></Input><Conf><DetectType>Porn,Ads</DetectType><Callback>http://callback.com/</Callback></Conf></Request>
HTTP/1.1 200 OKContent-Type: application/xmlContent-Length: 230Connection: keep-aliveDate: Thu, 15 Jun 2017 12:37:29 GMTServer: tencent-cix-ci-request-id: NTk0MjdmODlfMjQ4OGY3XzYzYzhf****<Response><JobsDetail><DataId>123-fdrsg-123</DataID><JobId>vab1ca9fc8a3ed11ea834c525400863904</JobId><State>Submitted</State><CreationTime>2019-07-07T12:12:12+0800</CreationTime></JobsDetail><RequestId>xxxxxxxxxxxxxx</RequestId></Response>
Was this page helpful?