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:
nianjiuhuiyi 2025-03-20 22:59:42 +08:00 committed by GitHub
parent 6e69d784e4
commit 0d6e6a2fb8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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"]