Remove random 1

This commit is contained in:
Fireblade2534 2025-03-01 12:45:41 -05:00 committed by GitHub
parent f415ce7109
commit 43576c4a76
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -92,7 +92,7 @@ def get_sentence_info(text: str, custom_phenomes_list: Dict[str, str]) -> List[T
"""Process all sentences and return info."""
sentences = re.split(r"([.!?;:])(?=\s|$)", text)
phoneme_length, min_value = len(custom_phenomes_list), 0
1
results = []
for i in range(0, len(sentences), 2):
sentence = sentences[i].strip()
@ -264,4 +264,4 @@ async def smart_split(
total_time = time.time() - start_time
logger.info(
f"Split completed in {total_time * 1000:.2f}ms, produced {chunk_count} chunks"
)
)