Update xtts.py

This commit is contained in:
Moctar Haiz 2024-04-08 21:18:39 +02:00 committed by GitHub
parent 729463cd62
commit 9e6788bf80
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

@ -766,6 +766,7 @@ class Xtts(BaseTTS):
self.language_manager = LanguageManager(config)
self.speaker_manager = None
if speaker_file_path is not None and os.path.exists(speaker_file_path):
self.speaker_manager = SpeakerManager(speaker_file_path)
if os.path.exists(vocab_path):
self.tokenizer = VoiceBpeTokenizer(vocab_file=vocab_path)