public static void SetContext(List <string> contexts, int min, int max) { switch (recognizer) { case 0: GoogleSpeech.SetContext(contexts); break; case 1: WindowsSpeech.SetContext(contexts, min, max); break; } }
private void Form1_FormClosed(object sender, FormClosedEventArgs e) { syn.Close(); mic.Close(); WindowsSpeech.Close(); }
public Recognizer() { googleSpeech = new GoogleSpeech(); windowsSpeech = new WindowsSpeech(); }