去掉过滤语句最后标点符号
This commit is contained in:
parent
ec593759f7
commit
aa5f4d1d15
@ -214,12 +214,12 @@ public class BaseWebSocketService {
|
|||||||
text.startsWith(";") ||
|
text.startsWith(";") ||
|
||||||
//text.startsWith("《") ||
|
//text.startsWith("《") ||
|
||||||
text.startsWith(" ")||
|
text.startsWith(" ")||
|
||||||
text.endsWith("?")
|
text.startsWith("?")
|
||||||
){
|
){
|
||||||
//标点符号起始会导致合成的声音第一句话有杂音
|
//标点符号起始会导致合成的声音第一句话有杂音
|
||||||
text = text.substring(1);
|
text = text.substring(1);
|
||||||
}
|
}
|
||||||
if(text.endsWith(",") ||
|
/*if(text.endsWith(",") ||
|
||||||
text.endsWith("。") ||
|
text.endsWith("。") ||
|
||||||
text.endsWith(":") ||
|
text.endsWith(":") ||
|
||||||
text.endsWith(";") ||
|
text.endsWith(";") ||
|
||||||
@ -228,7 +228,7 @@ public class BaseWebSocketService {
|
|||||||
text.endsWith("?")
|
text.endsWith("?")
|
||||||
){
|
){
|
||||||
text = text.substring(0, text.length() - 1);
|
text = text.substring(0, text.length() - 1);
|
||||||
}
|
}*/
|
||||||
return text;
|
return text;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user