AudioStateChangedEventArgs Class

Returns data from the AudioStateChanged event.

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

Syntax

'Declaration
Public Class AudioStateChangedEventArgs
    Inherits EventArgs
public class AudioStateChangedEventArgs : EventArgs
public ref class AudioStateChangedEventArgs : public EventArgs
public class AudioStateChangedEventArgs extends EventArgs
public class AudioStateChangedEventArgs extends EventArgs

Remarks

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.

Inheritance Hierarchy

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

Example

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

_recognizer.AudioStateChanged +=

delegate(object sender, AudioStateChangedEventArgs eventArgs)

{

DisplayResult(eventArgs);

};

Thread Safety

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

Platforms

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

See Also

Reference

AudioStateChangedEventArgs Members
Microsoft.Speech.Recognition Namespace
AudioState Enumeration
State
AudioStatusChanged
AudioStatusChanged