# Microphone.setRate()

#### Availability

Flash Player 6.

#### Usage

    activeMicrophone.setRate(kHz)

#### Parameters

`kHz` The rate at which the microphone should capture sound, in kHz. Acceptable values are 5, 8, 11, 22, and 44. The default value is 8 kHz if your sound capture device supports this value. Otherwise, the default value is the next available capture level above 8 kHz that your sound capture device supports, usually 11 kHz.

#### Returns

Nothing.

#### Description

Method; sets the rate, in kHz, at which the microphone should capture sound.

#### Example

The following example sets the microphone rate to the user's preference (which you have assigned to the `userRate` variable) if it is one of the following values: 5, 8, 11, 22, or 44. If it is not, the value is rounded to the nearest acceptable value that the sound capture device supports.

    myMic.setRate(userRate);

#### See also

`Microphone.rate`