From cfa1eaf88a45e2cdf93943813b6c907a31444882 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B8=B8=E9=9B=81?= Date: Fri, 19 May 2023 14:14:34 +0800 Subject: [PATCH] websocket 2pass bugfix --- funasr/runtime/python/websocket/ws_client.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/funasr/runtime/python/websocket/ws_client.py b/funasr/runtime/python/websocket/ws_client.py index 97ea552c2..de5a1d890 100644 --- a/funasr/runtime/python/websocket/ws_client.py +++ b/funasr/runtime/python/websocket/ws_client.py @@ -181,7 +181,7 @@ async def message(id): 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 @@ async def message(id): 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 = ""