From a967cbb3deb4dfa2227e438146d6f0ffd1eb63d8 Mon Sep 17 00:00:00 2001
From: 游雁 <zhifu.gzf@alibaba-inc.com>
Date: 星期三, 08 十一月 2023 11:43:32 +0800
Subject: [PATCH] docs
---
runtime/python/websocket/README.md | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/runtime/python/websocket/README.md b/runtime/python/websocket/README.md
index f318fd9..d50c8e1 100644
--- a/runtime/python/websocket/README.md
+++ b/runtime/python/websocket/README.md
@@ -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