辰冢
2025-02-12 5052ca8bf03c178d9ae73cb68785cd4afb0144d2
Hotwords file needs to specify default utf-8 encoding. (#2379)

1个文件已修改
2 ■■■ 已修改文件
runtime/python/websocket/funasr_wss_client.py 2 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
runtime/python/websocket/funasr_wss_client.py
@@ -85,7 +85,7 @@
    hotword_msg = ""
    if args.hotword.strip() != "":
        if os.path.exists(args.hotword):
            f_scp = open(args.hotword)
            f_scp = open(args.hotword, encoding="utf-8")
            hot_lines = f_scp.readlines()
            for line in hot_lines:
                words = line.strip().split(" ")