[Freeswitch-svn] [commit] r12137 - freeswitch/trunk/src/mod/asr_tts/mod_cepstral
FreeSWITCH SVN
anthm at freeswitch.org
Wed Feb 18 06:00:01 PST 2009
Author: anthm
Date: Wed Feb 18 08:00:01 2009
New Revision: 12137
Log:
MODASRTTS-9
Modified:
freeswitch/trunk/src/mod/asr_tts/mod_cepstral/mod_cepstral.c
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 Feb 18 08:00:01 2009
@@ -135,7 +135,7 @@
/* Open a Swift Port through which to make TTS calls */
- if (SWIFT_FAILED(cepstral->port = swift_port_open(engine, cepstral->params))) {
+ if (!(cepstral->port = swift_port_open(engine, cepstral->params))) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Failed to open Swift Port.\n");
goto all_done;
}
@@ -406,7 +406,7 @@
switch_speech_interface_t *speech_interface;
/* Open the Swift TTS Engine */
- if (SWIFT_FAILED(engine = swift_engine_open(NULL))) {
+ if (!(engine = swift_engine_open(NULL))) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Failed to open Swift Engine.");
return SWITCH_STATUS_GENERR;
}
More information about the Freeswitch-svn
mailing list