private void DetectedEventHandler(RecognitionEventArgs e, RecoType rt, string eventType) { SpeechDetectedEvendEventArgs eventArgs = new SpeechDetectedEvendEventArgs(); eventArgs.Message = "Speech recognition: Speech " + eventType + "detected event: " + e.ToString() + "."; OnSpeechDetectedEvent(eventArgs); }
/// <summary> /// 音声認識検出イベント発生 /// </summary> /// <param name="e"></param> protected virtual void OnSpeechDetectedEvent(SpeechDetectedEvendEventArgs e) { SpeechDetectedEvent?.Invoke(this, e); }