From 29465e2ae0e683f7d2798877ee9865249494b087 Mon Sep 17 00:00:00 2001 From: XTer Date: Mon, 11 Mar 2024 17:42:03 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=88=87=E5=88=86=E9=95=BF=E5=BA=A6?= 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 e3e27bbb..f8211663 100644 --- a/GPT_SoVITS/TTS_infer_pack/text_segmentation_method.py +++ b/GPT_SoVITS/TTS_infer_pack/text_segmentation_method.py @@ -159,7 +159,7 @@ def cut5(inp): # contributed by https://github.com/X-T-E-R/GPT-SoVITS-Inference/blob/main/GPT_SoVITS/TTS_infer_pack/text_segmentation_method.py @register_method("auto_cut") -def auto_cut(inp, max_length=60): +def auto_cut(inp, max_length=30): # if not re.search(r'[^\w\s]', inp[-1]): # inp += '。' inp = inp.strip("\n")