[Freeswitch-svn] [commit] r3198 - freeswitch/trunk/src/mod/asr_tts/mod_cepstral
Freeswitch SVN
anthm at freeswitch.org
Wed Oct 25 12:17:54 EDT 2006
Author: anthm
Date: Wed Oct 25 12:17:54 2006
New Revision: 3198
Modified:
freeswitch/trunk/src/mod/asr_tts/mod_cepstral/mod_cepstral.c
Log:
add pause in tts
Modified: freeswitch/trunk/src/mod/asr_tts/mod_cepstral/mod_cepstral.c
==============================================================================
--- freeswitch/trunk/src/mod/asr_tts/mod_cepstral/mod_cepstral.c (original)
+++ freeswitch/trunk/src/mod/asr_tts/mod_cepstral/mod_cepstral.c Wed Oct 25 12:17:54 2006
@@ -216,14 +216,6 @@
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 @@
if (switch_strlen_zero(text)) {
return SWITCH_STATUS_FALSE;
}
+
+ swift_port_speak_text(cepstral->port, "<break time=\"600ms\"/>", 0, NULL, &cepstral->tts_stream, NULL);
swift_port_speak_text(cepstral->port, text, 0, NULL, &cepstral->tts_stream, NULL);
}
More information about the Freeswitch-svn
mailing list