mirror of
https://github.com/RVC-Boss/GPT-SoVITS.git
synced 2025-10-07 07:02:57 +08:00
make cut1 great again
This commit is contained in:
parent
8d25353835
commit
32281f999b
@ -337,15 +337,7 @@ def cut1(language_splits):
|
||||
sentences.append({'lang': lang_block['lang'], 'text': lang_block['text']})
|
||||
else :
|
||||
for i, part in enumerate(text_parts):
|
||||
if i == 0:
|
||||
sentences.append({'lang': lang_block['lang'], 'text': part + '.'})
|
||||
if part and not part.isspace():
|
||||
sentences_count += 1
|
||||
if sentences_count >=4:
|
||||
sentences_list.append(sentences)
|
||||
sentences = []
|
||||
sentences_count = 0
|
||||
elif i < len(text_parts) - 1:
|
||||
if i < len(text_parts) - 1:
|
||||
sentences.append({'lang': lang_block['lang'], 'text': part + '.'})
|
||||
if part and not part.isspace():
|
||||
sentences_count += 1
|
||||
|
Loading…
x
Reference in New Issue
Block a user