提交 c88d3343 authored 作者: Brian West's avatar Brian West

not less than zero

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8994 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 cc63a059
......@@ -372,6 +372,8 @@ static switch_status_t pocketsphinx_asr_get_results(switch_asr_handle_t *ah, cha
if (ps->confidence > 100) {
ps->confidence = 100;
} else if (ps->confidence < 0) {
ps->confidence = 0;
}
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Recognized: %s, Score: %d\n", ps->hyp, ps->confidence);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论