Google AIY voice kit v1
Enable the driver:
Edit/Add to /boot/config.txt:
dtoverlay=i2s=on
...
#dtparam=audio=on
...
# Google AIY voice kit v1
dtoverlay=i2s-mmap
dtoverlay=googlevoicehat-soundcard
ALSA configuration:
Create /etc/asound.conf:
options snd_rpi_googlevoicehat_soundcard index=0
pcm.softvol {
type softvol
slave.pcm dmix
control {
name Master
card 0
}
min_dB -5.0
max_dB 30.45.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
}
Reboot after editing asound.conf.
Verify:
Verify that the sound card's output and input is recognized with
aplay -l
arecord -l
Test:
Record a 5 second test.wav with:
arecord -c 2 -f cd -d 5 test.wav
Play test.wav with:
aplay test.wav
Set recording/playback volume
alsamixer