Skip to content

AudioCaptureOptions

Defined in: client-sdk-js/src/track/options.ts:51

Options for capturing audio from a microphone device.

autoGainControl?: ConstrainBoolean;

Defined in: client-sdk-js/src/track/options.ts:55

Specifies whether automatic gain control is preferred and/or required.


channelCount?: ConstrainULong;

Defined in: client-sdk-js/src/track/options.ts:61

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


deviceId?: ConstrainDOMString;

Defined in: client-sdk-js/src/track/options.ts:67

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


echoCancellation?: ConstrainBoolean;

Defined in: client-sdk-js/src/track/options.ts:72

Whether or not echo cancellation is preferred and/or required.


latency?: ConstrainDouble;

Defined in: client-sdk-js/src/track/options.ts:77

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


noiseSuppression?: ConstrainBoolean;

Defined in: client-sdk-js/src/track/options.ts:82

Whether noise suppression is preferred and/or required.


sampleRate?: ConstrainULong;

Defined in: client-sdk-js/src/track/options.ts:98

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


sampleSize?: ConstrainULong;

Defined in: client-sdk-js/src/track/options.ts:104

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


voiceIsolation?: ConstrainBoolean;

Defined in: client-sdk-js/src/track/options.ts:92

Experimental

A stronger version of noiseSuppression; browser support is not widespread yet. When set (and supported) the value for noiseSuppression will be ignored.

https://w3c.github.io/mediacapture-extensions/#voiceisolation-constraint