fix(bark): add missing argument for load_voice()

Fixes https://github.com/coqui-ai/TTS/issues/2795
This commit is contained in:
Enno Hermann 2024-05-15 22:56:28 +02:00
parent 63bfb9f8aa
commit 59a6c9fdf2
1 changed files with 1 additions and 1 deletions

View File

@ -174,7 +174,7 @@ class Bark(BaseTTS):
if voice_dir is not None:
voice_dirs = [voice_dir]
try:
_ = load_voice(speaker_id, voice_dirs)
_ = load_voice(self, speaker_id, voice_dirs)
except (KeyError, FileNotFoundError):
output_path = os.path.join(voice_dir, speaker_id + ".npz")
os.makedirs(voice_dir, exist_ok=True)