
# 确认在线录音结果 - ConfirmTrainingSegment
#### 功能介绍
确认在线录音结果。
#### 调用方法
请参见[如何调用API](https://support.huaweicloud.com/api-metastudio/metastudio_02_0002.html)。
#### 授权信息
账号具备所有API的调用权限，如果使用账号下的IAM用户调用当前API，该IAM用户需具备调用API所需的权限，具体权限要求请参见[权限和授权项](https://support.huaweicloud.com/api-metastudio/metastudio_02_0071.html)。
#### URI
POST /v1/{project_id}/voice-training-manage/user/training-segment
表1路径参数 
| 参数         | 是否必选 | 参数类型   | 描述                                                                                            |
|:---|:---|:---|:---|
| project_id | 是    | String | 项目ID，获取方法请参考[获取项目ID](https://support.huaweicloud.com/api-metastudio/metastudio_02_0006.html)。 |
   
表2Query参数 
| 参数     | 是否必选 | 参数类型    | 描述                                                                                                                                                                    |
|:---|:---|:---|:---|
| job_id | 是    | String  | 任务id。                                                                                                                                                                 |
| index  | 是    | Integer | 语句索引。 **取值范围：** 0\~1024 |
   
#### 请求参数
无
#### 响应参数
**状态码：200**
表3响应Body参数 
| 参数                  | 参数类型              | 描述                                                                                                                                                                          |
|:---|:---|:---|
| confirm_result      | Boolean           | 是否确认成功。                                                                                                                                                                     |
| unmatched_index_hit | Array of integers | 讲解不匹配的文本索引。 **取值范围：** 0\~4096 |
   
**状态码：400**
表4响应Body参数 
| 参数         | 参数类型   | 描述    |
|:---|:---|:---|
| error_code | String | 错误码。  |
| error_msg  | String | 错误描述。 |
   
#### 请求示例
```
POST https://{endpoint}/v1/3f0924078d1b471c884a5383d4dec9fa/voice-training-manage/user/training-segment?job_id=26f06524-4f75-4b3a-a853-b649a21aaf66&index=1
```
#### 响应示例
**状态码：200**
OK
```
{
  "confirm_result" : false,
  "unmatched_index_hit" : [ 4096 ]
}
```
#### 状态码
| 状态码 | 描述    |
|:---|:---|
| 200 | OK    |
| 400 | 参数异常。 |
   
#### 错误码
请参见[错误码](https://support.huaweicloud.com/api-metastudio/ErrorCode.html)。
