SubmitASRJob
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ice:SubmitASRJob |
create |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| InputFile |
string |
No |
The input file. You can specify an Object Storage Service (OSS) URL or the ID of a media asset in the media asset library. |
oss://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4 or ****20b48fb04483915d4f2cd8ac**** |
| UserData |
string |
No |
The user-defined data in the JSON format. You can specify your business information, such as the business environment and job information. |
{ "user": "data", "env": "prod" } |
| Title |
string |
No |
The job title, which can be up to 128 bytes in length. |
Test Title |
| Description |
string |
No |
The job description, which can up to 128 bytes in length. |
Test Description |
| StartTime |
string |
No |
The start time of the speech to recognize. |
00:00:00 |
| Duration |
string |
No |
The speech duration. |
00:00:10 |
| EditingConfig |
string |
No |
Audio-to-text recognition configuration:
|
{ "HotwordLibraryIdList": "******2609a14f54a0636b7e16******" } |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
******11-DB8D-4A9A-875B-275798****** |
| JobId |
string |
The job ID. |
****20b48fb04483915d4f2cd8ac**** |
| State |
string |
The job state. Valid values:
|
Finished |
You can use the ASR job JobId to query detailed task execution information through the Get Intelligent Job Result API. The following is a sample return result of the Get Intelligent Job Result API when the task execution Succeeded.
{
"RequestId": "******2D-443C-5043-B0E4-867070******",
"JobResult": {
"AiResult": "[{"content":"Mention","from":0.0,"to":0.846},{"content":"It's extremely popular now","from":0.846,"to":3.386},{"content":"Tickets are often expensive","from":3.386,"to":4.402},{"content":"But it was sold out as soon as it opened","from":4.402,"to":6.265},{"content":"Also participates in various crosstalk variety shows commenting on new performers","from":6.265,"to":10.33}]"
},
"State": "Finished",
"Output": "[{"content":"Mention","from":0.0,"to":0.846},{"content":"It can be said to be extremely popular now","from":0.846,"to":3.386},{"content":"Tickets are often expensive","from":3.386,"to":4.402},{"content":"But it was sold out as soon as it opened","from":4.402,"to":6.265},{"content":"Also participates in various crosstalk variety shows commenting on new performers","from":6.265,"to":10.33}]",
"JobId": "******042d5e4db6866f6289d1******",
"SmartJobInfo": {
"JobType": "ASR",
"ModifiedTime": "2022-01-21T06:15:08Z",
"UserId": 1234562230123456,
"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"
}
}
}
Examples
Success response
JSON format
{
"RequestId": "******11-DB8D-4A9A-875B-275798******",
"JobId": "****20b48fb04483915d4f2cd8ac****",
"State": "Finished"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.