Introduce AudioInputController Mojom API
This CL is part of a migration of all interactions with the Libassistant 3rd party library to a mojom service. Currently Libassistant is invoked directly from the browser thread. This specific CL focuses on the audio input, aka the microphone. Libassistant needs to open the microphone both for hotword detection and for listening to actual user queries (for example 'ok google; set a timer for 5 minutes'). The idea behind the mojom interface is that we tell Libassistant - What audio devices to use. - When it is allowed to open the microphone (for example we don't want Libassistant listening if the lid of the device is closed). We also want to keep creating the |AudioStreamFactory| instances on the browser thread, so this mojom API contains a delegate to allow our service to request a |AudioStreamFactory| from the Browser thread. Bug: b/171748795 Test: N/A Change-Id: I3b75d9424e78fe5af8793395e25485168bc3c999 Cq-Include-Trybots: luci.chrome.try:linux-chromeos-chrome Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2600332 Commit-Queue: Jeroen Dhollander <jeroendh@chromium.org> Reviewed-by:Meilin Wang <meilinw@chromium.org> Reviewed-by:
Daniel Cheng <dcheng@chromium.org> Reviewed-by:
Dale Curtis <dalecurtis@chromium.org> Reviewed-by:
Xiaohui Chen <xiaohuic@chromium.org> Cr-Commit-Position: refs/heads/master@{#843078}
Showing
Please register or sign in to comment