From 4d907718f39e2b0f7a0c714c2e3de289e742fc61 Mon Sep 17 00:00:00 2001
From: Carl <415692979@qq.com>
Date: 星期四, 28 三月 2024 13:42:00 +0800
Subject: [PATCH] 修正commit 87b62d68957a2194b017a43b6c2a15424a05a984 引入的英文整句标点预测导致末尾两个单词中间的空格被删除的问题。 (#1556)

---
 runtime/docs/websocket_protocol.md |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/runtime/docs/websocket_protocol.md b/runtime/docs/websocket_protocol.md
index f03b688..6eec215 100644
--- a/runtime/docs/websocket_protocol.md
+++ b/runtime/docs/websocket_protocol.md
@@ -36,7 +36,7 @@
 #### Sending Recognition Results
 The message (serialized in JSON) is:
 ```text
-{"mode": "offline", "wav_name": "wav_name", "text": "asr ouputs", "is_final": True, "timestamp":"[[100,200], [200,500]]"}
+{"mode": "offline", "wav_name": "wav_name", "text": "asr ouputs", "is_final": True, "timestamp":"[[100,200], [200,500]]", "stamp_sents":[]}
 ```
 Parameter explanation:
 ```text
@@ -45,6 +45,7 @@
 `text`: the text output of speech recognition
 `is_final`: indicating the end of recognition
 `timestamp`锛欼f AM is a timestamp model, it will return this field, indicating the timestamp, in the format of "[[100,200], [200,500]]"
+`stamp_sents`锛欼f AM is a timestamp model, it will return this field, indicating the stamp_sents, in the format of [{"text_seg":"姝� 鏄� 鍥� 涓�","punc":",","start":430,"end":1130,"ts_list":[[430,670],[670,810],[810,1030],[1030,1130]]}]
 ```
 
 ## Real-time Speech Recognition
@@ -84,7 +85,7 @@
 The message (serialized in JSON) is:
 
 ```text
-{"mode": "2pass-online", "wav_name": "wav_name", "text": "asr ouputs", "is_final": True, "timestamp":"[[100,200], [200,500]]"}
+{"mode": "2pass-online", "wav_name": "wav_name", "text": "asr ouputs", "is_final": True, "timestamp":"[[100,200], [200,500]]", "stamp_sents":[]}
 ```
 Parameter explanation:
 ```text
@@ -93,4 +94,5 @@
 `text`: the text output of speech recognition
 `is_final`: indicating the end of recognition
 `timestamp`锛欼f AM is a timestamp model, it will return this field, indicating the timestamp, in the format of "[[100,200], [200,500]]"
+`stamp_sents`锛欼f AM is a timestamp model, it will return this field, indicating the stamp_sents, in the format of [{"text_seg":"姝� 鏄� 鍥� 涓�","punc":",","start":430,"end":1130,"ts_list":[[430,670],[670,810],[810,1030],[1030,1130]]}]
 ```

--
Gitblit v1.9.1