From 6520951c749ab405eb85dfab9627f273c83ef560 Mon Sep 17 00:00:00 2001 From: Cosmo Clara Date: Fri, 18 Oct 2024 01:07:25 +0800 Subject: [PATCH] Update english.py --- GPT_SoVITS/text/english.py | 1 + 1 file changed, 1 insertion(+) diff --git a/GPT_SoVITS/text/english.py b/GPT_SoVITS/text/english.py index bd5612e0..1b85561b 100644 --- a/GPT_SoVITS/text/english.py +++ b/GPT_SoVITS/text/english.py @@ -237,6 +237,7 @@ def text_normalize(text): text = normalize_numbers(text) text = ''.join(char for char in unicodedata.normalize('NFD', text) if unicodedata.category(char) != 'Mn') # Strip accents + text = re.sub("%", " percent", text) # 将 % 转化为 “percent” text = re.sub("[^ A-Za-z'.,?!\-]", "", text) text = re.sub(r"(?i)i\.e\.", "that is", text) text = re.sub(r"(?i)e\.g\.", "for example", text)