mirror of https://github.com/coqui-ai/TTS.git
Add Vietnamese support to XTTS configurations and tokenizer
This commit is contained in:
parent
dbf1a08a0d
commit
b6a6bf122c
|
@ -89,6 +89,7 @@ class XttsConfig(BaseTTSConfig):
|
||||||
"ko",
|
"ko",
|
||||||
"ja",
|
"ja",
|
||||||
"hi",
|
"hi",
|
||||||
|
"vi",
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -639,6 +639,8 @@ class VoiceBpeTokenizer:
|
||||||
elif lang == "hi":
|
elif lang == "hi":
|
||||||
# @manmay will implement this
|
# @manmay will implement this
|
||||||
txt = basic_cleaners(txt)
|
txt = basic_cleaners(txt)
|
||||||
|
elif lang == "vi":
|
||||||
|
txt = basic_cleaners(txt)
|
||||||
else:
|
else:
|
||||||
raise NotImplementedError(f"Language '{lang}' is not supported.")
|
raise NotImplementedError(f"Language '{lang}' is not supported.")
|
||||||
return txt
|
return txt
|
||||||
|
|
Loading…
Reference in New Issue