diff --git a/TTS/tts/configs/xtts_config.py b/TTS/tts/configs/xtts_config.py index bbf048e1ab..a0766d425c 100644 --- a/TTS/tts/configs/xtts_config.py +++ b/TTS/tts/configs/xtts_config.py @@ -89,6 +89,7 @@ class XttsConfig(BaseTTSConfig): "ko", "ja", "hi", + "vi", ] ) diff --git a/TTS/tts/layers/xtts/tokenizer.py b/TTS/tts/layers/xtts/tokenizer.py index 1a3cc47aaf..be33fff35b 100644 --- a/TTS/tts/layers/xtts/tokenizer.py +++ b/TTS/tts/layers/xtts/tokenizer.py @@ -611,6 +611,7 @@ def __init__(self, vocab_file=None): "ja": 71, "hu": 224, "ko": 95, + "vi": 250, } @cached_property @@ -639,6 +640,8 @@ def preprocess_text(self, txt, lang): elif lang == "hi": # @manmay will implement this txt = basic_cleaners(txt) + elif lang == "vi": + txt = basic_cleaners(txt) else: raise NotImplementedError(f"Language '{lang}' is not supported.") return txt