From c315203dcd7f108132eb737c73733ed48c23928a Mon Sep 17 00:00:00 2001 From: Cosmo Clara Date: Thu, 31 Oct 2024 18:32:10 +0800 Subject: [PATCH] Update TextPreprocessor.py MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 删除了英文预处理的过滤器 --- GPT_SoVITS/TTS_infer_pack/TextPreprocessor.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/GPT_SoVITS/TTS_infer_pack/TextPreprocessor.py b/GPT_SoVITS/TTS_infer_pack/TextPreprocessor.py index 207913d0..1aa12bc5 100644 --- a/GPT_SoVITS/TTS_infer_pack/TextPreprocessor.py +++ b/GPT_SoVITS/TTS_infer_pack/TextPreprocessor.py @@ -119,12 +119,7 @@ class TextPreprocessor: def get_phones_and_bert(self, text:str, language:str, version:str, final:bool=False): if language in {"en", "all_zh", "all_ja", "all_ko", "all_yue"}: language = language.replace("all_","") - if language == "en": - LangSegment.setfilters(["en"]) - formattext = " ".join(tmp["text"] for tmp in LangSegment.getTexts(text)) - else: - # 因无法区别中日韩文汉字,以用户输入为准 - formattext = text + formattext = text while " " in formattext: formattext = formattext.replace(" ", " ") if language == "zh":