From 395f97a176b6056e8e236688a27c897f1ab749c9 Mon Sep 17 00:00:00 2001 From: Cosmo Clara Date: Fri, 18 Oct 2024 01:03:28 +0800 Subject: [PATCH] Update text_segmentation_method.py 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 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GPT_SoVITS/TTS_infer_pack/text_segmentation_method.py b/GPT_SoVITS/TTS_infer_pack/text_segmentation_method.py index 396c61f6..4ee0cfb4 100644 --- a/GPT_SoVITS/TTS_infer_pack/text_segmentation_method.py +++ b/GPT_SoVITS/TTS_infer_pack/text_segmentation_method.py @@ -135,7 +135,7 @@ def cut3(inp): @register_method("cut4") def cut4(inp): inp = inp.strip("\n") - opts = ["%s" % item for item in inp.strip(".").split(".")] + opts = re.split(r'(?