Hey guys, I hope you're enjoying your summer. Today we're going to learn about
the Google AIY Voice kit this is what it looks like and this is what you're going to expect
So let's get started
This is what's inside the Magpie. which also which also has instructions
well, the instructions
so this is how it looks like when we take it out of its covers
This is the voice hat
This is the voice hat microphone
This is our Raspberry Pi
This is our speaker, this is our Arcade button
these are the standoffs
and last but not least these are wires
first go to page number 16 in your magpi then read the instructions that's
what I'm gonna do right now first step insert the standoffs how to do that is
take your Raspberry Pi and insert two standoffs in the opposite holes of the
GPIO pins these two holes I'm gonna do that right now
Here are the standoffs. Step 2 placing the Voice Hat on the Raspberry
Pi here's how you do it first line up the headers with the 40 GPIO pins on the
Raspberry Pi, if you don't do this the pins will probably bend
next you put them in, now check no pins are left out so it's good to snap
once you're halfway through snap these
then, finish the rest
Step three, putting the speaker wires in the Voice Hat, the black goes in the
negative and the red goes in the positive first unscrew the screws next
there's a plus over here and a minus over here
put the red near the plus put the black near the minus.
then just push them in. next we're gonna screw the screws back. step 5
the button cable we're gonna use this end first we're gonna attach it here. Here to be more clear.
there's a bumpy side and a smooth side. the bumpy side always goes here where
the little hoops are.
step 6 attaching the microphone board cable to
the microphone board look at the bumpy side then look at empty side put the
bumpy side on to the empty side.
step 7 attaching the microphone to the voice hat same thing we'll pick the
bumpy side, meet it with the empty side put it there. step eight assembling the box
grab your bigger box and then as you can see here they described all the folds.
first, well, unflatten box then
fold. They've described them in order so first do one then fold two
step 9 secure the box which we've already done
step number 10 to 18 folding the flaps and putting everything into the box
we're going to start with folding the flaps 1 & 2 next we're going to fold the
thing that says Raspberry Pi goes here
now, this is for the speakers,
you fold this up, this part folds
and then this is where speakers gonna slide in
I almost forgot, you have to fold this
now we're gonna put the Raspberry Pi where it says Raspberry Pi goes here
so we are gonna put the "1" section here and uhh ..
Now, we have to fold the number two in between the USB ports and the Voice Hat
Next, slide the speaker in
First, take your box and put everything in make sure the speaker side is lined
up with the side where the holes are
before you proceed further check if everything's accessible this is the
Power, HDMI, USB ports, Ethernet port and a Micro SD Card. Step 19, add the arcade button to
the box here's how you do it first unscrew the ring
Next, add it through the hole which says button
here's how it looks on the inside and here's how it looks on the outside
Step number 21 wiring up the button if you look closely inside your button this is
crown shaped logo this is how you're gonna tell where to wire your button the
black goes on the top right of the button and the white goes on the top
left of the button
Pink goes opposite to black and blue goes opposite to white
Step number 22, check the wires, this should be fit and snug and they shouldn't be wobbling too
much
step number 23 attaching the microphone
you need double-sided tape for this but I didn't have any so I'm just going to
use these
make sure you don't cover the holes
there, make sure the holes are matching with these holes on the microphone board
step number 24 check the microphone board, make sure the holes are lined up with
the box holes. Step number 25, finish up the build.
Carefully close the box, then, all done
let's move on to the software onto the PC
We assembled the hardware, next we have to setup the software.
First and foremost, you will need the Google AIY Raspberry pi image, which you will need to write on your Micro SDcard
card I'll leave the link to download the image file and how to write it on your
micro SD card once you do that next you'll insert the micro SD card to the
Raspberry Pi we placed inside of Google AIY box
I put my SD card in my Raspberry Pi
now let's boot it up how you do that is plug in the HDMI cable then you can plug
in your power cable this is how it looks like once you booted it up after that we
need to connect to the internet click on this internet thing over here now let's
check the audio you can do that by double clicking on the check audio file
what you'll expect is for to say front Center
front center press Y and then you'll have to record it when you're ready
you'll have to say testing one two three testing one two three
did you hear your own voice
press ENTER to close congratulations you've successfully built your Google
AIY voice kit now let's bring it to life now we're going to build our voice
recognizer how to do that is go on chromium and type in
console.cloud.google.com you'll see a sign-in screen
sign in with your Google account I've already signed in mine to enable APIs, we can do this by clicking three line icon
going to api's and services
enable API services
and then you have to search for
Google assistant API
and click on enable
now we're going to create the credentials how you'll do that is go to
three lines and then go to api's and services and click on credentials
click on create' credentials click on olaf client ID then click on configure
consent screen
then just write the name of your project here
then click on save
after that you click on other and then you write the name of your project again
create don't worry about memorizing these just click OK next you have to
download the JSON file you can do this by clicking on this download JSON icon
then when we open this file downloads you'll see that it appeared here rename
it as assistant.JSON, OK
next we'll go to this tab called my account Google com then scroll down a
little bit and then if you haven't done it yet enabled it the web and app activity - then if
you haven't checked Marked this box check mark it.
now we have to cut the JSON file
and put it in the pi folder just go down right click and paste. there it is
now go on to the terminal and go this directory SRC slash example slash voice
then type in this command assistant underscore library underscore demo dot
py
okay Google can I buy land on Mars here's a summary from the website by
Mars.com you too can become a planet Mars land owner by purchasing acres of
land on planet Mars lunar land is one of the first companies in the world to
possess a legal trademark and copyright for the sale of extraterrestrial
property within the confines of our solar system there you have it
your own personal voice recognizer.
Today we learnt how to build how to build our
personal voice recognizer on the Google AIY voice kit, hope you enjoyed the video
please like subscribe and share and until next time this is 10v signing off
see ya
Không có nhận xét nào:
Đăng nhận xét