planning audio on pi

This commit is contained in:
legop3
2025-11-27 15:21:10 -05:00
parent 63871ccd17
commit 871e04a8ba
2 changed files with 64 additions and 0 deletions
+37
View File
@@ -0,0 +1,37 @@
# Use the Google Voice HAT soundcard as index 0 (primary card)
options snd_rpi_googlevoicehat_soundcard index=0
# Define a soft volume control for the speaker (Playback)
pcm.softvol {
type softvol
slave.pcm "dmix" # route through dmix for mixing
control {
name "Master" # name of volume control
card 0
}
}
# Define a software volume (gain) for the microphone (Capture)
pcm.micboost {
type softvol
slave.pcm "dsnoop" # route through dsnoop for sharing
control {
name "Micro" # name of mic gain control
card 0
}
min_dB -10.0
max_dB 50.0
resolution 256
}
# Set default devices to use the above for asymmetrical playback/capture
pcm.!default {
type asym
playback.pcm "plug:softvol"
capture.pcm "plug:micboost"
}
ctl.!default {
type hw
card 0
}