Update websocket_protocol_zh.md

This commit is contained in:
Yabin Li 2024-09-26 15:27:20 +08:00 committed by GitHub
parent cd4c6485ef
commit 5b53b8fb7b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -44,7 +44,7 @@ message为采用json序列化
`mode``offline`,表示推理模式为离线文件转写
`wav_name`:表示需要推理音频文件名
`text`:表示语音识别输出文本
`is_final`:表示识别结束
`is_final`:表示识别结束,在 offline 模式下这个字段永远为 False服务端 websocket 只会返回一次识别结果
`timestamp`如果AM为时间戳模型会返回此字段表示时间戳格式为 "[[100,200], [200,500]]"(ms)
`stamp_sents`如果AM为时间戳模型会返回此字段表示句子级别时间戳格式为 [{"text_seg":"正 是 因 为","punc":",","start":430,"end":1130,"ts_list":[[430,670],[670,810],[810,1030],[1030,1130]]}]
```