not less than zero

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8994 d0543943-73ff-0310-b7d9-9358b9ac24b2
This commit is contained in:
Brian West 2008-07-10 20:06:00 +00:00
parent cc63a0595a
commit c88d334363

View File

@ -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);