don't seg if we forget voice

This commit is contained in:
Raymond Chandler 2013-01-15 15:57:02 -05:00
parent aba31597cb
commit c8c0984136
1 changed files with 6 additions and 0 deletions

View File

@ -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")) {