Export (0) Print
Expand All

AudioStateChangedEventArgs Class

Returns data from the AudioStateChanged event.

Namespace: Microsoft.Speech.Recognition
Assembly: Microsoft.Speech (in microsoft.speech.dll)

public class AudioStateChangedEventArgs : EventArgs
public class AudioStateChangedEventArgs extends EventArgs
public class AudioStateChangedEventArgs extends EventArgs

An instance of AudioStateChangedEventArgs is created when the SpeechRecognitionEngine. AudioStateChanged event is raised.

AudioStateChangedEventArgs derives from System.EventArgs.

Detailed information about the audio stream can be obtained through the AudioState property. AudioStateChanged events are generated to provide the user with information about what kind of audio the recognizer is currently processing.


System.Object
   System.EventArgs
    Microsoft.Speech.Recognition.AudioStateChangedEventArgs

// Handles the AudioStateChanged event and displays the AudioState result.

_recognizer.AudioStateChanged +=

delegate(object sender, AudioStateChangedEventArgs eventArgs)

{

DisplayResult(eventArgs);

};

All public static (Shared in Visual Basic) members of this type are thread-safe. Instance members are not guaranteed to be thread-safe.

Development Platforms

Windows XP Professional with Service Pack 2 (SP2), Windows Server 2003, Windows Vista Ultimate Edition, Windows Vista Business Edition, Windows Vista Enterprise Edition

Target Platforms

Show:
© 2015 Microsoft