mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-10-07 15:19:59 +08:00
修改了默认切分长度
This commit is contained in:
parent
df213e6aee
commit
29465e2ae0
@ -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
|
# 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")
|
@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]):
|
# if not re.search(r'[^\w\s]', inp[-1]):
|
||||||
# inp += '。'
|
# inp += '。'
|
||||||
inp = inp.strip("\n")
|
inp = inp.strip("\n")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user