最后一个标点不调用算法语音合成
This commit is contained in:
parent
4989460ee5
commit
f98440eae9
@ -291,6 +291,12 @@ public class BaseWebSocketService {
|
||||
sendMsg(baseSession, JSONObject.toJSONString(boxMessageResp));
|
||||
return Mono.just("");
|
||||
}
|
||||
try {
|
||||
//为了算法按顺序收到
|
||||
Thread.sleep(80);
|
||||
}catch (Exception e){
|
||||
log.info("休眠异常{}", e);
|
||||
}
|
||||
return audioService.getAudioUrl(boxMessageResp.getText() + "。").map(s ->{
|
||||
|
||||
boxMessageResp.setAudio(s);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user