Help Center/ MetaStudio/ API Reference/ Voice Modeling Task Management/ Confirming the Online Recording Result
Updated on 2024-07-04 GMT+08:00

Confirming the Online Recording Result

Function

Confirms the online recording result.

Calling Method

For details, see Calling APIs.

URI

POST /v1/{project_id}/voice-training-manage/user/training-segment

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID. For details about how to obtain the project ID, see Obtaining a Project ID.

Table 2 Query Parameters

Parameter

Mandatory

Type

Description

job_id

Yes

String

Task ID.

index

Yes

Integer

Statement index.

Request Parameters

None

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

confirm_result

Boolean

Whether the confirmation is successful.

unmatched_index_hit

Array of integers

Text index that does not match the explanation.

Status code: 400

Table 4 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error description.

Example Requests

POST https://{endpoint}/v1/3f0924078d1b471c884a5383d4dec9fa/voice-training-manage/user/training-segment?job_id=26f06524-4f75-4b3a-a853-b649a21aaf66&index=1

Example Responses

Status code: 200

OK

{
  "confirm_result" : false,
  "unmatched_index_hit" : [ 4096 ]
}

Status Codes

Status Code

Description

200

OK

400

Invalid parameter.

Error Codes

See Error Codes.