mirror of
https://github.com/cmusphinx/pocketsphinx.git
synced 2026-05-17 12:20:35 +00:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user