Lengyue před 1 rokem
rodič
revize
57f6be0f3e
1 změnil soubory, kde provedl 2 přidání a 2 odebrání
  1. 2 2
      fish_speech/text/spliter.py

+ 2 - 2
fish_speech/text/spliter.py

@@ -71,9 +71,9 @@ def split_text(text, length):
 
     texts = [text]
     texts = map(protect_float, texts)
-    texts = break_text(texts, length, {".", "!", "?"})
+    texts = break_text(texts, length, {".", "!", "?", "。", "!", "?"})
     texts = map(unprotect_float, texts)
-    texts = break_text(texts, length, {","})
+    texts = break_text(texts, length, {",", ","})
     texts = break_text(texts, length, {" "})
     texts = list(break_text_by_length(texts, length))