From 92fd88ddaaf42ed1ce258d318817515f09bd6e27 Mon Sep 17 00:00:00 2001 From: "david.95" Date: Wed, 16 Nov 2022 21:50:25 +0800 Subject: [PATCH] add double byte normalization char, test=tts --- .../t2s/frontend/zh_normalization/text_normlization.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/paddlespeech/t2s/frontend/zh_normalization/text_normlization.py b/paddlespeech/t2s/frontend/zh_normalization/text_normlization.py index 8f8e3b07d..d83e8a4dd 100644 --- a/paddlespeech/t2s/frontend/zh_normalization/text_normlization.py +++ b/paddlespeech/t2s/frontend/zh_normalization/text_normlization.py @@ -73,7 +73,8 @@ class TextNormalizer(): def _post_replace(self, sentence: str) -> str: sentence = sentence.replace('/', '每') - sentence = sentence.replace('~', '至') + sentence = sentence.replace('~', '至').replace('~','至') + return sentence