Esempio n. 1
0
        /// <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);
        }
Esempio n. 2
0
 /// <summary>
 /// 音声認識中艦イベントを発生
 /// </summary>
 /// <param name="e"></param>
 protected virtual void OnSpeechRecognizingEvent(SpeechRecognizingEventArgs e)
 {
     SpeechRecognizingEvent?.Invoke(this, e);
 }