public void startListen() { MicrosoftCloudSpeechToText t = new MicrosoftCloudSpeechToText(); ocr = new AspOCR(); SpeechToTextAlias.SpeechToText speechToText = new SpeechToTextAlias.SpeechToText(t.GetType()); WireEventHandlers(speechToText); word = new WordTextEditor(); // speechToText.FindActionFromSpeech(); ChangeWords(); ChangeWords(); }
private void WireEventHandlers(SpeechToTextAlias.SpeechToText stt) { TriggerHandler handler = new TriggerHandler(actionHandler); stt.triggerHandler += handler; }