/// <summary> /// Logs intermediate recognition results /// </summary> private void RecognizingEventHandler(SpeechRecognitionEventArgs e, RecoType rt) { SpeechRecognizingEventArgs eventArgs = new SpeechRecognizingEventArgs(); eventArgs.Message = "Intermediate result: " + e.Result.Text; eventArgs.Offset = e.Offset; eventArgs.SessionId = e.SessionId; OnSpeechRecognizingEvent(eventArgs); }
/// <summary> /// 音声認識中艦イベントを発生 /// </summary> /// <param name="e"></param> protected virtual void OnSpeechRecognizingEvent(SpeechRecognizingEventArgs e) { SpeechRecognizingEvent?.Invoke(this, e); }