Skip to content

Commit

Permalink
Add Vietnamese support to XTTS configurations and tokenizer
Browse files Browse the repository at this point in the history
  • Loading branch information
thinhlpg committed Apr 5, 2024
1 parent dbf1a08 commit b6a6bf1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions TTS/tts/configs/xtts_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ class XttsConfig(BaseTTSConfig):
"ko",
"ja",
"hi",
"vi",
]
)

Expand Down
2 changes: 2 additions & 0 deletions TTS/tts/layers/xtts/tokenizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,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
Expand Down

0 comments on commit b6a6bf1

Please sign in to comment.