修复无法切分英文导致 TTS 超时错误

This commit is contained in:
Shihua Ma 2025-03-23 09:15:19 +08:00 committed by GitHub
parent d88559f5de
commit 08cb33f3ef
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -382,7 +382,7 @@ class ConnectionHandler:
current_text = full_text[processed_chars:] # 从未处理的位置开始
# 查找最后一个有效标点
punctuations = ("。", "?", "!", ";", ":")
punctuations = ("。", "?", "!", ";", ":", ".", "?", "!", ";", ":")
last_punct_pos = -1
for punct in punctuations:
pos = current_text.rfind(punct)