Skip to content

Commit

Permalink
Simple text cleaner for "hi"
Browse files Browse the repository at this point in the history
  • Loading branch information
erogol committed Nov 24, 2023
1 parent 6dd43b0 commit 3206513
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions TTS/tts/layers/xtts/tokenizer.py
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,9 @@ def preprocess_text(self, txt, lang):
txt = korean_transliterate(txt)
elif lang == "ja":
txt = japanese_cleaners(txt, self.katsu)
elif lang == "hi":
# @manmay will implement this
txt = basic_cleaners(txt)
else:
raise NotImplementedError(f"Language '{lang}' is not supported.")
return txt
Expand Down

0 comments on commit 3206513

Please sign in to comment.