[Freeswitch-svn] [commit] r3664 - freeswitch/trunk/src/mod/asr_tts/mod_cepstral
Freeswitch SVN
anthm at freeswitch.org
Thu Dec 14 17:48:32 EST 2006
Author: anthm
Date: Thu Dec 14 17:48:32 2006
New Revision: 3664
Modified:
freeswitch/trunk/src/mod/asr_tts/mod_cepstral/mod_cepstral.c
Log:
cepstral issue
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 Thu Dec 14 17:48:32 2006
@@ -218,12 +218,15 @@
}
swift_port_speak_file(cepstral->port, text, NULL, &cepstral->tts_stream, NULL);
} else {
+ char *to_say;
if (switch_strlen_zero(text)) {
return SWITCH_STATUS_FALSE;
}
- swift_port_speak_text(cepstral->port, "<break time=\"500ms\"/>", 0, NULL, &cepstral->tts_stream, NULL);
- swift_port_speak_text(cepstral->port, text, 0, NULL, &cepstral->tts_stream, NULL);
+ if ((to_say = switch_mprintf("<break time=\"500ms\"/> %s <break time=\"500ms\"/>", text))) {
+ swift_port_speak_text(cepstral->port, to_say, 0, NULL, &cepstral->tts_stream, NULL);
+ switch_safe_free(to_say);
+ }
}
return SWITCH_STATUS_SUCCESS;
More information about the Freeswitch-svn
mailing list