Flash 8 Documentation |
|||
| ActionScript 2.0 Language Reference > ActionScript classes > Microphone | |||
Object
|
+-Microphone
public class Microphone
extends Object
The Microphone class lets you capture audio from a microphone attached to the computer that is running Flash Player.
The Microphone class is primarily for use with Flash Communication Server but can be used in a limited fashion without the server, for example, to transmit sound from your microphone through the speakers on your local system.
Caution: Flash Player displays a Privacy dialog box that lets the user choose whether to allow or deny access to the microphone. Make sure your Stage size is at least 215 x 138 pixels; this is the minimum size Flash requires to display the dialog box.
Users and Administrative users may also disable microphone access on a per-site or global basis.
To create or reference a Microphone object, use the Microphone.get() method.
Availability: ActionScript 1.0; Flash Player 6
|
Modifiers |
Property |
Description |
|---|---|---|
|
|
activityLevel |
A numeric value that specifies the amount of sound the microphone is detecting. |
|
|
gain |
The amount by which the microphone boosts the signal. |
|
|
index |
A zero-based integer that specifies the index of the microphone, as reflected in the array returned by |
|
|
muted |
A Boolean value that specifies whether the user has denied access to the microphone ( |
|
|
name |
A string that specifies the name of the current sound capture device, as returned by the sound capture hardware. |
|
|
names |
Retrieves an array of strings reflecting the names of all available sound capture devices without displaying the Flash Player Privacy Settings panel. |
|
|
rate |
The rate at which the microphone is capturing sound, in kHz. |
|
|
silenceLevel |
An integer that specifies the amount of sound required to activate the microphone and invoke |
|
|
silenceTimeOut |
A numeric value representing the number of milliseconds between the time the microphone stops detecting sound and the time |
|
|
useEchoSuppression |
Property (read-only); a Boolean value of |
Properties inherited from class Object
|
Event |
Description |
|---|---|
|
onActivity |
Invoked when the microphone starts or stops detecting sound. |
|
onStatus |
Invoked when the user allows or denies access to the microphone. |
|
Modifiers |
Signature |
Description |
|---|---|---|
|
|
get |
Returns a reference to a Microphone object for capturing audio. |
|
|
setGain |
Sets the microphone gain--that is, the amount by which the microphone should multiply the signal before transmitting it. |
|
|
setRate |
Sets the rate, in kHz, at which the microphone should capture sound. |
|
|
setSilenceLevel |
Sets the minimum input level that should be considered sound and (optionally) the amount of silent time signifying that silence has actually begun. |
|
|
setUseEchoSuppression |
Specifies whether to use the echo suppression feature of the audio codec. |
Methods inherited from class Object addProperty, hasOwnProperty, isPropertyEnumerable, isPrototypeOf, registerClass, toString, unwatch, valueOf, watch
Version 8
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flash/8/main/00002409.html