Interface AudioCaptureOptions

interface AudioCaptureOptions {
    autoGainControl?: ConstrainBoolean;
    channelCount?: ConstrainULong;
    deviceId?: ConstrainDOMString;
    echoCancellation?: ConstrainBoolean;
    latency?: ConstrainDouble;
    noiseSuppression?: ConstrainBoolean;
    processor?: TrackProcessor<Audio, AudioProcessorOptions>;
    sampleRate?: ConstrainULong;
    sampleSize?: ConstrainULong;
    voiceIsolation?: ConstrainBoolean;
}

Properties

autoGainControl?: ConstrainBoolean

specifies whether automatic gain control is preferred and/or required

channelCount?: ConstrainULong

the channel count or range of channel counts which are acceptable and/or required

deviceId?: ConstrainDOMString

A ConstrainDOMString object specifying a device ID or an array of device IDs which are acceptable and/or required.

echoCancellation?: ConstrainBoolean

whether or not echo cancellation is preferred and/or required

latency?: ConstrainDouble

the latency or range of latencies which are acceptable and/or required.

noiseSuppression?: ConstrainBoolean

whether noise suppression is preferred and/or required.

initialize the track with a given processor

sampleRate?: ConstrainULong

the sample rate or range of sample rates which are acceptable and/or required.

sampleSize?: ConstrainULong

sample size or range of sample sizes which are acceptable and/or required.

voiceIsolation?: ConstrainBoolean

a stronger version of 'noiseSuppression', browser support is not widespread yet. If this is set (and supported) the value for 'noiseSuppression' will be ignored