mirror of
https://github.com/modelscope/FunASR
synced 2025-09-15 14:48:36 +08:00
Hotwords file needs to specify default utf-8 encoding. (#2379)
This commit is contained in:
parent
001a66bbfe
commit
5052ca8bf0
@ -85,7 +85,7 @@ async def record_microphone():
|
||||
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(" ")
|
||||
|
||||
Loading…
Reference in New Issue
Block a user