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

[beta firmware] Better support different microphone audio streams #47

Merged
merged 13 commits into from
Aug 11, 2024

Conversation

kahrendt
Copy link
Contributor

@kahrendt kahrendt commented Aug 8, 2024

This requires an updated XMOS firmware that outputs fully cleaned up and partially cleaned up mic audio

This PR adds a new nabu_microphone component that has two child microphones, one for each channel. The yaml file shows how to set this up to pass the AEC audio to mWW and the fully cleaned up audio stream to the voice assistant. There is an optional parameter to amplify a microphone to match the built in factor of 4 in the current ESPHome code (since the mWW audio channel doesn't have gain control automatically applied). I've also rearranged the logic around the wake up noise so that the voice assistant pipeline starts only after the wakeup noise has played.

@kahrendt kahrendt force-pushed the kahrendt-20240808-microphone-cleanup branch from eb39d0f to d74d7eb Compare August 11, 2024 11:57
@kahrendt kahrendt marked this pull request as ready for review August 11, 2024 12:13
@kahrendt kahrendt merged commit 282f979 into dev Aug 11, 2024
5 checks passed
@kahrendt kahrendt deleted the kahrendt-20240808-microphone-cleanup branch August 11, 2024 12:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant