From f6d0165843b4d6cfe2f7805499687333e440318a Mon Sep 17 00:00:00 2001 From: Cosmo Clara Date: Wed, 11 Dec 2024 02:44:37 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E9=99=A4=E4=B8=8D=E5=BF=85=E8=A6=81?= =?UTF-8?q?=E7=9A=84=E8=BF=87=E6=BB=A4=E5=99=A8=E8=AE=A9=E5=89=8D=E7=AB=AF?= =?UTF-8?q?=E5=A4=84=E7=90=86=E9=83=A8=E5=88=86=E6=AD=A3=E5=B8=B8=E5=B7=A5?= =?UTF-8?q?=E4=BD=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 去除不必要的过滤器让前端处理部分得以在正常(非fast)infer下正常工作 --- GPT_SoVITS/inference_webui.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/GPT_SoVITS/inference_webui.py b/GPT_SoVITS/inference_webui.py index 5aff4ae5..12abc8f0 100644 --- a/GPT_SoVITS/inference_webui.py +++ b/GPT_SoVITS/inference_webui.py @@ -307,12 +307,7 @@ from text import chinese def get_phones_and_bert(text,language,version,final=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":