mirror of https://github.com/coqui-ai/TTS.git
fix(bark): add missing argument for load_voice()
Fixes https://github.com/coqui-ai/TTS/issues/2795
This commit is contained in:
parent
63bfb9f8aa
commit
59a6c9fdf2
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue