Exemple #1
0
        /// <summary>
        /// Provides feedback to client code based on whether the recognizer is receiving speech input.
        /// </summary>
        /// <param name="sender">The recognizer that is currently running.</param>
        /// <param name="args">The current state of the recognizer.</param>
        private void SpeechRecognizer_StateChanged(SpeechRecognizer sender, SpeechRecognizerStateChangedEventArgs args)
        {
            StateChangedEventArgs e = new StateChangedEventArgs(args);

            OnStateChanged(e);
        }
Exemple #2
0
 protected virtual void OnStateChanged(StateChangedEventArgs e)
 {
     StateChanged?.Invoke(this, e);
 }