110,535
社区成员
发帖
与我相关
我的任务
分享
new Choices(new string[] {"小明","小花","小菜","小武"}
GrammarBuilder gb = new GrammarBuilder();
gb.Append("打开");
gb.Append(new Choices(new string[] { "工作文档","我的电脑", "关闭" }));
Grammar g = new Grammar(gb);
g.SpeechRecognized += new EventHandler<SpeechRecognizedEventArgs>(g_SpeechRecognized);
sre.LoadGrammar(g);
sre.RecognizeAsync(RecognizeMode.Multiple);
string strtemp = "小明,小花,小菜,小武";
string[] StrArr = strtemp.Split(',');