This commit is contained in:
unknown
2025-12-24 08:05:12 -08:00
parent 3050bc42fa
commit 8584e74810

View File

@@ -166,7 +166,7 @@ class Bark(TTSUtils, TTSRegistry, name='bark'):
pth_voice_dir = os.path.join(bark_dir, speaker)
pth_voice_file = os.path.join(bark_dir, speaker, f'{speaker}.pth')
tts_dyn_params = {}
if speaker not in self.engine.speakers:
if speaker not in self.engine.speakers or not os.path.exists(pth_voice_file):
tts_dyn_params['speaker_wav'] = self.params['voice_path']
fine_tuned_params = {
key.removeprefix("bark_"): cast_type(self.session[key])