Commit da406147 authored by alex yao's avatar alex yao

feat: TTS 异常抛出处理

parent 71593f44
......@@ -139,7 +139,10 @@ public class TextToSpeechTencentHandler extends AbstractWsHandler {
@Override
public void onFail(SpeechSynthesisResponse response) {
logger.warn("onFail:{}", response.getMessage());
WebsocketException websocketException = new WebsocketException(response.getMessage());
webSocket.send(websocketException.toString());
webSocket.close();
throw websocketException;
}
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment