From 1ec37a43f670f1ae0d0c7ec7f85af3d84ca93990 Mon Sep 17 00:00:00 2001 From: legop3 Date: Thu, 27 Nov 2025 18:47:03 -0500 Subject: [PATCH] target the hat instead of 0,0 --- pi/asound.conf | 10 +++++----- pi/bin/video-publisher.sh | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pi/asound.conf b/pi/asound.conf index 71b19816..5c9b48a0 100644 --- a/pi/asound.conf +++ b/pi/asound.conf @@ -1,14 +1,14 @@ -# Use the Google Voice HAT soundcard as index 0 (primary card) +# Use the Google Voice HAT soundcard as the primary device by name (more robust than numeric card index) options snd_rpi_googlevoicehat_soundcard index=0 -# Simple defaults: direct playback/capture on card 0 +# Simple defaults: direct playback/capture on the voice HAT pcm.!default { type asym - playback.pcm "plughw:0,0" - capture.pcm "plughw:0,0" + playback.pcm "plughw:sndrpigooglevoicehat_soundcar,0" + capture.pcm "plughw:sndrpigooglevoicehat_soundcar,0" } ctl.!default { type hw - card 0 + card sndrpigooglevoicehat_soundcar } diff --git a/pi/bin/video-publisher.sh b/pi/bin/video-publisher.sh index 80a7cff5..2369455c 100644 --- a/pi/bin/video-publisher.sh +++ b/pi/bin/video-publisher.sh @@ -26,7 +26,7 @@ AUDIO_BITRATE="${AUDIO_BITRATE:-64000}" # Normalize device if env still says "default" if [[ "${AUDIO_DEVICE}" == "default" ]]; then - AUDIO_DEVICE="plughw:0,0" + AUDIO_DEVICE="plughw:sndrpigooglevoicehat_soundcar,0" fi # Flip the camera 180deg (supported by rpicam-vid/libcamera-vid) FLIP_ARGS=(--rotation 180)