Skip to main content

Google AIY voice kit v1

Enable Driver

Edit/Add to /boot/config.txt:

#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 -2.0
    max_db 30.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
}

Verify

Verify that the sound card's output and input is recognized with

aplay -l
arecord -l

Test

Record a 10 second test.wav with:

arecord -c 2 -f cd -d 10 test.wav

Play test.wav with:

aplay test.wav