提交 98678177 authored 作者: Anthony Minessale's avatar Anthony Minessale

MODASRTTS-9

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@12137 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 65a80591
...@@ -135,7 +135,7 @@ static switch_status_t cepstral_speech_open(switch_speech_handle_t *sh, const ch ...@@ -135,7 +135,7 @@ static switch_status_t cepstral_speech_open(switch_speech_handle_t *sh, const ch
/* Open a Swift Port through which to make TTS calls */ /* 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"); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Failed to open Swift Port.\n");
goto all_done; goto all_done;
} }
...@@ -406,7 +406,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_cepstral_load) ...@@ -406,7 +406,7 @@ SWITCH_MODULE_LOAD_FUNCTION(mod_cepstral_load)
switch_speech_interface_t *speech_interface; switch_speech_interface_t *speech_interface;
/* Open the Swift TTS Engine */ /* 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."); switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Failed to open Swift Engine.");
return SWITCH_STATUS_GENERR; return SWITCH_STATUS_GENERR;
} }
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论