From 5627adefb1826894103f79bc7cad2a46f348a52a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E6=82=A6?= Date: Thu, 19 Dec 2024 21:26:30 +0800 Subject: [PATCH] Update frontend.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # NOTE(xcsong): 和默认参数不一致时,必须重新构图,要重新构图请务必指定 `overwrite_cache=True` # When the parameters differ from the defaults, it is mandatory to re-compose. To re-compose, please ensure you specify `overwrite_cache=True`. https://github.com/wenet-e2e/WeTextProcessing --- cosyvoice/cli/frontend.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cosyvoice/cli/frontend.py b/cosyvoice/cli/frontend.py index 1c1c64c..a67073f 100644 --- a/cosyvoice/cli/frontend.py +++ b/cosyvoice/cli/frontend.py @@ -69,7 +69,7 @@ class CosyVoiceFrontEnd: 'failed to initialize ttsfrd resource' self.frd.set_lang_type('pinyinvg') else: - self.zh_tn_model = ZhNormalizer(remove_erhua=False, full_to_half=False) + self.zh_tn_model = ZhNormalizer(remove_erhua=False, full_to_half=False,overwrite_cache=True) self.en_tn_model = EnNormalizer() def _extract_text_token(self, text):