public void VoiceLoadEvents() { System.Diagnostics.Debug.WriteLine("Action config voice recon " + voicerecon.IsOpen); if (voicerecon.IsOpen) { voicerecon.Stop(true); voicerecon.Clear(); // clear grammars List <Tuple <string, ConditionEntry.MatchType> > ret = actionfiles.ReturnValuesOfSpecificConditions("VoiceInput", new List <ConditionEntry.MatchType>() { ConditionEntry.MatchType.MatchSemicolonList, ConditionEntry.MatchType.MatchSemicolon }); // need these to decide if (ret.Count > 0) { System.Diagnostics.Debug.WriteLine("Recognised voice recon entries" + ret.Count); foreach (var vp in ret) { voicerecon.Add(vp.Item1); } voicerecon.Start(); } } }
public void VoiceLoadEvents() // kicked by Action.Perform so synchornised with voice pack (or via editor) { if (voicerecon.IsOpen) { voicerecon.Stop(true); voicerecon.Clear(); // clear grammars List <Tuple <string, ConditionEntry.MatchType> > ret = actionfiles.ReturnValuesOfSpecificConditions("VoiceInput", new List <ConditionEntry.MatchType>() { ConditionEntry.MatchType.MatchSemicolonList, ConditionEntry.MatchType.MatchSemicolon }); // need these to decide if (ret.Count > 0) { foreach (var vp in ret) { voicerecon.Add(vp.Item1); } voicerecon.Start(); } } }