From aa5f4d1d1588f5a59c741b9787184fabbbeefb18 Mon Sep 17 00:00:00 2001 From: wulin Date: Sat, 28 Oct 2023 14:26:39 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=BB=E6=8E=89=E8=BF=87=E6=BB=A4=E8=AF=AD?= =?UTF-8?q?=E5=8F=A5=E6=9C=80=E5=90=8E=E6=A0=87=E7=82=B9=E7=AC=A6=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../iot/box/websocket/api/service/BaseWebSocketService.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/iot-modules/iot-box-websocket-api/src/main/java/com/qiuguo/iot/box/websocket/api/service/BaseWebSocketService.java b/iot-modules/iot-box-websocket-api/src/main/java/com/qiuguo/iot/box/websocket/api/service/BaseWebSocketService.java index 9473280..a3d98ad 100644 --- a/iot-modules/iot-box-websocket-api/src/main/java/com/qiuguo/iot/box/websocket/api/service/BaseWebSocketService.java +++ b/iot-modules/iot-box-websocket-api/src/main/java/com/qiuguo/iot/box/websocket/api/service/BaseWebSocketService.java @@ -214,12 +214,12 @@ public class BaseWebSocketService { text.startsWith(";") || //text.startsWith("《") || text.startsWith(" ")|| - text.endsWith("?") + text.startsWith("?") ){ //标点符号起始会导致合成的声音第一句话有杂音 text = text.substring(1); } - if(text.endsWith(",") || + /*if(text.endsWith(",") || text.endsWith("。") || text.endsWith(":") || text.endsWith(";") || @@ -228,7 +228,7 @@ public class BaseWebSocketService { text.endsWith("?") ){ text = text.substring(0, text.length() - 1); - } + }*/ return text; }