Add Vietnamese support to XTTS configurations and tokenizer

This commit is contained in:
Thinh Le 2024-04-05 17:08:27 +07:00
parent dbf1a08a0d
commit b6a6bf122c
2 changed files with 3 additions and 0 deletions

View File

@ -89,6 +89,7 @@ class XttsConfig(BaseTTSConfig):
"ko",
"ja",
"hi",
"vi",
]
)

View File

@ -639,6 +639,8 @@ class VoiceBpeTokenizer:
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