assistant: add initial DSP support
* Add a feature to control this, default off
* Move audio_input_impl to its own file since it grows big
* Introduce hotword_state_manager that controls DSP input device
state. For DSP device, it works as follows:
- Open input device with HOTWORD effect
- Input device won't forward audio data until OKG is detected
- Once OKG is detected, input device behaves like a regular input
device and constantly streams audio data, note that the preamble
of OKG itself is included in the initial audio data
- When a conversation is finished, we need to destroy and recreated
the audio input to arm DSP again.
Bug: b/77916222
Test: locally build and run on eve
Change-Id: I4ce17fba21fbc584cde9178c2aca53a6ed410fe9
Reviewed-on: https://chromium-review.googlesource.com/c/1334566Reviewed-by:
Tao Wu <wutao@chromium.org>
Commit-Queue: Xiaohui Chen <xiaohuic@chromium.org>
Cr-Commit-Position: refs/heads/master@{#608864}
Showing
This diff is collapsed.
Please register or sign in to comment