Load config from file in SWIG.

Factory method of Decoder to read config from file.

git-svn-id: svn+ssh://svn.code.sf.net/p/cmusphinx/code/trunk/pocketsphinx@12382 94700074-3cef-4d97-a70e-9c8c206c02f5
This commit is contained in:
mbait
2014-03-20 11:27:07 +00:00
parent 62452f8a5c
commit 0bbdc34cf3
+4
View File
@@ -87,6 +87,10 @@
return cmd_ln_parse_r(NULL, ps_args(), 0, NULL, FALSE);
}
static Config *file_config(char const * path) {
return cmd_ln_parse_file_r(NULL, ps_args(), path, FALSE);
}
void start_utt(char const *uttid, int *errcode) {
*errcode = ps_start_utt($self, uttid);
}