|
@@ -257,8 +257,13 @@ public class IvrSession {
|
|
|
waitForTtsChannelOpen();
|
|
waitForTtsChannelOpen();
|
|
|
|
|
|
|
|
if(streamTtsChannelOpened) {
|
|
if(streamTtsChannelOpened) {
|
|
|
- logger.info("{} stream tts channel has been opened, send close tts command. ", getTraceId());
|
|
|
|
|
- EslConnectionUtil.sendExecuteCommand(ttsProvider + "_resume", "<StopSynthesis/>", sessionId);
|
|
|
|
|
|
|
+ if (TtsProvider.TX_TTS1.equalsIgnoreCase(ttsProvider)) {
|
|
|
|
|
+ logger.info("{} stream tts channel has been opened, send close tts command. ", getTraceId());
|
|
|
|
|
+ EslConnectionUtil.sendExecuteCommand(ttsProvider + "_resume", "<StopSynthesis/>", sessionId);
|
|
|
|
|
+ } else {
|
|
|
|
|
+ logger.info("{} stream tts channel has been opened, skip stop mark for provider={}, rely on natural stream completion.",
|
|
|
|
|
+ getTraceId(), ttsProvider);
|
|
|
|
|
+ }
|
|
|
}else{
|
|
}else{
|
|
|
logger.warn("{} stream tts channel has not opened yet. ", getTraceId());
|
|
logger.warn("{} stream tts channel has not opened yet. ", getTraceId());
|
|
|
}
|
|
}
|