AI voice assistants are the latest new hotness to come out of Silicon Valley, but before they were in every electronics department, they were much the exclusive playground of the DIY tinkerer. With kits like Google’s AIY line, hackers and makers can build their own voice assistants with little more than the good ol’ Raspberry Pi! In this video, I’ll walk you through how to set up the Google AIY Voice kit on a Raspberry Pi and run one of the demo python scripts to start building your own voice interfaces!
AIY Custom Raspbian http://aiyprojects.withgoogle.com/
Google Developer Console http://console.developers.google.com
If you’re having trouble with segmentation faults crashing the Python demos, invoke these commands as Pi to install the earlier Google Assistant Library Python modules:
pip3 install google-assistant-library==1.0.0
pip3 install google-assistant-library
If you’re receiving the following error message
File "/home/pi/AIY-projects-python/src/aiy/assistant/auth_helpers.py", line 75, in _credentials_flow_interactive
webbrowser.register('chromium-browser', None, webbrowser.Chrome('chromium-browser'), -1)
TypeError: register() takes from 2 to 3 positional arguments but 4 were given
Then change line 75 in
/home/pi/AIY-projects-python/src/aiy/assistant/auth_helpers.pyto the following:
webbrowser.register('chromium-browser', None, webbrowser.Chrome('chromium-browser'), preferred=True)
Be sure to keep the indentation and spacing the same as the original as it the code is sensitive.