Skip to content

Commit

Permalink
minor change
Browse files Browse the repository at this point in the history
  • Loading branch information
BeautyyuYanli committed Jun 7, 2024
1 parent a34331e commit 55a3be0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "GPT-SoVITS-Infer"
version = "0.2.1"
version = "0.2.2"
description = "Inference code for GPT-SoVITS"
authors = [
{name = "Yanli",email = "[email protected]"},
Expand All @@ -21,7 +21,7 @@ dependencies = [
"wordsegment>=1.3.1",
"nltk>=3.8.1",
]
requires-python = ">=3.10"
requires-python = ">=3.10, <3.12"
readme = "README.md"
license = {text = "MIT"}

Expand Down
4 changes: 2 additions & 2 deletions src/gpt_sovits/infer/text_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ def cut5(inp: str):
return mergeitems


def merge_short_texts(texts: List[str], threshold: int = 6):
def merge_short_texts(texts: List[str], threshold: int = 32):
"""Merge short texts to longer ones. Texts are generated by cut5."""
result: List[str] = []
text = ""
Expand All @@ -61,5 +61,5 @@ def clean_and_cut_text(text: str) -> List[str]:
for merged in merge_short_texts(cut5(line))
if not all(char in splits for char in merged.strip())
]
texts = ["." + text if len(text) < 5 else text for text in texts]
texts = [("." + text) if len(text) < 5 else text for text in texts]
return texts

0 comments on commit 55a3be0

Please sign in to comment.