From f6daebd88eb8aa3d37dc9a063043becb2a7bc8d6 Mon Sep 17 00:00:00 2001
From: 雾聪 <wucong.lyb@alibaba-inc.com>
Date: 星期一, 08 一月 2024 16:49:24 +0800
Subject: [PATCH] update websocket_protocol
---
runtime/docs/websocket_protocol.md | 8 ++++----
runtime/docs/websocket_protocol_zh.md | 8 ++++----
2 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/runtime/docs/websocket_protocol.md b/runtime/docs/websocket_protocol.md
index 588339e..8a38490 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]]", "stamp_sents":""}
+{"mode": "offline", "wav_name": "wav_name", "text": "asr ouputs", "is_final": True, "timestamp":"[[100,200], [200,500]]", "stamp_sents":[]}
```
Parameter explanation:
```text
@@ -45,7 +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]]}]"
+`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
@@ -85,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]]", "stamp_sents":""}
+{"mode": "2pass-online", "wav_name": "wav_name", "text": "asr ouputs", "is_final": True, "timestamp":"[[100,200], [200,500]]", "stamp_sents":[]}
```
Parameter explanation:
```text
@@ -94,5 +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]]}]"
+`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]]}]
```
diff --git a/runtime/docs/websocket_protocol_zh.md b/runtime/docs/websocket_protocol_zh.md
index e00a989..7385837 100644
--- a/runtime/docs/websocket_protocol_zh.md
+++ b/runtime/docs/websocket_protocol_zh.md
@@ -37,7 +37,7 @@
#### 鍙戦�佽瘑鍒粨鏋�
message涓猴紙閲囩敤json搴忓垪鍖栵級
```text
-{"mode": "offline", "wav_name": "wav_name", "text": "asr ouputs", "is_final": True,"timestamp":"[[100,200], [200,500]]","stamp_sents":""}
+{"mode": "offline", "wav_name": "wav_name", "text": "asr ouputs", "is_final": True,"timestamp":"[[100,200], [200,500]]","stamp_sents":[]}
```
鍙傛暟浠嬬粛锛�
```text
@@ -46,7 +46,7 @@
`text`锛氳〃绀鸿闊宠瘑鍒緭鍑烘枃鏈�
`is_final`锛氳〃绀鸿瘑鍒粨鏉�
`timestamp`锛氬鏋淎M涓烘椂闂存埑妯″瀷锛屼細杩斿洖姝ゅ瓧娈碉紝琛ㄧず鏃堕棿鎴筹紝鏍煎紡涓� "[[100,200], [200,500]]"(ms)
-`stamp_sents`锛氬鏋淎M涓烘椂闂存埑妯″瀷锛屼細杩斿洖姝ゅ瓧娈碉紝琛ㄧず鍙ュ瓙绾у埆鏃堕棿鎴筹紝鏍煎紡涓� "[{'text_seg':'姝� 鏄� 鍥� 涓�','punc':',','start':'430','end':'1130','ts_list':[[430,670],[670,810],[810,1030],[1030,1130]]}]"
+`stamp_sents`锛氬鏋淎M涓烘椂闂存埑妯″瀷锛屼細杩斿洖姝ゅ瓧娈碉紝琛ㄧず鍙ュ瓙绾у埆鏃堕棿鎴筹紝鏍煎紡涓� [{"text_seg":"姝� 鏄� 鍥� 涓�","punc":",","start":"430","end":"1130","ts_list":[[430,670],[670,810],[810,1030],[1030,1130]]}]
```
## 瀹炴椂璇煶璇嗗埆
@@ -87,7 +87,7 @@
#### 鍙戦�佽瘑鍒粨鏋�
message涓猴紙閲囩敤json搴忓垪鍖栵級
```text
-{"mode": "2pass-online", "wav_name": "wav_name", "text": "asr ouputs", "is_final": True, "timestamp":"[[100,200], [200,500]]","stamp_sents":""}
+{"mode": "2pass-online", "wav_name": "wav_name", "text": "asr ouputs", "is_final": True, "timestamp":"[[100,200], [200,500]]","stamp_sents":[]}
```
鍙傛暟浠嬬粛锛�
```text
@@ -96,5 +96,5 @@
`text`锛氳〃绀鸿闊宠瘑鍒緭鍑烘枃鏈�
`is_final`锛氳〃绀鸿瘑鍒粨鏉�
`timestamp`锛氬鏋淎M涓烘椂闂存埑妯″瀷锛屼細杩斿洖姝ゅ瓧娈碉紝琛ㄧず鏃堕棿鎴筹紝鏍煎紡涓� "[[100,200], [200,500]]"(ms)
-`stamp_sents`锛氬鏋淎M涓烘椂闂存埑妯″瀷锛屼細杩斿洖姝ゅ瓧娈碉紝琛ㄧず鍙ュ瓙绾у埆鏃堕棿鎴筹紝鏍煎紡涓� "[{'text_seg':'姝� 鏄� 鍥� 涓�','punc':',','start':'430','end':'1130','ts_list':[[430,670],[670,810],[810,1030],[1030,1130]]}]"
+`stamp_sents`锛氬鏋淎M涓烘椂闂存埑妯″瀷锛屼細杩斿洖姝ゅ瓧娈碉紝琛ㄧず鍙ュ瓙绾у埆鏃堕棿鎴筹紝鏍煎紡涓� [{"text_seg":"姝� 鏄� 鍥� 涓�","punc":",","start":"430","end":"1130","ts_list":[[430,670],[670,810],[810,1030],[1030,1130]]}]
```
--
Gitblit v1.9.1