Extracts time start and end points along with corresponding text information from video speech.
Operation description
This is an asynchronous operation. After you submit a task, a task ID is returned. The task is not yet complete at this point and enters a background queue for asynchronous execution. The final result is delivered through a callback notification. You can also proactively query the task status by calling Get intelligent task results.
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 configuration. OSS addresses and content library material IDs are supported. |
oss://example-bucket.oss-cn-shanghai.aliyuncs.com/example.mp4 或 ****20b48fb04483915d4f2cd8ac**** |
| UserData |
string |
No |
The custom settings. You can pass in business information such as the business environment and task information. The value is a JSON string. |
{ "user": "data", "env": "prod" } |
| Title |
string |
No |
The task title. The title can be up to 128 bytes in length. |
Test title |
| Description |
string |
No |
The task description. The description can be up to 128 bytes in length. |
Test description |
| StartTime |
string |
No |
The start time. |
00:00:00 |
| Duration |
string |
No |
The duration. |
00:00:10 |
| EditingConfig |
string |
No |
The audio-to-text recognition configuration:
|
{ "HotwordLibraryIdList": "******2609a14f54a0636b7e16******" } |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The request ID. |
******11-DB8D-4A9A-875B-275798****** |
| JobId |
string |
The intelligent task ID. |
****20b48fb04483915d4f2cd8ac**** |
| State |
string |
The task status. Valid values:
|
Finished |
You can query the detailed execution information of an ASR task by using the ASR task JobId through the Get intelligent task results operation. When the task is executed successfully, the Get intelligent task results operation returns a result similar to the following example.
{
"RequestId": "******2D-443C-5043-B0E4-867070******",
"JobResult": {
"AiResult": "[{\"content\":\"提起\",\"from\":0.0,\"to\":0.846},{\"content\":\"现在可以说是红的发紫了\",\"from\":0.846,\"to\":3.386},{\"content\":\"常常票价很高\",\"from\":3.386,\"to\":4.402},{\"content\":\"但是一开手就被疯抢一空\",\"from\":4.402,\"to\":6.265},{\"content\":\"还参加各种相声综艺节目点评新人表演演员已经\",\"from\":6.265,\"to\":10.33}]"
},
"State": "Finished",
"Output": "[{\"content\":\"提起\",\"from\":0.0,\"to\":0.846},{\"content\":\"现在的可以说是红的发紫了\",\"from\":0.846,\"to\":3.386},{\"content\":\"常常票价很高\",\"from\":3.386,\"to\":4.402},{\"content\":\"但是一开手就被疯抢一空\",\"from\":4.402,\"to\":6.265},{\"content\":\"还参加各种相声综艺节目点评新人表演演员已经\",\"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.