This documentation is archived and is not being maintained.

AudioLevelUpdatedEventArgs Class

Returns data from the AudioLevelUpdated event.

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

public class AudioLevelUpdatedEventArgs : EventArgs
public class AudioLevelUpdatedEventArgs extends EventArgs
public class AudioLevelUpdatedEventArgs extends EventArgs

An instance of AudioLevelUpdatedEventArgs is created when the SpeechRecognitionEngine. AudioLevelUpdated event is raised.

AudioLevelUpdated derives from RecognitionEventArgs.

Audio event handlers obtain detailed information about an audio level through the AudioLevel property of each derived class.


System.Object
   System.EventArgs
    Microsoft.Speech.Recognition.AudioLevelUpdatedEventArgs

void AddRecognizerEvent() {

_recognizer.AudioLevelUpdated +=

new EventHandler<AudioLevelUpdatedEventArgs>(_recognizer_AudioLevelUpdated);]

}

void _recognizer_AudioLevelUpdated(object sender, AudioLevelUpdatedEventArgs e)

{

DisplayResult(e.AudioLevel);

}

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: