From 8e238cfc854c1e41cc3a8a6cc29b0defee55b22f Mon Sep 17 00:00:00 2001
From: 游雁 <zhifu.gzf@alibaba-inc.com>
Date: 星期六, 06 五月 2023 22:19:26 +0800
Subject: [PATCH] websocket
---
funasr/runtime/python/websocket/ws_client.py | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/funasr/runtime/python/websocket/ws_client.py b/funasr/runtime/python/websocket/ws_client.py
index 55507a7..c62dd87 100644
--- a/funasr/runtime/python/websocket/ws_client.py
+++ b/funasr/runtime/python/websocket/ws_client.py
@@ -151,8 +151,7 @@
meg = json.loads(meg)
# print(meg, end = '')
# print("\r")
- text = meg["text"]
- text_print += text
+ text_print += " {}".format(meg["text"][0])
text_print = text_print[-55:]
#os.system('clear')
print("\r"+str(id)+":"+text_print)
--
Gitblit v1.9.1