[Freeswitch-svn] [commit] r8992 - freeswitch/trunk/src/mod/asr_tts/mod_pocketsphinx

Freeswitch SVN brian at freeswitch.org
Thu Jul 10 15:42:27 EDT 2008


Author: brian
Date: Thu Jul 10 15:42:26 2008
New Revision: 8992

Modified:
   freeswitch/trunk/src/mod/asr_tts/mod_pocketsphinx/mod_pocketsphinx.c

Log:
remove comments

Modified: freeswitch/trunk/src/mod/asr_tts/mod_pocketsphinx/mod_pocketsphinx.c
==============================================================================
--- freeswitch/trunk/src/mod/asr_tts/mod_pocketsphinx/mod_pocketsphinx.c	(original)
+++ freeswitch/trunk/src/mod/asr_tts/mod_pocketsphinx/mod_pocketsphinx.c	Thu Jul 10 15:42:26 2008
@@ -369,7 +369,7 @@
 		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 @@
 		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("<interpretation grammar=\"%s\" score=\"%d\">\n"
 								 "  <result name=\"%s\">%s</result>\n"
 								 "  <input>%s</input>\n"



More information about the Freeswitch-svn mailing list