From 27358f1e2bdcfa5e93457883fbf3ee00bfa8eae3 Mon Sep 17 00:00:00 2001 From: XTer Date: Tue, 19 Mar 2024 17:08:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=BA=86=E4=B8=80=E4=BA=9B?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GPT_SoVITS/TTS_infer_pack/text_segmentation_method.py | 2 +- Inference | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/GPT_SoVITS/TTS_infer_pack/text_segmentation_method.py b/GPT_SoVITS/TTS_infer_pack/text_segmentation_method.py index f6b871cb..29ef8541 100644 --- a/GPT_SoVITS/TTS_infer_pack/text_segmentation_method.py +++ b/GPT_SoVITS/TTS_infer_pack/text_segmentation_method.py @@ -246,8 +246,8 @@ def auto_cut(inp, max_length=30): final_items = [] for item in items: final_items+=process_commas(item,max_length=max_length).split("\n") + final_items = [item for item in final_items if item.strip() and not (len(item.strip())==2 and item[0] in "?!,,。?!~:.") and not item.isspace() and not item in "?!,,。?!~:."] - final_items = [item for item in final_items if item.strip() and not (len(item.strip()) == 1 and item.strip() in "?!,,。?!~:")] return "\n".join(final_items) diff --git a/Inference b/Inference index fab890cf..2de410df 160000 --- a/Inference +++ b/Inference @@ -1 +1 @@ -Subproject commit fab890cf7c4543665bce47181115ad39cd6f518a +Subproject commit 2de410df8b8a0725dbda04105509457f0163c18e