From 9098497272d5803bae46cbaf5154cf2ba48f6866 Mon Sep 17 00:00:00 2001 From: root Date: Tue, 17 Jun 2025 17:48:04 +0800 Subject: [PATCH] =?UTF-8?q?Fix=20the=20bug=20that=20=E5=97=AF=20cannot=20b?= =?UTF-8?q?e=20synthesized.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- indextts/utils/front.py | 1 + 1 file changed, 1 insertion(+) diff --git a/indextts/utils/front.py b/indextts/utils/front.py index e6c2e44..93da183 100644 --- a/indextts/utils/front.py +++ b/indextts/utils/front.py @@ -111,6 +111,7 @@ class TextNormalizer: self.en_normalizer = NormalizerEn(overwrite_cache=False) def normalize(self, text: str) -> str: + text = text.replace("嗯", "恩").replace("呣", "母") if not self.zh_normalizer or not self.en_normalizer: print("Error, text normalizer is not initialized !!!") return ""