Update synthesizer.py

This commit is contained in:
Moctar Haiz 2024-04-07 19:11:05 +02:00 committed by GitHub
parent 4b0b906817
commit f0880d61f6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -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"
):