游雁
2023-07-05 9d7dcea38dbf794b8099ab62bf6444a30d910886
funasr/runtime/python/websocket/funasr_wss_client.py
File was renamed from funasr/runtime/python/websocket/wss_client_asr.py
@@ -199,12 +199,12 @@
            if meg["mode"] == "online":
                text_print += "{}".format(text)
                text_print = text_print[-args.words_max_print:]
                os.system('clear')
                # os.system('clear')
                print("\rpid" + str(id) + ": " + text_print)
            elif meg["mode"] == "offline":
                text_print += "{}".format(text)
                text_print = text_print[-args.words_max_print:]
                os.system('clear')
                # os.system('clear')
                print("\rpid" + str(id) + ": " + text_print)
                offline_msg_done=True
            else:
@@ -216,7 +216,7 @@
                    text_print = text_print_2pass_offline + "{}".format(text)
                    text_print_2pass_offline += "{}".format(text)
                text_print = text_print[-args.words_max_print:]
                os.system('clear')
                # os.system('clear')
                print("\rpid" + str(id) + ": " + text_print)
                offline_msg_done=True