|
|
@ -304,8 +304,8 @@ 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")
|
|
|
|
version = configs.get("version", "v2").lower()
|
|
|
|
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]))
|
|
|
|
|
|
|
|
|
|
|
|