Spaces:
Runtime error
Runtime error
lengyue233
commited on
Commit
•
5dfb7ea
1
Parent(s):
cc26db1
Update fish_speech/text/spliter.py
Browse files
fish_speech/text/spliter.py
CHANGED
@@ -71,9 +71,9 @@ def split_text(text, length):
|
|
71 |
|
72 |
texts = [text]
|
73 |
texts = map(protect_float, texts)
|
74 |
-
texts = break_text(texts, length, {".", "!", "?"})
|
75 |
texts = map(unprotect_float, texts)
|
76 |
-
texts = break_text(texts, length, {","})
|
77 |
texts = break_text(texts, length, {" "})
|
78 |
texts = list(break_text_by_length(texts, length))
|
79 |
|
|
|
71 |
|
72 |
texts = [text]
|
73 |
texts = map(protect_float, texts)
|
74 |
+
texts = break_text(texts, length, {".", "!", "?", "。", "!", "?"})
|
75 |
texts = map(unprotect_float, texts)
|
76 |
+
texts = break_text(texts, length, {",", ","})
|
77 |
texts = break_text(texts, length, {" "})
|
78 |
texts = list(break_text_by_length(texts, length))
|
79 |
|