mirror of
https://github.com/modelscope/FunASR.git
synced 2026-10-12 02:19:18 +00:00
Hotwords file needs to specify default utf-8 encoding. (#2379)
This commit is contained in:
@@ -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(" ")
|
||||
|
||||
Reference in New Issue
Block a user