From 1bd99549e03a101d5ea12b9e71a7db74ad5d3b4e Mon Sep 17 00:00:00 2001 From: Brian West Date: Thu, 10 Jul 2008 19:42:26 +0000 Subject: [PATCH] remove comments git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8992 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/asr_tts/mod_pocketsphinx/mod_pocketsphinx.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/mod/asr_tts/mod_pocketsphinx/mod_pocketsphinx.c b/src/mod/asr_tts/mod_pocketsphinx/mod_pocketsphinx.c index 897806642c..1a2383bcca 100644 --- a/src/mod/asr_tts/mod_pocketsphinx/mod_pocketsphinx.c +++ b/src/mod/asr_tts/mod_pocketsphinx/mod_pocketsphinx.c @@ -369,7 +369,7 @@ static switch_status_t pocketsphinx_asr_get_results(switch_asr_handle_t *ah, cha conf = ps_get_prob(ps->ps, &ps->uttid); lconf = logmath_log_to_ln(ps_get_logmath(ps->ps), conf); ps->confidence = lconf - lconf - lconf; - /* 0(confident) to 100(not confident) score */ + if (ps->confidence > 100) { ps->confidence = 100; } @@ -377,8 +377,6 @@ static switch_status_t pocketsphinx_asr_get_results(switch_asr_handle_t *ah, cha switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Recognized: %s, Score: %d\n", ps->hyp, ps->confidence); switch_mutex_unlock(ps->flag_mutex); - /* ps->score isn't a confidence score. PocketSphinx doesn't support that yet. */ - *xmlstr = switch_mprintf("\n" " %s\n" " %s\n"