# Use the Google Voice HAT soundcard as the primary device by name (card id is "sndrpigooglevoi") options snd_rpi_googlevoicehat_soundcard index=0 # Mix multiple playback clients in software with a fixed low-cost format. pcm.dmixer { type dmix ipc_key 1024 ipc_perm 0666 slave { pcm "hw:0,0" format S16_LE rate 16000 channels 1 period_time 0 period_size 1024 buffer_size 4096 } } # Software playback volume (adjust with: amixer -c0 sset 'SoftMaster' 70%) pcm.softvol { type softvol slave.pcm "dmixer" control { name "SoftMaster" card 0 } min_dB -51.0 max_dB 0.0 } # Allow clients with mismatched sample formats/rates to use the mixer. pcm.playback { type plug slave.pcm "softvol" } # Defaults: playback through shared mixer + softvol, capture raw on the HAT pcm.!default { type asym playback.pcm "playback" capture.pcm "hw:0,0" } ctl.!default { type hw card 0 }