diff --git a/.changeset/mighty-stingrays-sniff.md b/.changeset/mighty-stingrays-sniff.md new file mode 100644 index 0000000000..7809a96a43 --- /dev/null +++ b/.changeset/mighty-stingrays-sniff.md @@ -0,0 +1,5 @@ +--- +"livekit-client": patch +--- + +Add voiceIsolation constraint to AudioCaptureOptions diff --git a/src/room/defaults.ts b/src/room/defaults.ts index f35fd83bf0..4d4443bec6 100644 --- a/src/room/defaults.ts +++ b/src/room/defaults.ts @@ -25,6 +25,7 @@ export const audioDefaults: AudioCaptureOptions = { autoGainControl: true, echoCancellation: true, noiseSuppression: true, + voiceIsolation: true, }; export const videoDefaults: VideoCaptureOptions = { diff --git a/src/room/track/options.ts b/src/room/track/options.ts index 78b7fe9f99..e5d42ef83d 100644 --- a/src/room/track/options.ts +++ b/src/room/track/options.ts @@ -246,6 +246,14 @@ export interface AudioCaptureOptions { */ noiseSuppression?: ConstrainBoolean; + /** + * @experimental + * a stronger version of 'noiseSuppression', browser support is not widespread yet. + * If this is set (and supported) the value for 'noiseSuppression' will be ignored + * @see https://w3c.github.io/mediacapture-extensions/#voiceisolation-constraint + */ + voiceIsolation?: ConstrainBoolean; + /** * the sample rate or range of sample rates which are acceptable and/or required. */