diff --git a/scripts/.asoundrc b/scripts/.asoundrc new file mode 100644 index 00000000..e5b102f8 --- /dev/null +++ b/scripts/.asoundrc @@ -0,0 +1,30 @@ +options snd_rpi_googlemihat_soundcard index=0 + +pcm.softvol { + type softvol + slave.pcm dmix + control { + name Master + card 0 + } +} + +pcm.micboost { + type route + slave.pcm dsnoop + ttable { + 0.0 30.0 + 1.1 30.0 + } +} + +pcm.!default { + type asym + playback.pcm "plug:softvol" + capture.pcm "plug:micboost" +} + +ctl.!default { + type hw + card 0 +} diff --git a/scripts/install-alsa-config.sh b/scripts/install-alsa-config.sh index eb725714..e895becd 100755 --- a/scripts/install-alsa-config.sh +++ b/scripts/install-alsa-config.sh @@ -36,4 +36,5 @@ for rcfile in "$asoundrc" "$global_asoundrc"; do done sudo cp scripts/asound.conf "$global_asoundrc" +sudo cp scripts/.asoundrc "$asoundrc" echo "Installed voiceHAT ALSA config at $global_asoundrc"