[Freeswitch-svn] [commit] r9084 - in freeswitch/trunk: conf/autoload_configs src/mod/asr_tts/mod_pocketsphinx

Freeswitch SVN brian at freeswitch.org
Thu Jul 17 19:49:25 EDT 2008


Author: brian
Date: Thu Jul 17 19:49:25 2008
New Revision: 9084

Modified:
   freeswitch/trunk/conf/autoload_configs/pocketsphinx.conf.xml
   freeswitch/trunk/src/mod/asr_tts/mod_pocketsphinx/mod_pocketsphinx.c

Log:
add config and woops our config options have dashes not underscores... variables have underscore

Modified: freeswitch/trunk/conf/autoload_configs/pocketsphinx.conf.xml
==============================================================================
--- freeswitch/trunk/conf/autoload_configs/pocketsphinx.conf.xml	(original)
+++ freeswitch/trunk/conf/autoload_configs/pocketsphinx.conf.xml	Thu Jul 17 19:49:25 2008
@@ -4,5 +4,7 @@
     <param name="silence-hits" value="25"/>
     <param name="listen-hits" value="1"/>
     <param name="auto-reload" value="true"/>
+    <!--<param name="narrowband-model" value="communicator"/>-->
+    <!--<param name="wideband-model" value="wsj1"/>-->
   </settings>
 </configuration>

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 17 19:49:25 2008
@@ -443,9 +443,9 @@
 				globals.listen_hits = atoi(val);
 			} else if (!strcasecmp(var, "auto-reload")) {
 				globals.auto_reload = switch_true(val);
-			} else if (!strcasecmp(var, "narrowband_model")) {
+			} else if (!strcasecmp(var, "narrowband-model")) {
 				globals.model8k = switch_core_strdup(globals.pool, val);
-			} else if (!strcasecmp(var, "wideband_model")) {
+			} else if (!strcasecmp(var, "wideband-model")) {
 				globals.model16k = switch_core_strdup(globals.pool, val);
 			}
 		}



More information about the Freeswitch-svn mailing list