Closed eginhard closed 7 months ago
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You might also look our discussion channels.
This still happening. v0.22.0
self.config.languages is calling in a circular fashion so len(self.config.languages) > 1 on line 102 fails.
the method should be:
@property
def is_multi_lingual(self):
# Not sure what sets this to None, but applied a fix to prevent crashing.
if hasattr(self.synthesizer.tts_model, "language_manager") and self.synthesizer.tts_model.language_manager:
return self.synthesizer.tts_model.language_manager.num_languages > 1
if (
isinstance(self.model_name, str)
and "xtts" in self.model_name
or self.config
and "xtts" in self.config.model
):
return True
return False
It's fixed in our fork: https://github.com/idiap/coqui-ai-TTS
Describe the bug
Synthesis from monolingual local models fails because of missing config attribute.
To Reproduce
The last line results in the following error:
Expected behavior
No response
Logs
No response
Environment
Additional context
The error message is somewhat confusing because
is_multi_lingual
is defined, but one variable used in that property function isNone
in certain cases. More details: https://github.com/pytorch/pytorch/issues/13981