mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
fixbug hotwords
This commit is contained in:
parent
5b4363a3e1
commit
1596f6f414
@ -180,7 +180,7 @@ async def ws_serve(websocket, path):
|
||||
"decoder_chunk_look_back"
|
||||
]
|
||||
if "hotword" in messagejson:
|
||||
websocket.status_dict_asr["hotword"] = messagejson["hotword"]
|
||||
websocket.status_dict_asr["hotword"] = messagejson["hotwords"]
|
||||
if "mode" in messagejson:
|
||||
websocket.mode = messagejson["mode"]
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user