GetNextResultToVerify
Retrieve the next file details for manual verification.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
sca:GetNextResultToVerify |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| JsonStr |
string |
Yes |
Complete JSON string information. See the details below. |
"{"pageNumber":1,"pageSize":1,"taskId":"593A04C0-E6E9-4CDC-8C9*****","original":1}" |
| BaseMeAgentId |
integer |
No |
Workspace ID. |
123456 |
Request Parameter JSON String Information
| Property | Value type | Required | Description |
| taskId | String | Yes | The ID of the precision comparison task. This is precisions.taskId in the return value of the ListPrecisionTask API. |
| pageNumber | Integer | No | The current page number. The next data entry on the current page is returned. If empty, the first unverified data entry for the task is returned. For subsequent calls, get the index value from the previous GetNextResultToVerify return. For example, if you pass 1, the second data entry is returned. If you pass -1, the first data entry is returned. |
| pageSize | Integer | No | Always pass 1. |
| original | Integer | No | Whether to return the original (correct) text. Valid values: 0 (No), 1 (Yes). Default is 0. |
| fileName | String | No | The file name. If not specified, it is equivalent to clicking 'Next'. If specified, the result for this file is returned. |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The result code. A value of 200 indicates success. Other values indicate failure. The caller can determine the cause of failure using this field. |
200 |
| Message |
string |
Error details if an error occurs. If successful, the value is 'successful'. |
successful |
| RequestId |
string |
Request ID. |
106C6CA0-282D-4AF7-85F0-D2D24F4CE647 |
| Success |
boolean |
Indicates whether the request was successful. The caller can determine if the request was successful using this field: `true` indicates success; `false`/`null` indicates failure. |
true |
| Data |
object |
File details. |
|
| Index |
integer |
The index of the current file. Pass this value when manually verifying the next data entry. It starts from 1, so the first entry has a value of 1. |
2 |
| Status |
integer |
File status. Possible values: 0: Not completed; 1: Not completed; 2: Completed; 3: Completed. |
3 |
| AudioScheme |
string |
The protocol of the audio URL. Possible values: http, https. |
http |
| AudioURL |
string |
The audio URL, excluding http/https. |
sca-bucket.oss-cn-hangzhou.aliyuncs.com/upload_1173636551461420/dateset_1584674455133_SzC/%E4%BA%BA%E5%B7%A5%E6%A0%A1%E9%AA%8C%E6%B5%8B%E8%AF%95-%E6%9F%A5%E5%8C%97%E4%BA%AC%E5%A4%A9%E6%B0%94.wav?Expires=1584847372&OSSAccessKeyId=*****&Signature=HccAKnLOJwoYvzE********* |
| UpdateTime |
string |
Last update time. |
2020-03-20T11:26Z |
| IncorrectWords |
integer |
The number of incorrect words in the transcription. |
23 |
| VerifiedCount |
integer |
The total number of verified files. |
2 |
| Verified |
boolean |
Indicates whether manual verification has been performed. Possible values: `false`: Not yet verified; `true`: Already verified. |
true |
| FileName |
string |
File name. |
xxx.wav |
| TotalCount |
integer |
The total number of files for this task. |
3 |
| Precision |
number |
Current recognition accuracy. |
0.97079998 |
| FileId |
string |
File ID. |
e790e6c919d84b82b64ee***** |
| Duration |
integer |
The total duration of files in the current task, in seconds. |
23421 |
| Dialogues |
object |
||
| Dialogue |
array<object> |
Dialogue data. This field has a value when `status` is 2 or 3. |
|
|
array<object> |
Dialogue data. |
||
| Words |
string |
The transcribed content of this sentence. |
你好有什么可以帮您 |
| Identity |
string |
The role of the speaker. |
某客服 |
| IncorrectWords |
integer |
The number of incorrect words in the transcription of this sentence. This is returned only after the sentence has been verified. |
2 |
| BeginTime |
string |
Deprecated field. Ignore it. |
2024-01-01 12:00:00 |
| SourceWords |
string |
The correct content of this sentence. This is returned only after the sentence has been verified. |
您好有什么可以帮您 |
| End |
integer |
The offset of this sentence's end time relative to the overall dialogue start time, in milliseconds. |
3422 |
| SpeechRate |
integer |
Speech rate value, in words per minute. |
332 |
| HourMinSec |
string |
The start time of this sentence in HH:mm:ss format. |
00:00:07 |
| SourceRole |
string |
The correct role after manual verification. |
客服 |
| Begin |
integer |
The offset of this sentence's start time relative to the overall dialogue start time, in milliseconds. |
980 |
| EmotionValue |
integer |
Emotion energy value. Range: 1-10. A higher value indicates stronger emotion. |
6 |
| Role |
string |
The role of this sentence. Possible values: Customer service, Customer. |
客户 |
| SilenceDuration |
integer |
Deprecated field. Ignore it. |
1 |
| Deltas |
object |
||
| Delta |
array<object> |
Errors in the dialogue text after manual verification. |
|
|
array<object> |
Errors in the dialogue text after manual verification. |
||
| Type |
string |
The type of error. Possible values: CHANGE: Error, INSERT: Extra word, DELETE: Missing word. |
CHANGE |
| Source |
object |
The correct dialogue content after manual verification. |
|
| Position |
integer |
The position of the word. |
5 |
| Line |
object |
||
| Line |
array |
The specific word. |
|
|
string |
The specific word. |
这里是阿里云 |
|
| Target |
object |
The original transcribed dialogue content. |
|
| Position |
integer |
The position of the word. |
5 |
| Line |
object |
||
| Line |
array |
The specific word. |
|
|
string |
The specific word. |
这里是服务台 |
Response Parameters
| Property | Value type | Required | Description |
| status | Integer | Yes | File status. 0 or 1 indicates not completed; 2 or 3 indicates completed. |
| audioURL | String | No | The audio URL, excluding http/https. |
| audioScheme | String | No | The protocol of the audio URL. Possible values: http, https. |
| fileName | String | No | File name. |
| fileId | String | Yes | File ID. |
| verified | Boolean | Yes | Indicates whether manual verification has been performed. Possible values: false: Not yet verified; true: Already verified. |
| dialogues | List | No | Dialogue data. This field has a value when status is 2 or 3. For details, see the Dialogue data description below. |
| totalCount | Integer | Yes | The total number of files for this task. |
| verifiedCount | Integer | Yes | The total number of verified files. |
| incorrectWords | Integer | Yes | The number of incorrect words in the transcription. |
| precision | Float | Yes | Current recognition accuracy. |
| updateTime | String | Yes | Last update time. |
| duration | Integer | Yes | The total duration of files in the current task, in seconds. |
| index | Integer | Yes | The index of the current file. The frontend passes this value when retrieving the next entry. It starts from 1, so the first entry has a value of 1. |
Dialogue Data Description
| Property | Value type | Required | Description |
| begin | Long | Yes | The offset of this sentence's start time relative to the overall dialogue start time, in milliseconds. |
| beginTime | Long | Yes | The start time of this sentence. |
| end | Long | Yes | The offset of this sentence's end time relative to the overall dialogue start time, in milliseconds. |
| hourMinSec | String | Yes | The start time of this sentence in HH:mm:ss format. |
| role | String | Yes | The speaker's role. |
| sourceRole | String | No | The correct role. |
| identity | String | Yes | Role ARN. |
| words | String | Yes | The transcribed content of this sentence. |
| sourceWords | String | No | The correct content of this sentence. This is returned only after the sentence has been verified. |
| delta | List | No | Errors in the text. For details, see the Delta properties description below. |
| incorrectWords | Integer | No | The number of incorrect words in the transcription of this sentence. This is returned only after the sentence has been verified. |
Delta Properties Description
| Property | Value type | Required | Description |
| source | Chunk | Yes | The correct dialogue content after manual verification. For details, see the Chunk properties description below. |
| target | Chunk | Yes | The transcribed dialogue content. For details, see the Chunk properties description below. |
| type | String | Yes | The type of error. Possible values: CHANGE: Error, INSERT: Extra word, DELETE: Missing word. |
Chunk Properties Description
| Property | Value type | Required | Description |
| line | List | Yes | The specific word. |
| position | Integer | Yes | The position of the word. |
Examples
Success response
JSON format
{
"Code": "200",
"Message": "successful",
"RequestId": "106C6CA0-282D-4AF7-85F0-D2D24F4CE647",
"Success": true,
"Data": {
"Index": 2,
"Status": 3,
"AudioScheme": "http",
"AudioURL": "sca-bucket.oss-cn-hangzhou.aliyuncs.com/upload_1173636551461420/dateset_1584674455133_SzC/%E4%BA%BA%E5%B7%A5%E6%A0%A1%E9%AA%8C%E6%B5%8B%E8%AF%95-%E6%9F%A5%E5%8C%97%E4%BA%AC%E5%A4%A9%E6%B0%94.wav?Expires=1584847372&OSSAccessKeyId=*****&Signature=HccAKnLOJwoYvzE*********",
"UpdateTime": "2020-03-20T11:26Z",
"IncorrectWords": 23,
"VerifiedCount": 2,
"Verified": true,
"FileName": "xxx.wav",
"TotalCount": 3,
"Precision": 0.97079998,
"FileId": "e790e6c919d84b82b64ee*****",
"Duration": 23421,
"Dialogues": {
"Dialogue": [
{
"Words": "你好有什么可以帮您",
"Identity": "某客服",
"IncorrectWords": 2,
"BeginTime": "2024-01-01 12:00:00",
"SourceWords": "您好有什么可以帮您",
"End": 3422,
"SpeechRate": 332,
"HourMinSec": "00:00:07",
"SourceRole": "客服",
"Begin": 980,
"EmotionValue": 6,
"Role": "客户",
"SilenceDuration": 1,
"Deltas": {
"Delta": [
{
"Type": "CHANGE",
"Source": {
"Position": 5,
"Line": {
"Line": [
"这里是阿里云"
]
}
},
"Target": {
"Position": 5,
"Line": {
"Line": [
"这里是服务台"
]
}
}
}
]
}
}
]
}
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.