From f0880d61f610c8ad3b4d3019a949912ffd61feab Mon Sep 17 00:00:00 2001 From: Moctar Haiz Date: Sun, 7 Apr 2024 19:11:05 +0200 Subject: [PATCH] Update synthesizer.py --- TTS/utils/synthesizer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TTS/utils/synthesizer.py b/TTS/utils/synthesizer.py index 824b69b5..960b20f4 100644 --- a/TTS/utils/synthesizer.py +++ b/TTS/utils/synthesizer.py @@ -336,7 +336,7 @@ class Synthesizer(nn.Module): # handle multi-lingual language_id = None if self.tts_languages_file or ( - hasattr(self.tts_model, "language_manager") + hasattr(self.tts_model, "language_manager") and self.tts_model.language_manager is not None and not self.tts_config.model == "xtts" ):