Retrieves the information and execution results for a Clipping Task using its Task ID. Only tasks submitted within the past year can be queried.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:GetSmartHandleJob |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| JobId |
string |
No |
The job ID. |
****20b48fb04483915d4f2cd8ac**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The body of the response. |
||
| RequestId |
string |
The ID of the request. |
******11-DB8D-4A9A-875B-275798****** |
| JobId |
string |
The ID of the job. |
****20b48fb04483915d4f2cd8ac**** |
| Output |
string |
The job output. |
{} |
| JobResult |
object |
The job results. |
|
| MediaId |
string |
The ID of the media asset. |
****20b48fb04483915d4f2cd8ac**** |
| AiResult |
string |
The AI analysis results. |
Clip splitting or smart tag information |
| Usage |
string |
The token usage. This parameter is returned only for keyword expansion jobs. |
{"total_tokens":100} |
| MediaUrl |
string |
||
| State |
string |
The status of the job. Valid values:
|
Finished |
| UserData |
string |
The custom user data. |
{"user":"data"} |
| SmartJobInfo |
object |
The information about the smart job. |
|
| Title |
string |
The title of the job. |
Test Title |
| Description |
string |
The description of the job. |
Test Description |
| UserId |
string |
The ID of the user. |
1974526429****** |
| InputConfig |
object |
The input configuration. |
|
| InputFile |
string |
The Object Storage Service (OSS) URL of the input file, or the ID of the media asset in the media library. |
oss://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4 or ******11-DB8D-4A9A-875B-275798****** |
| OutputConfig |
object |
The output configuration. |
|
| Bucket |
string |
The destination OSS bucket. |
test-bucket |
| Object |
string |
The path of the destination OSS object. |
test-object |
| CreateTime |
string |
The time when the job was created. The time is in UTC and formatted based on the ISO 8601 standard. |
2020-12-26T04:11:10Z |
| ModifiedTime |
string |
The time when the job was last modified. The time is in UTC and formatted based on the ISO 8601 standard. |
2020-12-26T04:11:10Z |
| JobType |
string |
The type of the job. |
ASR |
| ErrorCode |
string |
The error code that is returned if the job fails. |
|
| ErrorMessage |
string |
The error message that is returned if the job fails. |
The format of a Job Result depends on the Smart Job type. The following samples show the response format for each.
ASR intelligent subtitling
{
"RequestId": "******2D-443C-5043-B0E4-867070******",
"JobId": "******042d5e4db6866f6289d1******",
"State": "Finished",
"SmartJobInfo": {
"JobType": "ASR",
"ModifiedTime": "2022-01-21T06:15:08Z",
"CreateTime": "2022-01-21T06:15:02Z",
"Title": "default_title_2022-01-21T06:15:02Z",
"InputConfig": {
"JobParameters": "{\"duration\":\"00:30:00\",\"start_time\":\"00:00:00\",\"request_params\":\"&enable_word_level_result=true\"}",
"InputFile": "oss://your-bucket.oss-cn-shanghai.aliyuncs.com/your-video.mp4"
}
},
"JobResult": {
"AiResult": "[{\"content\":\"Speaking of which,\",\"from\":0.0,\"to\":0.846},{\"content\":\"they are incredibly popular right now.\",\"from\":0.846,\"to\":3.386},{\"content\":\"Tickets are often expensive,\",\"from\":3.386,\"to\":4.402},{\"content\":\"but they sell out instantly.\",\"from\":4.402,\"to\":6.265},{\"content\":\"They have also appeared on various comedy shows to critique new performers.\",\"from\":6.265,\"to\":10.33}]"
}
}
Text-to-speech
{
"RequestId": "******2D-443C-5043-B0E4-867070******",
"JobId": "******042d5e4db6866f6289d1******",
"State": "Finished",
"SmartJobInfo": {
"Title": "default_title_2022-01-21T06:15:07Z",
"JobType": "TextToSpeech",
"CreateTime": "2022-01-21T06:15:07Z",
"ModifiedTime": "2022-01-21T06:15:07Z",
"InputConfig": {
"InputFile": "Speaking of which, they are incredibly popular right now. Tickets are often expensive but sell out instantly. They have also appeared on various comedy shows to critique new performers."
},
"EditingConfig": "{\"format\":\"MP3\",\"pitch_rate\":0,\"sample_rate\":16000,\"speech_rate\":0,\"voice\":\"Siqi\",\"volume\":50}",
"OutputConfig": {
"Bucket": "your-bucket",
"Object": "your-audio"
}
},
"JobResult": {
"MediaId": "******bf47c94e82b3b2014361******",
"AiResult": "[{\"content\":\"Speaking of which,\",\"from\":0.0,\"to\":0.846},{\"content\":\"they are incredibly popular right now.\",\"from\":0.846,\"to\":3.386},{\"content\":\"Tickets are often expensive,\",\"from\":3.386,\"to\":4.402},{\"content\":\"but they sell out instantly.\",\"from\":4.402,\"to\":6.265},{\"content\":\"They have also appeared on various comedy shows to critique new performers.\",\"from\":6.265,\"to\":10.33}]"
}
}
Text generation
{
"RequestId":"******AC-5A01-1116-87A4-BF86F2******",
"UserData":"{\"NotifyAddress\":\"https://****\"}",
"JobResult":{
"AiResult":"[\"Our new shop's cakes are made with pure dairy cream, offering a rich, silky-smooth texture. Every bite is a sweet surprise, letting your taste buds dance with freshness and purity!\",\"Explore a new world of desserts. Our new shop's cakes feature premium dairy cream, are lightly sweetened, not heavy, and have rich layers. Each cake tells a unique story of craftsmanship and sweetness, waiting for you to savor.\",\"For those who appreciate the finer things in life, our newly opened cake shop carefully selects dairy cream and rejects artificial additives. Enjoy the pure, milky aroma and a light, delicate texture. Every bite is a unique celebration of the good life.\"]",
"Usage": "{\"total_tokens\":200}"
},
"State":"Finished",
"JobId":"******8c784f461db57c99c9d9******",
"SmartJobInfo":{
"JobType":"TextGenerate",
"ModifiedTime":"2024-01-17T08:46:17Z",
"CreateTime":"2024-01-17T08:46:17Z",
"Title":"default_title_2024-01-17T08:46:17Z",
"EditingConfig":"{\"Type\":\"MarketingCopy\",\"GenerateConfig\":\"{\\\"keywords\\\":\\\"new shop's cake, dairy cream\\\",\\\"textLength\\\":100,\\\"targetCount\\\":3}\"}"
}
}
Examples
Success response
JSON format
{
"RequestId": "******11-DB8D-4A9A-875B-275798******",
"JobId": "****20b48fb04483915d4f2cd8ac****",
"Output": "{}",
"JobResult": {
"MediaId": "****20b48fb04483915d4f2cd8ac****",
"AiResult": "Clip segmentation or AI taggingInformation",
"Usage": "{\"total_tokens\":100}",
"MediaUrl": ""
},
"State": "Finished",
"UserData": "{\"user\":\"data\"}",
"SmartJobInfo": {
"Title": "Test Title",
"Description": "Test Description",
"UserId": "1974526429******",
"InputConfig": {
"InputFile": "oss://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4 or ******11-DB8D-4A9A-875B-275798******"
},
"OutputConfig": {
"Bucket": "test-bucket",
"Object": "test-object"
},
"CreateTime": "2020-12-26T04:11:10Z",
"ModifiedTime": "2020-12-26T04:11:10Z",
"JobType": "ASR"
},
"ErrorCode": "",
"ErrorMessage": ""
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.