From d80ac2fd2df4e7fb8a28acfa512bb11472b5cc99 Mon Sep 17 00:00:00 2001
From: liugz18 <57401541+liugz18@users.noreply.github.com>
Date: 星期四, 18 七月 2024 21:34:55 +0800
Subject: [PATCH] Rename 'res' in line 514 to avoid with naming conflict with line 365
---
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