From cf49f238cad92f04e64d368415d5145a6b4995c7 Mon Sep 17 00:00:00 2001 From: Roman Priesol Date: Tue, 27 Oct 2026 21:16:41 +0100 Subject: [PATCH] stackchan: fix mic issues --- mcu-stackchan.yaml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/mcu-stackchan.yaml b/mcu-stackchan.yaml index 4e9505c..31221c5 100644 --- a/mcu-stackchan.yaml +++ b/mcu-stackchan.yaml @@ -85,6 +85,11 @@ external_components: - source: github://randybb/esphome-components components: [audio_spectrum] refresh: 1h + # stop the microphone before the response with streaming STT (HA Cloud), drop once upstream + - source: + type: local + path: /home/randy/Projects/repos/esphome-va-mic-stop/esphome/components + components: [voice_assistant] globals: - id: in_love @@ -244,7 +249,7 @@ audio_adc: i2c_id: i2c_bsp bits_per_sample: 16bit sample_rate: 16000 - mic_gain: 36 + mic_gain: 24 audio_dac: - platform: aw88298 @@ -330,7 +335,8 @@ voice_assistant: media_player: media_out micro_wake_word: mww noise_suppression_level: 2 - auto_gain: 31dBFS + # no extra gain: a raised noise floor keeps the HA VAD from hearing the end of speech + auto_gain: 0dBFS on_client_connected: - micro_wake_word.start: - delay: 2s