|
|
@ -304,7 +304,7 @@ class TTS_Config:
|
|
|
|
configs: dict = self._load_configs(self.configs_path)
|
|
|
|
configs: dict = self._load_configs(self.configs_path)
|
|
|
|
|
|
|
|
|
|
|
|
assert isinstance(configs, dict)
|
|
|
|
assert isinstance(configs, dict)
|
|
|
|
version = configs.get("version", "v2").lower()
|
|
|
|
version = configs.get("version", "v2")
|
|
|
|
assert version in ["v1", "v2", "v3", "v4", "v2Pro", "v2ProPlus"]
|
|
|
|
assert version in ["v1", "v2", "v3", "v4", "v2Pro", "v2ProPlus"]
|
|
|
|
self.default_configs[version] = configs.get(version, self.default_configs[version])
|
|
|
|
self.default_configs[version] = configs.get(version, self.default_configs[version])
|
|
|
|
self.configs: dict = configs.get("custom", deepcopy(self.default_configs[version]))
|
|
|
|
self.configs: dict = configs.get("custom", deepcopy(self.default_configs[version]))
|
|
|
|