From 4e183c61df791bbac594aabdf40875b502e84249 Mon Sep 17 00:00:00 2001 From: Enno Hermann Date: Wed, 20 Dec 2023 15:18:01 +0100 Subject: [PATCH] fix(api): handle missing attribute in is_multilingual --- TTS/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TTS/api.py b/TTS/api.py index f741f65f..abe9c56b 100644 --- a/TTS/api.py +++ b/TTS/api.py @@ -97,7 +97,7 @@ class TTS(nn.Module): isinstance(self.model_name, str) and "xtts" in self.model_name or self.config - and ("xtts" in self.config.model or len(self.config.languages) > 1) + and ("xtts" in self.config.model or "languages" in self.config and len(self.config.languages) > 1) ): return True if hasattr(self.synthesizer.tts_model, "language_manager") and self.synthesizer.tts_model.language_manager: