GetResultToReview
Retrieves the quality check result details of a specified file for review. The details include the transcribed text, recording URL, and information about matched check items. You can use this information to listen to the recording, view the transcribed text, and locate the matched check items to review the file.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
sca:GetResultToReview |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| JsonStr |
string |
Yes |
The complete JSON string. For more information, see the following details. |
{"taskId":"Task ID","fileId":"File ID"} |
| BaseMeAgentId |
integer |
No |
The workspace ID. |
12345 |
GetResultToReviewRequest request parameters
| Parameter | Type | Required | Description |
| taskId | String | Yes | The task ID. It is returned after you upload the data to be checked. |
| fileId | String | Yes | The file ID. You can obtain it by calling the GetResult operation. It is the recording.id value in the response. |
Request example
{
"taskId": "20250108-038D8892-C18A-1E29-8809-402D286DD899",
"fileId": "97ae1805ed2c4c438f480bb9def541ab"
}
Sample code
import com.alibaba.fastjson.JSONObject;
import com.aliyun.qualitycheck20190115.Client;
import com.aliyun.qualitycheck20190115.models.*;
import com.aliyun.teaopenapi.models.Config;
public class sca {
private static String ak = "YOUR_ACCESS_KEY_ID";
private static String sk = "YOUR_ACCESS_KEY_SECRET";
private static void getResultToReview() throws Exception {
Config config = new Config();
config.setAccessKeyId(ak).setAccessKeySecret(sk)
.setEndpoint("qualitycheck.cn-hangzhou.aliyuncs.com")
.setRegionId("cn-hangzhou").setProtocol("HTTPS");
Client client = new Client(config);
GetResultToReviewRequest result = new GetResultToReviewRequest();
String rr = "{\"taskId\":\"20250108-038D8892-C18A-1E29-8809-402D286DD899\",\"fileId\":\"97ae1805ed2c4c438f480bb9def541ab\"}";
result.setJsonStr(rr);
GetResultToReviewResponse response = client.getResultToReview(result);
System.out.println(JSONObject.toJSONString(response));
}
public static void main(String[] args) throws Exception {
getResultToReview();
}
}
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Code |
string |
The result code. A value of 200 indicates success, and any other value indicates failure. You can use this field to determine the cause of the failure. |
200 |
| Message |
string |
The error details when an error occurs, or successful when the request is successful. |
successful |
| RequestId |
string |
The request ID. |
82C91484-B2D5-4D2A-A21F-A6D73F4*** |
| Success |
boolean |
Indicates whether the request is successful. true indicates success, and false or null indicates failure. |
true |
| Data |
object |
The detailed response data. |
|
| Status |
integer |
The current status of the task. Valid values:
|
1 |
| AudioScheme |
string |
The protocol of the audio URL. Valid values: http and https. |
https |
| AudioURL |
string |
The audio URL, excluding http:// and https://. This value and AudioScheme form the complete URL. |
sca-ccc-test.oss-cn-beijing.aliyuncs.com/xxxxx |
| FileId |
string |
The file ID. |
e790e6c919d84b82b64ee***** |
| FileMergeName |
string |
The file name. |
xxx.wav |
| Comments |
string |
The review comments. |
Approved |
| Vid |
string |
The file ID. |
6fa76916-3ce6-45d8-ac64-01b7f31*** |
| Dialogues |
object |
||
| Dialogue |
array<object> |
The dialogue data. |
|
|
object |
The dialogue data. |
||
| Words |
string |
The dialogue content. |
Hello, how can I help you? |
| Identity |
string |
The role identifier. In offline voice scenarios, the role is only agent or customer. In offline text quality check scenarios, the value is the identity passed when data is uploaded. |
Agent |
| Begin |
integer |
The offset of the start time of the sentence relative to the overall start time of the dialogue, in milliseconds. For example, if the total recording duration is 2 minutes and 10 seconds, and the customer starts speaking a sentence at 1 minute and 12 seconds and finishes at 1 minute and 20 seconds, the value of begin is 72000 and the value of end is 80000. |
72000 |
| BeginTime |
string |
The absolute time when the sentence starts. Important The format is TZ. Use BeginTimeMs instead. |
2019-10-01T11:12Z |
| EmotionValue |
integer |
The emotion energy value, which is the volume decibel value divided by 10. Valid values: 1 to 10. A higher value indicates a stronger emotion. |
7 |
| End |
integer |
The offset of the start time of the sentence relative to the overall start time of the dialogue, in milliseconds. For example, if the total recording duration is 2 minutes and 10 seconds, and the customer starts speaking a sentence at 1 minute and 12 seconds and finishes at 1 minute and 20 seconds, the value of begin is 72000 and the value of end is 80000. |
80000 |
| SpeechRate |
integer |
The average speech rate of the sentence, in words per minute. |
200 |
| Role |
string |
The role of the speaker for the sentence. Valid values: Agent and Customer. |
Agent |
| SilenceDuration |
integer |
The silence duration between two adjacent sentences spoken by the same role, in seconds. |
1 |
| HourMinSec |
string |
The start time of the sentence in the hh:mm:ss format. |
00:08 |
| BeginTimeMs |
integer |
The absolute time when the sentence starts. The format is a millisecond timestamp. |
1569899521000 |
| HitRuleReviewInfoList |
object |
||
| HitRuleReviewInfo |
array<object> |
The information about the hit check items. |
|
|
array<object> |
The rule hits information. |
||
| ScoreSubName |
string |
A legacy field. Ignore this field. |
Deprecated field |
| ScoreNum |
integer |
The score value. |
-10 |
| AutoReview |
integer |
Specifies whether automatic review is enabled. Valid values:
|
1 |
| ScoreSubId |
integer |
A legacy field. Ignore this field. |
xxx |
| Complainable |
boolean |
Specifies whether the agent can submit an appeal for the current scoring item. An appeal cannot be submitted again after the final review. |
true |
| ScoreId |
integer |
A legacy field. Ignore this field. |
1 |
| RuleName |
string |
The name of the check item. |
Hello |
| Rid |
integer |
The ID of the check item. |
451 |
| ConditionHitInfoList |
object |
||
| ConditionHitInfo |
array<object> |
The hit condition information. |
|
|
array<object> |
|||
| KeyWords |
object |
||
| KeyWord |
array<object> |
The hit key information that is highlighted on the review page, such as the keywords hit by the keyword check operator or the specific category information hit by the agent model check operator. |
|
|
object |
The keyword information. |
||
| From |
integer |
The starting character index of the keyword to be highlighted. The value starts from 0, and the maximum value is the total number of characters in the sentence minus 1. The highlighted text includes the character at the from index. |
1 |
| Val |
string |
The key information hit by the operator. For more information, see Detailed description of key information Val in the response parameter description below. |
Hello |
| Pid |
integer |
The index of the current sentence among all sentences. This value indicates the position of the current sentence in the dialogue array of the request parameters, starting from 0. |
2 |
| Tid |
string |
The voice ID. |
6fa76916-3ce6-45d8-ac64-01b7f31c7295 |
| Cid |
string |
The condition ID. |
2000 |
| To |
integer |
The ending character index of the keyword to be highlighted. The maximum value is the total number of characters in the sentence minus 1. The highlighted text does not include the character at the to index. For example, if from is 0 and to is 3, the highlighted text consists of the first three characters. |
3 |
| CustomizeCode |
string |
An internal field. Ignore this field. |
Deprecated field |
| IsMatch |
boolean |
Indicates whether a match is found. |
true |
| Cid |
object |
||
| Cid |
array |
The list of hit condition IDs. |
|
|
string |
The condition ID. |
2000 |
|
| Phrase |
object |
The sentence details of the current hit check item. |
|
| Words |
string |
The dialogue content. |
Hello, how can I help you? |
| Begin |
integer |
The offset of the start time of the sentence relative to the overall start time of the dialogue, in milliseconds. For example, if the total recording duration is 2 minutes and 10 seconds, and the customer starts speaking a sentence at 1 minute and 12 seconds and finishes at 1 minute and 20 seconds, the value of begin is 72000 and the value of end is 80000. |
72000 |
| Identity |
string |
The role identifier. In offline voice scenarios, the role is only agent or customer. In offline text quality check scenarios, the value is the identity passed when data is uploaded. |
Agent |
| Pid |
integer |
The index of the current sentence among all sentences. This value indicates the position of the current sentence in the dialogue array of the request parameters, starting from 0. |
3 |
| EmotionValue |
integer |
The emotion energy value, which is the volume decibel value divided by 10. Valid values: 1 to 10. A higher value indicates a stronger emotion. |
7 |
| End |
integer |
The offset of the start time of the sentence relative to the overall start time of the dialogue, in milliseconds. For example, if the total recording duration is 2 minutes and 10 seconds, and the customer starts speaking a sentence at 1 minute and 12 seconds and finishes at 1 minute and 20 seconds, the value of begin is 72000 and the value of end is 80000. |
80000 |
| Role |
string |
The role of the speaker for the sentence. Valid values: Agent and Customer. |
Agent |
| ComplainHistories |
object |
||
| ComplainHistories |
array<object> |
The appeal history information. |
|
|
object |
|||
| Comments |
string |
The appeal reason or the appeal processing reason. |
Listen to the recording and re-evaluate |
| Operator |
integer |
The account ID of the appeal initiator or handler. |
123456 |
| OperationTime |
string |
The processing time. |
2020-10-16T11:13Z |
| OperationType |
integer |
The status. Valid values:
|
5 |
| OperatorName |
string |
The username of the appeal initiator or handler. |
John Doe |
| ReviewInfo |
object |
The review information. |
|
| ReviewResult |
integer |
The review result. Valid values:
|
1 |
| ReviewTime |
string |
The review time in the yyyy-mm-dd hh:mm:ss format. |
2019-10-12 17:06:00 |
| HitId |
string |
The hit ID. |
013c68142fec4f0899fa6ee0exxx |
| Reviewer |
string |
The reviewer ID. |
123 |
| Rid |
integer |
The check item ID. |
451 |
| Comment |
string |
The review comment. |
No issues found during review |
| SentenceReviewResults |
object |
||
| SentenceReviewResults |
array<object> |
The sentence review results. |
|
|
object |
The sentence review results. |
||
| Sid |
integer |
The associated ix. |
1 |
| Rid |
integer |
The rule ID. |
1 |
| Cid |
integer |
The condition ID. |
1 |
| Pid |
string |
The sentence ID. |
1 |
| HitStatus |
integer |
Indicates whether the rule is hit. |
1 |
| ReviewDimensionType |
string |
The review type. |
2 |
| OriginTaskId |
string |
The origin task ID. |
122-122-22-333 |
| OriginVid |
string |
sessionid |
1001 |
| Comment |
string |
The review comment. |
No comments |
| Changed |
boolean |
Indicates whether the result is changed. |
False |
| MachineHitResult |
integer |
The machine review hit results. |
1 |
| ReviewHitResult |
integer |
The review hit result. |
1 |
| ManualScoreInfoList |
object |
||
| ManualScoreInfo |
array<object> |
The manually added check items. |
|
|
array<object> |
|||
| ScoreSubName |
string |
A legacy field. Ignore this field. |
Complaint |
| Complainable |
boolean |
Specifies whether the agent can submit an appeal for the current scoring item. An appeal cannot be submitted again after the final review. |
true |
| ScoreNum |
integer |
The score. |
-10 |
| ScoreSubId |
integer |
A legacy field. Ignore this field. |
1 |
| ScoreId |
integer |
A legacy field. Ignore this field. |
1 |
| ComplainHistories |
object |
||
| ComplainHistories |
array<object> |
The appeal history information. |
|
|
object |
|||
| Comments |
string |
The appeal reason or the appeal processing reason. |
Listen to the recording and re-evaluate |
| Operator |
integer |
The account ID of the appeal initiator or handler. |
123456 |
| OperationTime |
string |
The processing time. |
2020-10-16T11:13Z |
| OperationType |
integer |
The status. Valid values:
|
5 |
| OperatorName |
string |
The username of the appeal initiator or handler. |
John Doe |
| ReviewHistoryList |
object |
||
| ReviewHistory |
array<object> |
The review history. |
|
|
array<object> |
|||
| Type |
integer |
The review type. Valid values:
|
1 |
| OperatorName |
string |
The username of the reviewer. |
John Doe |
| TimeStr |
string |
The review time in the yyyy-mm-dd hh:mm:ss format. |
2019-10-28 15:21:00 |
| Score |
integer |
The score after the review. |
95 |
| ReviewResult |
integer |
The review result. Valid values:
|
1 |
| ComplainResult |
integer |
The appeal processing result. Valid values:
|
1 |
| OldScore |
integer |
The score before the review. |
90 |
| ReviewManagerType |
string |
The review type details. |
[One category][Two categories: First category, First category->Next level] |
| Time |
integer |
The timestamp used for display. |
1722396376000 |
| Comments |
string |
The comment. |
Specify the school name |
| ReviewRightRule |
object |
||
| ReviewRightRule |
array<object> |
The correct rule hits after the review. |
|
|
object |
The correct rule hits after the review. |
||
| ruleName |
string |
The rule name. |
Greeting rule |
| rid |
integer |
The rule ID. |
12 |
| Operator |
integer |
The operator ID. |
78404 |
| ReviewErrorRule |
object |
||
| reviewErrorRule |
array<object> |
The missed rule hits. |
[47162,122] |
|
object |
|||
| Rid |
integer |
The rule ID. |
47162 |
| ReviewTypeIdList |
object |
||
| ReviewTypeIdList |
array<object> |
The list of review type IDs. |
|
|
array<object> |
The list of review type IDs. |
||
| ReviewKeyIdList |
object |
||
| ReviewKeyIdList |
array |
The list of review tag IDs. |
[4,5] |
|
integer |
The list of review tag IDs. |
4 |
|
| ReviewTypeId |
integer |
The review category ID. |
1 |
| SmartCheckScore |
number |
The automated check score. |
100 |
| ArtificialScore |
number |
The manual review score. |
100 |
| TotalScore |
integer |
The quality inspection score. |
99 |
Details of the Val field
| Operator | Sample val value | Description |
| Text check - Keyword check | Hello | The text in the current sentence that hits this operator. This is the text highlighted in red in the sentence when you view the hit position on the review page. |
| Text check - Text similarity check | 82 | The similarity value. |
| Text check - Regular expression check | Hello | The text in the current sentence that hits this operator. This is the text highlighted in red in the sentence when you view the hit position on the review page. |
| Text check - Context repetition check | Hello | The text in the current sentence that hits this operator. This is the text highlighted in red in the sentence when you view the hit position on the review page. |
| Voice check - Call silence check | 3200 | The silence duration in milliseconds. |
| Voice check - Speech rate check | 365 | The speech rate value of the current sentence. |
| Voice check - Interruption check | 2:8 | The format is "m:n". m is the interruption duration in seconds, which is the overlapping speech time between the agent and the customer. n is the number of words in the current sentence. |
| Voice check - Role identification | Hello | The text in the current sentence that hits this operator. This is the text highlighted in red in the sentence when you view the hit position on the review page. |
| Voice check - Abnormal hang-up | 3567 | The time in milliseconds from the end of the last sentence to the hang-up time. |
| Voice check - Recording duration check | 56088 | The recording duration in milliseconds. |
| Model check - Emotion recognition model | Abuse | The specific type of emotion, such as abuse or high risk. |
| Model check - Agent violation detection model | Sarcasm | The specific type of agent violation, such as sarcasm, rhetorical question, or abuse. |
Examples
Success response
JSON format
{
"Code": "200",
"Message": "successful",
"RequestId": "82C91484-B2D5-4D2A-A21F-A6D73F4***",
"Success": true,
"Data": {
"Status": 1,
"AudioScheme": "https",
"AudioURL": "sca-ccc-test.oss-cn-beijing.aliyuncs.com/xxxxx",
"FileId": "e790e6c919d84b82b64ee*****",
"FileMergeName": "xxx.wav",
"Comments": "xxx",
"Vid": "6fa76916-3ce6-45d8-ac64-01b7f31***",
"Dialogues": {
"Dialogue": [
{
"Words": "Hello, how can I help you?",
"Identity": "Customer service representative",
"Begin": 72000,
"BeginTime": "2019-10-01T11:12Z",
"EmotionValue": 7,
"End": 80000,
"SpeechRate": 200,
"Role": "Customer service representative",
"SilenceDuration": 1,
"HourMinSec": "00:08",
"BeginTimeMs": 1569899521000
}
]
},
"HitRuleReviewInfoList": {
"HitRuleReviewInfo": [
{
"ScoreSubName": "Deprecated field",
"ScoreNum": -10,
"AutoReview": 1,
"ScoreSubId": 0,
"Complainable": true,
"ScoreId": 1,
"RuleName": "Hello",
"Rid": 451,
"ConditionHitInfoList": {
"ConditionHitInfo": [
{
"KeyWords": {
"KeyWord": [
{
"From": 1,
"Val": "Hello",
"Pid": 2,
"Tid": "6fa76916-3ce6-45d8-ac64-01b7f31c7295",
"Cid": "2000",
"To": 3,
"CustomizeCode": "Deprecated field",
"IsMatch": true
}
]
},
"Cid": {
"Cid": [
"2000"
]
},
"Phrase": {
"Words": "Hello, how can I help you?",
"Begin": 72000,
"Identity": "Customer service representative",
"Pid": 3,
"EmotionValue": 7,
"End": 80000,
"Role": "Customer service representative"
}
}
]
},
"ComplainHistories": {
"ComplainHistories": [
{
"Comments": "Listen to the recording and re-evaluate",
"Operator": 123456,
"OperationTime": "2020-10-16T11:13Z",
"OperationType": 5,
"OperatorName": "Zhang San"
}
]
},
"ReviewInfo": {
"ReviewResult": 1,
"ReviewTime": "2019-10-12 17:06:00",
"HitId": "013c68142fec4f0899fa6ee0exxx",
"Reviewer": "123",
"Rid": 451,
"Comment": "No issues found during review",
"SentenceReviewResults": {
"SentenceReviewResults": [
{
"Sid": 1,
"Rid": 1,
"Cid": 1,
"Pid": "1",
"HitStatus": 1,
"ReviewDimensionType": "2",
"OriginTaskId": "122-122-22-333",
"OriginVid": "1001",
"Comment": "No comments",
"Changed": true
}
]
}
},
"MachineHitResult": 1,
"ReviewHitResult": 1
}
]
},
"ManualScoreInfoList": {
"ManualScoreInfo": [
{
"ScoreSubName": "Complaint",
"Complainable": true,
"ScoreNum": -10,
"ScoreSubId": 1,
"ScoreId": 1,
"ComplainHistories": {
"ComplainHistories": [
{
"Comments": "Listen to the recording and re-evaluate",
"Operator": 123456,
"OperationTime": "2020-10-16T11:13Z",
"OperationType": 5,
"OperatorName": "Zhang San"
}
]
}
}
]
},
"ReviewHistoryList": {
"ReviewHistory": [
{
"Type": 1,
"OperatorName": "Zhang San",
"TimeStr": "2019-10-28 15:21:00",
"Score": 95,
"ReviewResult": 1,
"ComplainResult": 1,
"OldScore": 90,
"ReviewManagerType": "[One category][Two categories: First category, First category->Next level]",
"Time": 1722396376000,
"Comments": "Please specify the school name, thank you",
"ReviewRightRule": {
"ReviewRightRule": [
{
"ruleName": "Greeting rule",
"rid": 12
}
]
},
"Operator": 78404,
"ReviewErrorRule": {
"reviewErrorRule": [
{
"Rid": 0
}
]
}
}
]
},
"ReviewTypeIdList": {
"ReviewTypeIdList": [
{
"ReviewKeyIdList": {
"ReviewKeyIdList": [
0
]
},
"ReviewTypeId": 1
}
]
},
"SmartCheckScore": 100,
"ArtificialScore": 100,
"TotalScore": 99
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.