修复读取tts_infer.yaml文件时遇到的编码不匹配的问题

This commit is contained in:
ChasonJiang 2025-03-18 15:13:41 +08:00
parent d9fdb57895
commit 202c1896ce

View File

@ -301,7 +301,7 @@ class TTS_Config:
else:
print(i18n("路径不存在,使用默认配置"))
self.save_configs(configs_path)
with open(configs_path, 'r') as f:
with open(configs_path, 'r', encoding='utf-8') as f:
configs = yaml.load(f, Loader=yaml.FullLoader)
return configs