Assembly and trouble shooting 


Building the AIY Voice Kit

Follow these detailed instructions steps 1 - 37

Pay particular attention to the orientation of the ribbon cables, make sure they face the right way and are pushed in all the way before closing the clamp. Do not do step 38 and insert the microSD card that is in the set.

WiFi Setup

We need to provide the Raspberry Pi in the voice kit with the name and the password for the WiFi connection. Use the same WiFi you computer or laptop is connected to. Here are the steps

Powering up

Follow these instructions to power up the voice kit and let it boot. Make sure you see the green light blinking  after a few seconds indicating activity. If it successfully starts up, you will hear a beep and the green LED in the front lights up - be patient, the first boot might take a minute or two.

Connecting to the voice kit

For those who cannot wait, the link http://orcspi-voice.local:5555 will connect you to Jupyter 😎

You can also connect to the voice kit using ssh. On Mac and Window you should have a terminal program. Open is and enter this command ssh pi@orcspi-voice.local - answer yes to the first finger print question, then enter the password (same as last class, Slack me if you need it). You should see a command prompt for your Raspberry Pi where you can enter commands.

Creating Google Assistant Credentials

Follow the setup steps below until slide 28.

AIYVoiceMasterClass-SlidesOnline

Now we have the needed file with credentials on the computer and need to transfer it to the Raspberry Pi and and rename it.to assistant.json. In the following steps you need to replace <secret_file> with the name of the file you downloaded above (is starts with client_secret_ and is really long 😎)

Method 1

Method 2

Open terminal on Pi.

Testing sound

Open a terminal on the Raspberry Pi (see above) . First we adjust the volume of the speaker. Enter the command alsamixer.  Use the left/right arrow keys until Speaker is selected (red arrow). Then use the up/down keys to set the volume to 40 or so. Press ESC key to exit.

Then use the command below to test the sound

/home/pi/AIY-projects-python/checkpoints/check_audio.py

Starting the assistant

You need to start the Google Assistant manually using the command below in a terminal on the Raspberry Pi (we will use a Notebook later)

./examples/assistant_grpc_demo.py

This requires you uploaded the credentials file. The first time it will show a link in the terminal. Open that link in your web browser and you see a Google login. Sign in with the same Google account you used to setup and added as test user. It will show a warning. Allow and copy the password code it shows at the end. The paste that code in the terminal window. The assistant should complete the start up. This step is only needed the first time you run the assistant.

If all went well the button on the voice box turns red. Press the button, wait a second or so (button turns brighter red) and then say for example 'Sing me a song' 🎶

Shutting down

The Raspberry Pi is a 'real' computer and just like a laptop or computer it needs to be shutdown before turning off power. Many times just turning it off will be ok, but it has the (small) danger of damaging the file system on the microSD card and not booting again. The proper way to shutdown is

Trouble shooting

WiFi connectivity

If the link above does not connect you to your voice kit, here are a few trouble shooting steps. Try them in order and check after every step if connecting starts working.

Voice Kit / Raspberry Pi does not turn on

So you built the voice kit, insert the microSD card and powered it up, but there is no green light blinking on the Raspberry Pi (see photo where to look). Here are some trouble shooting tips. Note if the voice kit gets too hot to touch or you notice a 'burned smell', unplug it immediately - you have some wiring issue. Here are things you can try, easiest first 🙂

Another common reason for the Raspberry Pi not to start is a missing or corrupted microSD card. Here is what to check:

Any questions or a cool project to share, email us at masterclass@orcsgirls.org