Skip to content

Commit

Permalink
fix spliter
Browse files Browse the repository at this point in the history
  • Loading branch information
leng-yue committed Sep 10, 2024
1 parent 031599f commit 57f6be0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fish_speech/text/spliter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit 57f6be0

Please sign in to comment.