mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
Fix: Spelling causes hotwords to not take effect (#2444)
The hotword passed by the client cannot take effect because of a spelling error.
This commit is contained in:
parent
6e69d784e4
commit
0d6e6a2fb8
@ -179,7 +179,7 @@ async def ws_serve(websocket, path):
|
||||
websocket.status_dict_asr_online["decoder_chunk_look_back"] = messagejson[
|
||||
"decoder_chunk_look_back"
|
||||
]
|
||||
if "hotword" in messagejson:
|
||||
if "hotwords" in messagejson:
|
||||
websocket.status_dict_asr["hotword"] = messagejson["hotwords"]
|
||||
if "mode" in messagejson:
|
||||
websocket.mode = messagejson["mode"]
|
||||
|
||||
Loading…
Reference in New Issue
Block a user