16 int main(
int argc,
const char** argv)
20 if (argc != 3 && argc != 5)
22 std::cout <<
"Wrong number of parameters!" << std::endl;
27 string grammar_file(argv[2]);
29 string grammar_build_path = grammar_file +
"/grammar";
30 grammar_file = grammar_file +
"/grammar.bnf";
35 string asr_res_path =
"fo|res/asr/common.jet";
41 build_grammar.
buildGrammar(&asr_data, base_path, grammar_build_path, asr_res_path, grammar_file);
static CommonConfig & get_instance()
void loginToXunfei(const std::string base_path)
Mobile Speech Platform Common Interface Header File.
iFLY Speech Recognizer Header File
const std::string base_path
void buildGrammar(UserData *udata, const string base_path, const string grammar_build_path, const string asr_res_path, const string grammar_file)
int main(int argc, const char **argv)