Submits a smart tagging job.
Operation description
Before you call this operation to submit a smart tagging job, you must add a smart tagging template and specify the analysis types that you want to use in the template. For more information, see CreateCustomTemplate. You can use the smart tagging feature only in the China (Beijing), China (Shanghai), and China (Hangzhou) regions. By default, an ApsaraVideo Media Processing (MPS) queue can process a maximum of two concurrent smart tagging jobs. If you need to process more concurrent smart tagging jobs, submit a ticket to contact Alibaba Cloud Technical Support for evaluation and configuration.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
ice:SubmitSmarttagJob | *All Resources * |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Title | string | Yes | The video title. The title can contain letters, digits, and hyphens (-) and cannot start with a special character. The title can be up to 256 bytes in length. | example-title-**** |
Content | string | No | The video description. The description can contain letters, digits, and hyphens (-) and cannot start with a special character. The description can be up to 1 KB in length. | example content **** |
ContentType | string | No | This parameter is discontinued. | application/zip |
ContentAddr | string | No | This parameter is discontinued. | http://123.com/testVideo.mp4 |
Params | string | No | The additional request parameters. The value is a JSON string. Example: {"needAsrData":true, "needOcrData":false}. The following parameters are supported:
| {"needAsrData":true, "needOcrData":false} |
NotifyUrl | string | No | The URL for receiving callbacks. Set the value to an HTTP URL or an HTTPS URL. | https://example.com/endpoint/aliyun/ai?id=76401125000*** |
UserData | string | No | The data to be passed through Simple Message Queue (SMQ, formerly MNS) during callbacks. The data can be up to 1 KB in length. For more information about how to specify an SMQ queue for receiving callbacks, see UpdatePipeline. | {“a”:"test"} |
Input | object | Yes | The job input. | |
Type | string | No | The media type. Valid values:
| Media |
Media | string | No | If Type is set to OSS, specify an OSS path. Example: OSS://test-bucket/video/202208/test.mp4. If Type is set to Media, specify a media asset ID. Example: c5c62d8f0361337cab312dce8e77dc6d. If Type is set to URL, specify an HTTP URL. Example: https://zc-test.oss-cn-shanghai.aliyuncs.com/test/unknowFace.mp4. | c5c62d8f0361337cab312dce8e77dc6d |
TemplateId | string | No | The ID of the template that specifies the analysis algorithms. For more information about template operations, see Configure templates. | 39f8e0bc005e4f309379701645f4 |
ScheduleConfig | object | No | The scheduling configurations. | |
PipelineId | string | No | The ID of the ApsaraVideo Media Processing (MPS) queue to which you want to submit the smart tagging job. The MPS queue is bound to an SMQ queue. This parameter specifies the default MPS queue. By default, an MPS queue can process a maximum of two concurrent smart tagging jobs. To increase the limit, submit a ticket. | acdbfe4323bcfdae |
Priority | string | No | The job priority. This parameter is not implemented. You can leave this parameter empty or enter a random value. | 4 |
nlpParams
Feature | Parameter | Type | Required | Description | Example |
---|---|---|---|---|---|
nlpParams | object | Yes | The parameters related to NLP. This parameter is required if NLP is specified in the template. Otherwise, the job fails. | {"sourceLanguage":"cn"} | |
Transcription | sourceLanguage | string | Yes | The source language used for transcription. Valid values: cn (Chinese), en (English), yue (Cantonese), and fspk (Chinese and English). | "cn" |
diarizationEnabled | boolean | No | Specifies whether to enable the speaker diarization feature. Default value: false. | true | |
speakerCount | integer | No | The speaker diarization parameter. If this parameter is not specified, the speakers are not recognized. 0: The number of speakers to be recognized is not limited. 2: The number of speakers to be recognized is limited to 2. | 2 | |
Summarization | summarizationEnabled | boolean | No | Specifies whether to enable the summarization feature. After this feature is enabled, results such as the full-text summary and speaker summary can be generated. | true |
summarizationTypes | string | No | The expected summary type. Valid values: Paragraph (full-text summary), Conversational (speaker summary), QuestionsAnswering (Q&A summary), and MindMap (mind map). | "Paragraph,Conversational,QuestionsAnswering,MindMap" | |
Translation | translationEnabled | boolean | No | Specifies whether to enable the translation feature. | true |
targetLanguages | string | No | The target language of translation. Valid values: cn (Chinese), en (English), yue (Cantonese), and fspk (Chinese and English). | "en,cn" | |
Chapter identification | autoChaptersEnabled | boolean | No | Specifies whether to enable the chapter identification feature. The result includes the chapter title and chapter summary. | true |
AI minutes | meetingAssistanceEnabled | boolean | No | Specifies whether to enable the AI minutes feature. The results include categories, keywords, key sentences, and to-do items. | true |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "******11-DB8D-4A9A-875B-275798******",
"JobId": "****d80e4e4044975745c14b****"
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2022-08-25 | Add Operation | View Change Details |