From c53556fe975be091272839f72ae81c3b650d192b Mon Sep 17 00:00:00 2001 From: Alex Kazaiev Date: Sat, 17 Jan 2026 16:20:15 -0600 Subject: [PATCH] =?UTF-8?q?Fix=20ReSpeaker=20device=20index:=20card=203=20?= =?UTF-8?q?=E2=86=92=20card=202?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit USB device enumeration changed after GPIO rewiring for I2S audio. TODO: Consider udev rule for stable device naming. --- headmic.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/headmic.py b/headmic.py index fb281a5..b2791b9 100644 --- a/headmic.py +++ b/headmic.py @@ -52,7 +52,7 @@ PORCUPINE_ACCESS_KEY = os.environ.get("PORCUPINE_ACCESS_KEY", "") WAKE_WORD_PATH = os.environ.get("WAKE_WORD_PATH", "/home/alex/headmic/Hey-Vivi_en_raspberry-pi_v4_0_0.ppn") SAMPLE_RATE = 16000 -ALSA_DEVICE = "plughw:3,0" # ReSpeaker 4 Mic Array - card 3, device 0 +ALSA_DEVICE = "plughw:2,0" # ReSpeaker 4 Mic Array - card 2, device 0 VAD_AGGRESSIVENESS = 2 # 0-3, higher = more aggressive SILENCE_FRAMES = 50 # ~1.5 sec of silence to stop (at 30ms frames)