<param name="silence-hits" value="25"/>
<param name="listen-hits" value="1"/>
<param name="auto-reload" value="true"/>
+ <!--<param name="language-weight" value="1"/>-->
<!--<param name="narrowband-model" value="communicator"/>-->
<!--<param name="wideband-model" value="wsj1"/>-->
<!--<param name="dictionary" value="default.dic"/>-->
char *model8k;
char *model16k;
char *dictionary;
+ char *language_weight;
uint32_t thresh;
uint32_t silence_hits;
uint32_t listen_hits;
"-samprate", rate,
"-hmm", model,
"-jsgf", jsgf,
+ "-lw", globals.language_weight,
"-dict", dic,
"-frate", "50",
"-silprob", "0.005",
globals.thresh = atoi(val);
} else if (!strcasecmp(var, "silence-hits")) {
globals.silence_hits = atoi(val);
+ } else if (!strcasecmp(var, "language-weight")) {
+ globals.language_weight = switch_core_strdup(globals.pool, val);
} else if (!strcasecmp(var, "listen-hits")) {
globals.listen_hits = atoi(val);
} else if (!strcasecmp(var, "auto-reload")) {
globals.dictionary = switch_core_strdup(globals.pool, "default.dic");
}
+ if (!globals.language_weight) {
+ globals.language_weight = switch_core_strdup(globals.pool, "6.5");
+ }
+
done:
if (xml) {
switch_xml_free(xml);