API Path
/
请求协议
HTTP
请求方法
POST
响应内容:
返回结果
> 成功 (200)
> Json
> Object
| 参数名 | 说明 | 必填 | 类型 | 数据字典 | 限制 | 示例 |
|---|---|---|---|---|---|---|
| task_id | 识别任务 ID,用于识别结果的查询 | 是 | [string] | |||
| req_id | 请求全局唯一 ID,记录该值便于排查问题 | 是 | [string] | |||
| status | 状态码 | 是 | [int] | |||
| status_msg | 状态说明 | 是 | [string] | |||
| result | 识别结果 | 是 | [object] | |||
| result>>sentences | 识别的句子结果数据 | 是 | [array] | |||
| result>>sentences>>speaker_id | 该句所属说话人 ID | 是 | [int] | |||
| result>>sentences>>begin_time | 该句的起始时间偏移,单位为毫秒 | 是 | [int] | |||
| result>>sentences>>end_time | 该句的结束时间偏移,单位为毫秒 | 是 | [int] | |||
| result>>sentences>>texts | 该句的识别文本结果 | 是 | [string] | |||
| result>>sentences>>confidence | 当前句子识别结果的置信度,取值范围:[0.0, 1.0]。值越大表示置信度越高 | 是 | [float] |
成功示例[Mock API]:
{
"task_id": "0867a44e-b481-4fde-9b3c-1767b60702b6",
"status": 10000,
"status_msg": "Succeed",
"result": {
"sentences": [{
"speaker_id": 0,
"begin_time": 0,
"end_time": 2400,
"texts": "北京的天气。"
}]
}
}
失败示例[Mock API]:
{
"seq_id": "a504324c-6e10-11e8-adf0-58fb8443ee27",
"send_pts_ms": "1710315626154",
"code": "10903",
"message": "服务执行失败",
"flag": 0,
"task_id": 20003
}
最终处理结果回告方式遵循 异步调用结果回告协议规范, 回调结果见下面响应结果。