Here is the script source for the test
source for mic and sound (with mic gain control)
From the official Google AIY image:
-Downlowad the official Google AIY image here
-Write the image to an SD card using a card writing utility (Etcher.io is a popular tool for this)
-Insert your Rapsberry Pi Audio Shield in your Raspberry pI then turn it on
-Open a terminal (yes the black windows thing) and type:
sudo wget -O - aiy.raspiaudio.com | bash
-run the audio test "Check audio" on your desktop, reboot to allow volume control on the desktop
-Follow this guide to setup the credential to run Google's examples here
For the references the script souce is here
Try the Alexa voice assistant:
-Install a fresh version of RASPBIAN STRETCH WITH DESKTOP and follow the setup explain in the first section above "For raspbian user"
-Then follow this good instructable until the end
-You now have to setup the sound output type to edit:
sudo nano /etc/opt/AlexaPi/config.yaml
be sure that you have the following: sound section:
# Name of your microphone device: "raspberrypi"
# leave empty for default
# you can go here with alsa, pulse or others
# keep blank for the best audio output selected by the underlying code
# output device: "raspberrypi"
# currently supports ALSA only
# if left empty, won't be passed to the underlying library / command if it su$
# if it doesn't 100% will be used
# Means the same as above, but is used for media (playing music for example)
# Leave blank to use the same setting as for speech content
# Some device: "raspberrypi"
# value is the number of seconds of silence to pad the beginning and end of t$
# the sox handler supports this configuration option.
Also change the GPIO setting for the trigger button and led:
# GPIO Pin with button connected
# GPIO Pin for the playback/activity light
# GPIO Pin for the recording light
Then reboot, if you push on the button you can ask an important question to Alexa: