Get $10 Google AIY Version 1 working

So I bought this $10 Google Assistant from Amazon Prime.  Only to find out it doesnt work as easily as advertised.   It comes with a modified Raspian distro.  Here are the latest steps I did to get mine to work.  I spent a half a day muddling through commands,  so im not sure if previous steps might have led to it working but hope this helps someone…Note the audio volume in the navigation is disabled, but the google voice does work (when I did get the audio driver working, the google voice via python was not)

cd ~/AIY-projects-python

sudo scripts/install-alsa-config.sh

Outputted:

Renaming /home/pi/.asoundrc to /home/pi/.asoundrc.bak…
Renaming /etc/asound.conf to /etc/asound.conf.bak…
Installed voiceHAT ALSA config at /etc/asound.conf
Installed voiceHAT ALSA config at /home/pi/.asoundrc

I tried:  python checkpoints/check_audio.py

Outputted:

ImportError: No module named aiy.audio

python3 checkpoints/check_audio.py

Worked…Playing test sound….

So the module only works when you declare the Python3…..

before this i did compile the drivers by going to the /home/pi/drivers-raspi folder, and ran

sudo ./build.sh

the script appears to compile the drivers and created a boot/config.txt file….I believe the parameters in the config.txt file are run when the image boots up…here is a copy of mine in case anyone else may need to compare:

I added dtoverlay=googlevoicehat-soundcard to mine, I also added dtparam=audio=on but the driver script appears to have commented dtparam=audio=on  out to #dtparam=audio=on

# For more options and information see
# http://rpf.io/configtxt
# Some settings may impact device functionality. See link above for details

# uncomment if you get no picture on HDMI for a default “safe” mode
#hdmi_safe=1

# uncomment this if your display has a black border of unused pixels visible
# and your display can output without overscan

# uncomment the following to adjust overscan. Use positive numbers if console
# goes off screen, and negative if there is too much border
#overscan_left=16
#overscan_right=16
#overscan_top=16
#overscan_bottom=16

# uncomment to force a console size. By default it will be display’s size minus
# overscan.
#framebuffer_width=512
#framebuffer_height=384

# uncomment if hdmi display is not detected and composite is being output
hdmi_force_hotplug=1

# uncomment to force a specific HDMI mode (this will force VGA)
hdmi_group=2
hdmi_mode=35

# uncomment to force a HDMI mode rather than DVI. This can make audio work in
# DMT (computer monitor) modes
#hdmi_drive=2

# uncomment to increase signal to HDMI, if you have interference, blanking, or
# no display
#config_hdmi_boost=4

# uncomment for composite PAL
#sdtv_mode=2

#uncomment to overclock the arm. 700 MHz is the default.
#arm_freq=800

# Uncomment some or all of these to enable the optional hardware interfaces
dtparam=i2c_arm=on
dtparam=i2s=on
#dtparam=spi=on

# Uncomment this to enable the lirc-rpi module
dtoverlay=googlevoicehat-soundcard

# Additional overlas and parameters are documented /boot/overlays/README

# Enable audio (loads snd_bcm2835)
#dtparam=audio=on
# dtoverlay=dwc2
start_x=0
gpu_mem=128
#scaling_kernel=8
enable_uart=1
#dtoverlay=w1-gpio
start_x=1

 

 

Leave a Comment

You must be logged in to post a comment.

This site uses Akismet to reduce spam. Learn how your comment data is processed.