提交 749cf1cd authored 作者: Chris Rienzo's avatar Chris Rienzo

FS-8676 [mod_unimrcp] fix crash when an invalid voice-gender TTS param is attempted to be set

上级 c603648a
...@@ -1237,7 +1237,7 @@ static switch_status_t synth_channel_set_header(speech_channel_t *schannel, int ...@@ -1237,7 +1237,7 @@ static switch_status_t synth_channel_set_header(speech_channel_t *schannel, int
} else if (!strcasecmp("neutral", val)) { } else if (!strcasecmp("neutral", val)) {
synth_hdr->voice_param.gender = VOICE_GENDER_NEUTRAL; synth_hdr->voice_param.gender = VOICE_GENDER_NEUTRAL;
} else { } else {
switch_log_printf(SWITCH_CHANNEL_SESSION_LOG(schannel->session_uuid), SWITCH_LOG_WARNING, "(%s) ignoring invalid voice gender, %s\n", schannel->name, val); switch_log_printf(SWITCH_CHANNEL_UUID_LOG(schannel->session_uuid), SWITCH_LOG_WARNING, "(%s) ignoring invalid voice gender, %s\n", schannel->name, val);
break; break;
} }
mrcp_resource_header_property_add(msg, SYNTHESIZER_HEADER_VOICE_GENDER); mrcp_resource_header_property_add(msg, SYNTHESIZER_HEADER_VOICE_GENDER);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论