This commit is contained in:
unknown
2025-12-19 19:50:08 -08:00
parent acf2b1d301
commit f5ab215e6f

View File

@@ -38,6 +38,7 @@ def loaded_tts_size_gb(loaded_tts:Dict[str, Module])->float:
def load_xtts_builtin_list()->None:
try:
global xtts_builtin_speakers_list
if not xtts_builtin_speakers_list:
self.speakers_path = hf_hub_download(repo_id=models[TTS_ENGINES['XTTSv2']]['internal']['repo'], filename='speakers_xtts.pth', cache_dir=tts_dir)
xtts_builtin_speakers_list = torch.load(self.speakers_path, weights_only=False)