Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add voiceIsolation constraint to AudioCaptureOptions #1320

Merged
merged 4 commits into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading