Refactor: moved text/cleaner.py to style_bert_vits2/text_processing/

This commit is contained in:
tsukumi
2024-03-07 00:24:28 +00:00
parent 89825e68d8
commit e826faf62e
7 changed files with 376 additions and 351 deletions

View File

@@ -369,7 +369,7 @@ def normalize_numbers(text):
return text
def text_normalize(text):
def normalize_text(text):
text = normalize_numbers(text)
text = replace_punctuation(text)
text = re.sub(r"([,;.\?\!])([\w])", r"\1 \2", text)