diff --git a/TTS/tts/layers/xtts/speaker_manager.py b/TTS/tts/layers/xtts/xtts_manager.py similarity index 55% rename from TTS/tts/layers/xtts/speaker_manager.py rename to TTS/tts/layers/xtts/xtts_manager.py index a7d89d18ba..2de5ff14c7 100644 --- a/TTS/tts/layers/xtts/speaker_manager.py +++ b/TTS/tts/layers/xtts/xtts_manager.py @@ -7,3 +7,12 @@ def __init__(self, speaker_file_path=None): @property def name_to_id(self): return self.speakers.keys() + + +class LanguageManager(): + def __init__(self, config): + self.langs = config["languages"] + + @property + def name_to_id(self): + return self.langs