소스 검색

fix spliter

Lengyue 1 년 전
부모
커밋
57f6be0f3e
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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))