AudioSignalProblemOccurredEventArgs Class

Returns data from the AudioSignalProblemOccurred event.

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

Syntax

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

Remarks

An instance of AudioSignalProblemOccurredEventArgs is created when the SpeechRecognitionEngine.AudioSignalProblemOccurred event is raised.

AudioSignalProblemOccurredEventArgs is derived from RecognitionEventArgs.

To obtain the audio signal state when the AudioSignalProblem occurred in a recognition engine use the SignalProblem property.

Inheritance Hierarchy

System.Object
System.EventArgs
Microsoft.Speech.Recognition.AudioSignalProblemOccurredEventArgs

Example

void AddRecognizerAudioSignalProblemEvent() {

_recognizer.AudioSignalProblemOccurred += new EventHandler<AudioSignalProblemOccurredEventArgs>(_recognizer_AudioSignalProblemOccurred);

}

void _recognizer_AudioSignalProblemOccurred(object sender, AudioSignalProblemOccurredEventArgs e)

{

DisplayResult(e.AudioLevel);

}

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

AudioSignalProblemOccurredEventArgs Members
Microsoft.Speech.Recognition Namespace
AudioSignalProblem Enumeration
SignalProblem