Skip to content

Commit

Permalink
Add voiceIsolation constraint to AudioCaptureOptions (#1320)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasIO authored Nov 20, 2024
1 parent 13ba73d commit 2e497b6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/mighty-stingrays-sniff.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"livekit-client": patch
---

Add voiceIsolation constraint to AudioCaptureOptions
1 change: 1 addition & 0 deletions src/room/defaults.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ export const audioDefaults: AudioCaptureOptions = {
autoGainControl: true,
echoCancellation: true,
noiseSuppression: true,
voiceIsolation: true,
};

export const videoDefaults: VideoCaptureOptions = {
Expand Down
8 changes: 8 additions & 0 deletions src/room/track/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*/
Expand Down

0 comments on commit 2e497b6

Please sign in to comment.