GetNextResultToVerify

Updated at:

Retrieve the next file details for manual verification.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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

PropertyValue typeRequiredDescription
taskIdStringYesThe ID of the precision comparison task. This is precisions.taskId in the return value of the ListPrecisionTask API.
pageNumberIntegerNoThe 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.
pageSizeIntegerNoAlways pass 1.
originalIntegerNoWhether to return the original (correct) text. Valid values: 0 (No), 1 (Yes). Default is 0.
fileNameStringNoThe 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

PropertyValue typeRequiredDescription
statusIntegerYesFile status. 0 or 1 indicates not completed; 2 or 3 indicates completed.
audioURLStringNoThe audio URL, excluding http/https.
audioSchemeStringNoThe protocol of the audio URL. Possible values: http, https.
fileNameStringNoFile name.
fileIdStringYesFile ID.
verifiedBooleanYesIndicates whether manual verification has been performed. Possible values: false: Not yet verified; true: Already verified.
dialoguesListNoDialogue data. This field has a value when status is 2 or 3. For details, see the Dialogue data description below.
totalCountIntegerYesThe total number of files for this task.
verifiedCountIntegerYesThe total number of verified files.
incorrectWordsIntegerYesThe number of incorrect words in the transcription.
precisionFloatYesCurrent recognition accuracy.
updateTimeStringYesLast update time.
durationIntegerYesThe total duration of files in the current task, in seconds.
indexIntegerYesThe 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

PropertyValue typeRequiredDescription
beginLongYesThe offset of this sentence's start time relative to the overall dialogue start time, in milliseconds.
beginTimeLongYesThe start time of this sentence.
endLongYesThe offset of this sentence's end time relative to the overall dialogue start time, in milliseconds.
hourMinSecStringYesThe start time of this sentence in HH:mm:ss format.
roleStringYesThe speaker's role.
sourceRoleStringNoThe correct role.
identityStringYesRole ARN.
wordsStringYesThe transcribed content of this sentence.
sourceWordsStringNoThe correct content of this sentence. This is returned only after the sentence has been verified.
deltaListNoErrors in the text. For details, see the Delta properties description below.
incorrectWordsIntegerNoThe number of incorrect words in the transcription of this sentence. This is returned only after the sentence has been verified.

Delta Properties Description

PropertyValue typeRequiredDescription
sourceChunkYesThe correct dialogue content after manual verification. For details, see the Chunk properties description below.
targetChunkYesThe transcribed dialogue content. For details, see the Chunk properties description below.
typeStringYesThe type of error. Possible values: CHANGE: Error, INSERT: Extra word, DELETE: Missing word.

Chunk Properties Description

PropertyValue typeRequiredDescription
lineListYesThe specific word.
positionIntegerYesThe 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.