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/python/websocket/README.md | 20 ++++++++++----------
1 files changed, 10 insertions(+), 10 deletions(-)
diff --git a/runtime/python/websocket/README.md b/runtime/python/websocket/README.md
index f318fd9..304008d 100644
--- a/runtime/python/websocket/README.md
+++ b/runtime/python/websocket/README.md
@@ -16,7 +16,7 @@
### Install the requirements for server
```shell
-cd funasr/runtime/python/websocket
+cd runtime/python/websocket
pip install -r requirements_server.txt
```
@@ -110,15 +110,15 @@
#### Websocket api
```shell
- # class Funasr_websocket_recognizer example with 3 step
- # 1.create an recognizer
- rcg=Funasr_websocket_recognizer(host="127.0.0.1",port="30035",is_ssl=True,mode="2pass")
- # 2.send pcm data to asr engine and get asr result
- text=rcg.feed_chunk(data)
- print("text",text)
- # 3.get last result, set timeout=3
- text=rcg.close(timeout=3)
- print("text",text)
+# class Funasr_websocket_recognizer example with 3 step
+# 1.create an recognizer
+rcg=Funasr_websocket_recognizer(host="127.0.0.1",port="30035",is_ssl=True,mode="2pass")
+# 2.send pcm data to asr engine and get asr result
+text=rcg.feed_chunk(data)
+print("text",text)
+# 3.get last result, set timeout=3
+text=rcg.close(timeout=3)
+print("text",text)
```
## Acknowledge
--
Gitblit v1.9.1