Fix ReSpeaker device index: card 3 → card 2
USB device enumeration changed after GPIO rewiring for I2S audio. TODO: Consider udev rule for stable device naming.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user