From cfa1eaf88a45e2cdf93943813b6c907a31444882 Mon Sep 17 00:00:00 2001
From: 游雁 <zhifu.gzf@alibaba-inc.com>
Date: 星期五, 19 五月 2023 14:14:34 +0800
Subject: [PATCH] websocket 2pass bugfix
---
funasr/runtime/python/websocket/ws_client.py | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/funasr/runtime/python/websocket/ws_client.py b/funasr/runtime/python/websocket/ws_client.py
index 97ea552..de5a1d8 100644
--- a/funasr/runtime/python/websocket/ws_client.py
+++ b/funasr/runtime/python/websocket/ws_client.py
@@ -181,7 +181,7 @@
ibest_writer["text"][wav_name] = text
if meg["mode"] == "online":
- text_print += " {}".format(text)
+ text_print += "{}".format(text)
text_print = text_print[-args.words_max_print:]
os.system('clear')
print("\rpid"+str(id)+": "+text_print)
@@ -192,7 +192,7 @@
print("\rpid"+str(id)+": "+text_print)
else:
if meg["mode"] == "2pass-online":
- text_print_2pass_online += " {}".format(text)
+ text_print_2pass_online += "{}".format(text)
text_print = text_print_2pass_offline + text_print_2pass_online
else:
text_print_2pass_online = ""
--
Gitblit v1.9.1