mirror of
https://github.com/DrewThomasson/ebook2audiobook.git
synced 2026-01-09 13:58:14 -05:00
...
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user