Since we have a fresh install of Raspbian, we’re going to install the Google Voice AIY software manually. Follow the instructions on the official Google AIY Github repo here to install everything. Since these instructions can change at any time, I don’t want to duplicate them here. 🙂 However, read the notes below before installing!
Troubleshooting
I ran into a two issues when installing the Voice Kit software — this is actually due to two bugs in Google’s software itself at the time I wrote this guide. They may be resolved by now, but if you run into any issues, use these workarounds:
Issue #1: ImportError: No module named ‘aiy’
This error also occurs when running env/bin/python checkpoints/check_audio.py
.
Cause: A change removed the env
folder. Github issue
Solution: Revert to an earlier version of the AIY software using the instructions here. (thanks pyorgue!)
Issue #2: Failed to apply overlay ‘0_googlevoicehat-soundcard’ (kernel)
This error occurs when running check_audio.py
and looks something like this:
* Failed to apply overlay '0_googlevoicehat-soundcard' (kernel)
Traceback (most recent call last):
File "checkpoints/check_audio.py", line 180, in
main()
File "checkpoints/check_audio.py", line 174, in main
enable_audio_driver()
File "checkpoints/check_audio.py", line 169, in enable_audio_driver
subprocess.check_call(['sudo', configure_driver])
File "/usr/lib/python3.5/subprocess.py", line 271, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['sudo', 'scripts/configure-driver.sh']' returned non-zero exit status 1
Cause: The AIY software is incompatible with the latest version of the Raspberry Pi kernel.
Solution: Downgrade the kernel to version 4.9
:
sudo rpi-update 5c80565c5c0c7f820258c792a98b56f22db2dd03
sudo reboot
Return here after successfully installing the Google Voice AIY software!