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; } }
public Recognizer() { googleSpeech = new GoogleSpeech(); windowsSpeech = new WindowsSpeech(); }