audio: Implement applyConstraints() plumbing for voice isolation [chromium/src : main]

0 views
Skip to first unread message

Tomas Lundqvist (Gerrit)

unread,
Jun 12, 2026, 11:09:56 AMJun 12
to Olga Sharonova, Guido Urdaneta, Olga Sharonova, chromium...@chromium.org, blink-...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, marinacio...@chromium.org, olka+...@chromium.org, tommyw+w...@chromium.org
Attention needed from Guido Urdaneta and Olga Sharonova

Tomas Lundqvist added 2 comments

File media/mojo/mojom/audio_processing.mojom
Line 47, Patchset 5: SetVoiceIsolationEnabled(bool enabled);
Olga Sharonova . resolved

SetVoiceIsolation(bool enabled)? Also drop "audio processor" (it's AudioProcessorControls)

Tomas Lundqvist

Done

File third_party/blink/renderer/modules/mediastream/apply_constraints_processor.cc
Line 95, Patchset 5: SelectSettingsAudioCapture(audio_source, current_request_->Constraints());
Olga Sharonova . resolved

All the work is happening here - don't we need to modify anything in it?

Guido Urdaneta

We probably need to modify SelectSettingsAudioCapture to allow it to change voice isolation.

Also, we need to ensure that we don't contradict other tracks that can have a contradicting exact constraints. The best way is probably to do it before calling SelectSettings and passing a list of allowed values from other tracks.

We need unit tests that cover this too.

Tomas Lundqvist

Yes, we absolutely need to change SelectSettingsAudioCapture, but the changes there are in the constraints handling that is also used for getUserMedia(), and they are independent of this applyConstraints() plumbing. So it doesn't make sense to have them in an applyConstratins() cl. I collected those changes in the separate https://chromium-review.git.corp.google.com/c/chromium/src/+/7921250.

Open in Gerrit

Related details

Attention is currently required from:
  • Guido Urdaneta
  • Olga Sharonova
Submit Requirements:
  • requirement satisfiedCode-Coverage
  • requirement is not satisfiedCode-Owners
  • requirement is not satisfiedCode-Review
  • requirement is not satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: comment
Gerrit-Project: chromium/src
Gerrit-Branch: main
Gerrit-Change-Id: Ic04126daf71a8caf8d37aabd6ee430e9b477648d
Gerrit-Change-Number: 7918687
Gerrit-PatchSet: 28
Gerrit-Owner: Tomas Lundqvist <tom...@google.com>
Gerrit-Reviewer: Guido Urdaneta <gui...@chromium.org>
Gerrit-Reviewer: Olga Sharonova <ol...@chromium.org>
Gerrit-CC: Olga Sharonova <ol...@google.com>
Gerrit-Attention: Olga Sharonova <ol...@google.com>
Gerrit-Attention: Guido Urdaneta <gui...@chromium.org>
Gerrit-Comment-Date: Fri, 12 Jun 2026 15:09:35 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: Olga Sharonova <ol...@google.com>
Comment-In-Reply-To: Guido Urdaneta <gui...@chromium.org>
satisfied_requirement
unsatisfied_requirement
open
diffy

Tomas Lundqvist (Gerrit)

unread,
Jun 26, 2026, 9:45:35 AMJun 26
to Olga Sharonova, Guido Urdaneta, Olga Sharonova, chromium...@chromium.org, blink-...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, marinacio...@chromium.org, olka+...@chromium.org, tommyw+w...@chromium.org
Attention needed from Olga Sharonova

Tomas Lundqvist voted and added 1 comment

Votes added by Tomas Lundqvist

Auto-Submit+1

1 comment

Patchset-level comments
File-level comment, Patchset 4:
Tomas Lundqvist . resolved

This method for disabling and reenabling voice isolation is documented in our DD: . But we are worried that it is maybe not this easy and would like to discuss the approach now rather than later. This just the plumbing. Note that it assumes that SelectSettingsAudioCapture does the right things when it comes to all settings, including voice isolation.

Tomas Lundqvist

DD: https://docs.google.com/document/d/1qJRe4w5kSrkK3EJXJa8PF64wnNLKAmfD17j7Jo5tfzI/edit?tab=t.xbncevc0gupf#heading=h.2m5naq14ro0s and in the implementation section.

Olga Sharonova

Add it to the CL description?

Also: describe applyConstraints behavior for voiceIsolation? For voiceIsolation in combination with other constraints?

Tomas Lundqvist

Acknowledged

Open in Gerrit

Related details

Attention is currently required from:
  • Olga Sharonova
Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ic04126daf71a8caf8d37aabd6ee430e9b477648d
    Gerrit-Change-Number: 7918687
    Gerrit-PatchSet: 38
    Gerrit-Owner: Tomas Lundqvist <tom...@google.com>
    Gerrit-Reviewer: Guido Urdaneta <gui...@chromium.org>
    Gerrit-Reviewer: Olga Sharonova <ol...@chromium.org>
    Gerrit-Reviewer: Tomas Lundqvist <tom...@google.com>
    Gerrit-CC: Olga Sharonova <ol...@google.com>
    Gerrit-Attention: Olga Sharonova <ol...@google.com>
    Gerrit-Comment-Date: Fri, 26 Jun 2026 13:45:15 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: Yes
    Comment-In-Reply-To: Tomas Lundqvist <tom...@google.com>
    Comment-In-Reply-To: Olga Sharonova <ol...@google.com>
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Tomas Lundqvist (Gerrit)

    unread,
    Jun 26, 2026, 10:27:18 AMJun 26
    to Chromium IPC Reviews, Chromium LUCI CQ, Olga Sharonova, Guido Urdaneta, Olga Sharonova, chromium...@chromium.org, blink-...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, marinacio...@chromium.org, olka+...@chromium.org, tommyw+w...@chromium.org
    Attention needed from Chromium IPC Reviews, Olga Sharonova, Olga Sharonova and Tomas Lundqvist

    Tomas Lundqvist voted

    Auto-Submit+1
    Commit-Queue+1
    Open in Gerrit

    Related details

    Attention is currently required from:
    • Chromium IPC Reviews
    • Olga Sharonova
    • Olga Sharonova
    • Tomas Lundqvist
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ic04126daf71a8caf8d37aabd6ee430e9b477648d
    Gerrit-Change-Number: 7918687
    Gerrit-PatchSet: 41
    Gerrit-Owner: Tomas Lundqvist <tom...@google.com>
    Gerrit-Reviewer: Chromium IPC Reviews <chrome-ip...@google.com>
    Gerrit-Reviewer: Guido Urdaneta <gui...@chromium.org>
    Gerrit-Reviewer: Olga Sharonova <ol...@chromium.org>
    Gerrit-Reviewer: Tomas Lundqvist <tom...@google.com>
    Gerrit-CC: Olga Sharonova <ol...@google.com>
    Gerrit-Attention: Tomas Lundqvist <tom...@google.com>
    Gerrit-Attention: Olga Sharonova <ol...@chromium.org>
    Gerrit-Attention: Olga Sharonova <ol...@google.com>
    Gerrit-Attention: Chromium IPC Reviews <chrome-ip...@google.com>
    Gerrit-Comment-Date: Fri, 26 Jun 2026 14:27:01 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: Yes
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    gwsq (Gerrit)

    unread,
    Jun 26, 2026, 10:28:57 AMJun 26
    to Tomas Lundqvist, Chromium IPC Reviews, Kinuko Yasuda, Chromium LUCI CQ, Olga Sharonova, Guido Urdaneta, Olga Sharonova, chromium...@chromium.org, blink-...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, marinacio...@chromium.org, olka+...@chromium.org, tommyw+w...@chromium.org
    Attention needed from Kinuko Yasuda, Olga Sharonova and Olga Sharonova

    Message from gwsq

    From googleclient/chrome/chromium_gwsq/ipc/config.gwsq:
    IPC: kin...@chromium.org

    📎 It looks like you’re making a possibly security-sensitive change! 📎 IPC security review isn’t a rubberstamp, so your friendly security reviewer will need a fair amount of context to review your CL effectively. Please review your CL description and code comments to make sure they provide context for someone unfamiliar with your project/area. Pay special attention to where data comes from and which processes it flows between (and their privilege levels). Feel free to point your security reviewer at design docs, bugs, or other links if you can’t reasonably make a self-contained CL description. (Also see https://cbea.ms/git-commit/).

    IPC reviewer(s): kin...@chromium.org


    Reviewer source(s):
    kin...@chromium.org is from context(googleclient/chrome/chromium_gwsq/ipc/config.gwsq)

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Kinuko Yasuda
    • Olga Sharonova
    • Olga Sharonova
    Submit Requirements:
    • requirement satisfiedCode-Coverage
    • requirement is not satisfiedCode-Owners
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedReview-Enforcement
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: chromium/src
    Gerrit-Branch: main
    Gerrit-Change-Id: Ic04126daf71a8caf8d37aabd6ee430e9b477648d
    Gerrit-Change-Number: 7918687
    Gerrit-PatchSet: 42
    Gerrit-Owner: Tomas Lundqvist <tom...@google.com>
    Gerrit-Reviewer: Guido Urdaneta <gui...@chromium.org>
    Gerrit-Reviewer: Kinuko Yasuda <kin...@chromium.org>
    Gerrit-Reviewer: Olga Sharonova <ol...@chromium.org>
    Gerrit-Reviewer: Tomas Lundqvist <tom...@google.com>
    Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
    Gerrit-CC: Olga Sharonova <ol...@google.com>
    Gerrit-CC: gwsq
    Gerrit-Attention: Olga Sharonova <ol...@chromium.org>
    Gerrit-Attention: Olga Sharonova <ol...@google.com>
    Gerrit-Attention: Kinuko Yasuda <kin...@chromium.org>
    Gerrit-Comment-Date: Fri, 26 Jun 2026 14:28:49 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: No
    satisfied_requirement
    unsatisfied_requirement
    open
    diffy

    Olga Sharonova (Gerrit)

    unread,
    5:48 AM (2 hours ago) 5:48 AM
    to Tomas Lundqvist, Code Review Nudger, Chromium IPC Reviews, Kinuko Yasuda, Chromium LUCI CQ, Guido Urdaneta, Olga Sharonova, chromium...@chromium.org, blink-...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, marinacio...@chromium.org, olka+...@chromium.org, tommyw+w...@chromium.org
    Attention needed from Kinuko Yasuda, Olga Sharonova and Tomas Lundqvist

    Olga Sharonova added 1 comment

    File services/audio/audio_processor_handler_unittest.cc
    Line 210, Patchset 52 (Latest): GetVoiceIsolationHandler(output_params_, deliver_callback_.Get()));
    Olga Sharonova . unresolved

    I'm wondering - Can we create a handler with a mock media::VoiceIsolation implementation? Then we can just verify the calls, and won't need to run tflight in tests. And it will make creating other tests easier as well.

    Open in Gerrit

    Related details

    Attention is currently required from:
    • Kinuko Yasuda
    • Olga Sharonova
    • Tomas Lundqvist
    Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement is not satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Ic04126daf71a8caf8d37aabd6ee430e9b477648d
      Gerrit-Change-Number: 7918687
      Gerrit-PatchSet: 52
      Gerrit-Owner: Tomas Lundqvist <tom...@google.com>
      Gerrit-Reviewer: Guido Urdaneta <gui...@chromium.org>
      Gerrit-Reviewer: Kinuko Yasuda <kin...@chromium.org>
      Gerrit-Reviewer: Olga Sharonova <ol...@chromium.org>
      Gerrit-Reviewer: Tomas Lundqvist <tom...@google.com>
      Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
      Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
      Gerrit-CC: Olga Sharonova <ol...@google.com>
      Gerrit-CC: gwsq
      Gerrit-Attention: Tomas Lundqvist <tom...@google.com>
      Gerrit-Attention: Olga Sharonova <ol...@chromium.org>
      Gerrit-Attention: Kinuko Yasuda <kin...@chromium.org>
      Gerrit-Comment-Date: Wed, 05 Aug 2026 09:48:41 +0000
      Gerrit-HasComments: Yes
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Tomas Lundqvist (Gerrit)

      unread,
      7:04 AM (20 minutes ago) 7:04 AM
      to Code Review Nudger, Chromium IPC Reviews, Kinuko Yasuda, Chromium LUCI CQ, Olga Sharonova, Guido Urdaneta, chromium...@chromium.org, blink-...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, marinacio...@chromium.org, olka+...@chromium.org, tommyw+w...@chromium.org
      Attention needed from Kinuko Yasuda

      Tomas Lundqvist voted Auto-Submit+1

      Auto-Submit+1
      Open in Gerrit

      Related details

      Attention is currently required from:
      • Kinuko Yasuda
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement is not satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Ic04126daf71a8caf8d37aabd6ee430e9b477648d
      Gerrit-Change-Number: 7918687
      Gerrit-PatchSet: 52
      Gerrit-Owner: Tomas Lundqvist <tom...@google.com>
      Gerrit-Reviewer: Guido Urdaneta <gui...@chromium.org>
      Gerrit-Reviewer: Kinuko Yasuda <kin...@chromium.org>
      Gerrit-Reviewer: Tomas Lundqvist <tom...@google.com>
      Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
      Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
      Gerrit-CC: Olga Sharonova <ol...@google.com>
      Gerrit-CC: gwsq
      Gerrit-Attention: Kinuko Yasuda <kin...@chromium.org>
      Gerrit-Comment-Date: Wed, 05 Aug 2026 11:04:46 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      Tomas Lundqvist (Gerrit)

      unread,
      7:06 AM (18 minutes ago) 7:06 AM
      to Olga Sharonova, Chromium IPC Reviews, Code Review Nudger, Chromium LUCI CQ, Olga Sharonova, chromium...@chromium.org, blink-...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, marinacio...@chromium.org, olka+...@chromium.org, tommyw+w...@chromium.org
      Attention needed from Chromium IPC Reviews and Olga Sharonova

      Tomas Lundqvist voted Auto-Submit+1

      Auto-Submit+1
      Open in Gerrit

      Related details

      Attention is currently required from:
      • Chromium IPC Reviews
      • Olga Sharonova
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement is not satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Ic04126daf71a8caf8d37aabd6ee430e9b477648d
      Gerrit-Change-Number: 7918687
      Gerrit-PatchSet: 52
      Gerrit-Owner: Tomas Lundqvist <tom...@google.com>
      Gerrit-Reviewer: Chromium IPC Reviews <chrome-ip...@google.com>
      Gerrit-Reviewer: Olga Sharonova <ol...@chromium.org>
      Gerrit-Reviewer: Tomas Lundqvist <tom...@google.com>
      Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
      Gerrit-CC: Olga Sharonova <ol...@google.com>
      Gerrit-CC: gwsq
      Gerrit-Attention: Olga Sharonova <ol...@chromium.org>
      Gerrit-Attention: Chromium IPC Reviews <chrome-ip...@google.com>
      Gerrit-Comment-Date: Wed, 05 Aug 2026 11:05:49 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: Yes
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy

      gwsq (Gerrit)

      unread,
      7:07 AM (17 minutes ago) 7:07 AM
      to Tomas Lundqvist, Chromium IPC Reviews, Camille Lamy, Olga Sharonova, Code Review Nudger, Chromium LUCI CQ, Olga Sharonova, chromium...@chromium.org, blink-...@chromium.org, feature-me...@chromium.org, ipc-securi...@chromium.org, kinuko...@chromium.org, marinacio...@chromium.org, olka+...@chromium.org, tommyw+w...@chromium.org
      Attention needed from Camille Lamy and Olga Sharonova

      Message from gwsq

      From googleclient/chrome/chromium_gwsq/ipc/config.gwsq:
      IPC: cl...@chromium.org

      📎 It looks like you’re making a possibly security-sensitive change! 📎 IPC security review isn’t a rubberstamp, so your friendly security reviewer will need a fair amount of context to review your CL effectively. Please review your CL description and code comments to make sure they provide context for someone unfamiliar with your project/area. Pay special attention to where data comes from and which processes it flows between (and their privilege levels). Feel free to point your security reviewer at design docs, bugs, or other links if you can’t reasonably make a self-contained CL description. (Also see https://cbea.ms/git-commit/).

      IPC reviewer(s): cl...@chromium.org


      Reviewer source(s):
      cl...@chromium.org is from context(googleclient/chrome/chromium_gwsq/ipc/config.gwsq)

      Open in Gerrit

      Related details

      Attention is currently required from:
      • Camille Lamy
      • Olga Sharonova
      Submit Requirements:
      • requirement satisfiedCode-Coverage
      • requirement is not satisfiedCode-Owners
      • requirement is not satisfiedCode-Review
      • requirement is not satisfiedNo-Unresolved-Comments
      • requirement is not satisfiedReview-Enforcement
      Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
      Gerrit-MessageType: comment
      Gerrit-Project: chromium/src
      Gerrit-Branch: main
      Gerrit-Change-Id: Ic04126daf71a8caf8d37aabd6ee430e9b477648d
      Gerrit-Change-Number: 7918687
      Gerrit-PatchSet: 53
      Gerrit-Owner: Tomas Lundqvist <tom...@google.com>
      Gerrit-Reviewer: Camille Lamy <cl...@chromium.org>
      Gerrit-Reviewer: Olga Sharonova <ol...@chromium.org>
      Gerrit-Reviewer: Tomas Lundqvist <tom...@google.com>
      Gerrit-CC: Chromium IPC Reviews <chrome-ip...@google.com>
      Gerrit-CC: Code Review Nudger <android-build...@prod.google.com>
      Gerrit-CC: Olga Sharonova <ol...@google.com>
      Gerrit-CC: gwsq
      Gerrit-Attention: Olga Sharonova <ol...@chromium.org>
      Gerrit-Attention: Camille Lamy <cl...@chromium.org>
      Gerrit-Comment-Date: Wed, 05 Aug 2026 11:07:21 +0000
      Gerrit-HasComments: No
      Gerrit-Has-Labels: No
      satisfied_requirement
      unsatisfied_requirement
      open
      diffy
      Reply all
      Reply to author
      Forward
      0 new messages