From: Brian West Date: Thu, 17 Jul 2008 23:49:25 +0000 (+0000) Subject: add config and woops our config options have dashes not underscores... variables... X-Git-Tag: v1.0.1~83 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2dc83633c4e4871c0e4e7f4fec14db27dd2b3db;p=thirdparty%2Ffreeswitch.git add config and woops our config options have dashes not underscores... variables have underscore git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@9084 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- diff --git a/conf/autoload_configs/pocketsphinx.conf.xml b/conf/autoload_configs/pocketsphinx.conf.xml index 2fbd4a6506..39d9154e3a 100644 --- a/conf/autoload_configs/pocketsphinx.conf.xml +++ b/conf/autoload_configs/pocketsphinx.conf.xml @@ -4,5 +4,7 @@ + + diff --git a/src/mod/asr_tts/mod_pocketsphinx/mod_pocketsphinx.c b/src/mod/asr_tts/mod_pocketsphinx/mod_pocketsphinx.c index edc8b60d86..f30cce767b 100644 --- a/src/mod/asr_tts/mod_pocketsphinx/mod_pocketsphinx.c +++ b/src/mod/asr_tts/mod_pocketsphinx/mod_pocketsphinx.c @@ -443,9 +443,9 @@ static switch_status_t load_config(void) 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); } }