From 08cb33f3ef6eebe8820aa357064e8c1d8bcea6f3 Mon Sep 17 00:00:00 2001 From: Shihua Ma Date: Sun, 23 Mar 2025 09:15:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=A0=E6=B3=95=E5=88=87?= =?UTF-8?q?=E5=88=86=E8=8B=B1=E6=96=87=E5=AF=BC=E8=87=B4=20TTS=20=E8=B6=85?= =?UTF-8?q?=E6=97=B6=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- main/xiaozhi-server/core/connection.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/xiaozhi-server/core/connection.py b/main/xiaozhi-server/core/connection.py index c0db5eb88..06c018c78 100644 --- a/main/xiaozhi-server/core/connection.py +++ b/main/xiaozhi-server/core/connection.py @@ -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)