mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
websocket 2pass bugfix
This commit is contained in:
parent
6e60f5be29
commit
cfa1eaf88a
@ -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 = ""
|
||||
|
||||
Loading…
Reference in New Issue
Block a user