去掉过滤语句最后标点符号

This commit is contained in:
wulin 2023-10-28 14:26:39 +08:00
parent ec593759f7
commit aa5f4d1d15

View File

@ -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;
}