From: Brian West Date: Tue, 8 Jul 2008 23:34:01 +0000 (+0000) Subject: scores mean nothing yet X-Git-Tag: v1.0.1~217 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3b334c5ebd447b1a48a56ff3795c70c9d1a29ff;p=thirdparty%2Ffreeswitch.git scores mean nothing yet git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8950 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/src/mod/asr_tts/mod_pocketsphinx/mod_pocketsphinx.c b/src/mod/asr_tts/mod_pocketsphinx/mod_pocketsphinx.c index 7b10b82aa4..02c33d45f1 100644 --- a/src/mod/asr_tts/mod_pocketsphinx/mod_pocketsphinx.c +++ b/src/mod/asr_tts/mod_pocketsphinx/mod_pocketsphinx.c @@ -332,15 +332,16 @@ static switch_status_t pocketsphinx_asr_get_results(switch_asr_handle_t *ah, cha if (switch_test_flag(ps, PSFLAG_HAS_TEXT)) { switch_mutex_lock(ps->flag_mutex); switch_clear_flag(ps, PSFLAG_HAS_TEXT); - switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Recognized: %s, Score: %d\n", ps->hyp, ps->score); + switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_DEBUG, "Recognized: %s, Score: 300\n", ps->hyp); switch_mutex_unlock(ps->flag_mutex); + + /* ps->score isn't a confidence score. PocketSphinx doesn't support that yet. */ - *xmlstr = switch_mprintf("\n" + *xmlstr = switch_mprintf("\n" " %s\n" " %s\n" "", - - ps->grammar, ps->score, + ps->grammar, "match", ps->hyp, ps->hyp