From 729463cd62aaeafe161e7138550a405acc40e61b Mon Sep 17 00:00:00 2001 From: Moctar Haiz Date: Mon, 8 Apr 2024 21:17:36 +0200 Subject: [PATCH] Update xtts.py --- TTS/tts/models/xtts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TTS/tts/models/xtts.py b/TTS/tts/models/xtts.py index f95ca8da..b33c45a2 100644 --- a/TTS/tts/models/xtts.py +++ b/TTS/tts/models/xtts.py @@ -759,7 +759,7 @@ class Xtts(BaseTTS): model_path = checkpoint_path or os.path.join(checkpoint_dir, "model.pth") vocab_path = vocab_path or os.path.join(checkpoint_dir, "vocab.json") - + if speaker_file_path is None and checkpoint_dir is not None: speaker_file_path = os.path.join(checkpoint_dir, "speakers_xtts.pth")