[Freeswitch-svn] [commit] r8994 -	freeswitch/trunk/src/mod/asr_tts/mod_pocketsphinx
    Freeswitch SVN 
    brian at freeswitch.org
       
    Thu Jul 10 16:06:00 EDT 2008
    
    
  
Author: brian
Date: Thu Jul 10 16:06:00 2008
New Revision: 8994
Modified:
   freeswitch/trunk/src/mod/asr_tts/mod_pocketsphinx/mod_pocketsphinx.c
Log:
not less than zero
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 16:06:00 2008
@@ -372,6 +372,8 @@
 
 		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);
    
    
More information about the Freeswitch-svn
mailing list