User Guide
Microphone.activityLevel 535
Event handler summary for the Microphone class
Constructor for the Microphone class
See
Microphone.get().
Microphone.activityLevel
Availability
Flash Player 6.
Usage
active_mic.activityLevel:Number
Description
Read-only property; a numeric value that specifies the amount of sound the microphone is
detecting. Values range from 0 (no sound is being detected) to 100 (very loud sound is being
detected). The value of this property can help you determine a good value to pass to the
Microphone.setSilenceLevel() method.
If the microphone is available but is not yet being used because
Microphone.get() has not been
called, this property is set to -1.
Example
The following example displays the activity level of the current microphone in a ProgressBar
instance called
activityLevel_pb.
var activityLevel_pb:mx.controls.ProgressBar;
activityLevel_pb.mode = "manual";
Microphone.names
Class property; an array of strings reflecting the names of all
available sound capture devices, including sound cards
and microphones.
Microphone.rate
The sound capture rate, in kHz.
Microphone.silenceLevel
The amount of sound required to activate the microphone.
Microphone.silenceTimeOut
The number of milliseconds between the time the
microphone stops detecting sound and
Microphone.onActivity(false) is called.
Microphone.useEchoSuppression
A Boolean value that specifies whether echo suppression is
being used.
Event handler Description
Microphone.onActivity
Invoked when the microphone starts or stops detecting
sound.
Microphone.onStatus
Invoked when the user allows or denies access to the
microphone.
Property (read-only) Description