mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-04-05 19:41:56 +08:00
修复读取tts_infer.yaml文件时遇到的编码不匹配的问题
This commit is contained in:
parent
d9fdb57895
commit
202c1896ce
@ -301,7 +301,7 @@ class TTS_Config:
|
|||||||
else:
|
else:
|
||||||
print(i18n("路径不存在,使用默认配置"))
|
print(i18n("路径不存在,使用默认配置"))
|
||||||
self.save_configs(configs_path)
|
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)
|
configs = yaml.load(f, Loader=yaml.FullLoader)
|
||||||
|
|
||||||
return configs
|
return configs
|
||||||
|
Loading…
x
Reference in New Issue
Block a user