提交 c8c09841 authored 作者: Raymond Chandler's avatar Raymond Chandler

don't seg if we forget voice

上级 aba31597
......@@ -24,6 +24,7 @@
* Contributor(s):
*
* Brian West <brian@freeswitch.org>
* Raymond Chandler <intralanman@freeswitch.org>
*
* mod_flite.c -- Flite Interface
*
......@@ -77,6 +78,11 @@ static switch_status_t flite_speech_open(switch_speech_handle_t *sh, const char
sh->native_rate = 16000;
if (!voice_name) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "A voice is required. Valid voice names are awb, rms, slt or kal.\n");
return SWITCH_STATUS_FALSE;
}
if (!strcasecmp(voice_name, "awb")) {
flite->v = globals.awb;
} else if (!strcasecmp(voice_name, "kal")) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论