From 3b72da4213fdf054b944224829f90ac9a94b2a4d Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Wed, 25 Oct 2006 16:17:54 +0000 Subject: [PATCH] add pause in tts git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3198 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/asr_tts/mod_cepstral/mod_cepstral.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/mod/asr_tts/mod_cepstral/mod_cepstral.c b/src/mod/asr_tts/mod_cepstral/mod_cepstral.c index 42b06bd9e8..f88acab594 100644 --- a/src/mod/asr_tts/mod_cepstral/mod_cepstral.c +++ b/src/mod/asr_tts/mod_cepstral/mod_cepstral.c @@ -216,14 +216,6 @@ static switch_status_t cepstral_speech_feed_tts(switch_speech_handle_t *sh, char cepstral->tts_stream = NULL; - if (cepstral->audio_buffer) { - switch_byte_t data[1280]; - memset(data, 255, sizeof(data)); - switch_mutex_lock(cepstral->audio_lock); - switch_buffer_write(cepstral->audio_buffer, data, sizeof(data)); - switch_mutex_unlock(cepstral->audio_lock); - } - if (!strncasecmp(text, fp, len)) { text += len; if (switch_strlen_zero(text)) { @@ -234,6 +226,8 @@ static switch_status_t cepstral_speech_feed_tts(switch_speech_handle_t *sh, char if (switch_strlen_zero(text)) { return SWITCH_STATUS_FALSE; } + + swift_port_speak_text(cepstral->port, "", 0, NULL, &cepstral->tts_stream, NULL); swift_port_speak_text(cepstral->port, text, 0, NULL, &cepstral->tts_stream, NULL); }