top of page

Hackathon Day 1 - Building Google Assistant


No class this weekend (7/21). Study material below for next week hackathon.

Don't forget to bring your monitors, keyboards, Raspberry Pi, USB speaker & mike, and extra SD card for a new image.

Install Google Assistant image:

- Uncle Hao will airdrop image during the class

- Download Etcher and flash your SD card (https://etcher.io/)

- Join network, setup

- sudo apt-get update

- sudo apt-get upgrade

Troubleshoot sound:

- Test speaker: speaker-test -t wav

- Test mic: arecord --format=S16_LE --duration=5 --rate=16000 --file-type=raw out.raw

- Play recording: aplay --format=S16_LE --rate=16000 out.raw

- alsamixer

- arecord -l

Google Voice Kit Edits

>> Edit Config File

sudo leafpad /boot/config.txt

dtparam=aduio=on #dtoverlay=i2s-mmap #dtoverlay=googlevoicechat-soundcard

>> Edit asound.conf

sudo leafpad /etc/asound.conf

Replace with the contents below

pcm.!default { type asym capture.pcm "mic" playback.pcm "speaker" } pcm.mic { type plug slave { pcm "hw:1,0" } } pcm.speaker { type plug slave { pcm "hw:0,0" } }

>> Edit check_audio.py file

sudo leafpad /home/pi/voice-recognizer-raspi/checkpoints/check_audio.py

In here change

VOICEHAT_ID = 'bcm2835'

Setup Google API:

https://aiyprojects.withgoogle.com/voice-v1/#users-guide-connect-to-google-cloud-platform

Additional Resources:

https://becominghuman.ai/turn-your-raspberry-pi-into-homemade-google-home-9e29ad220075

https://pimylifeup.com/raspberry-pi-google-assistant/

https://aiyprojects.withgoogle.com/voice-v1/

https://www.hackster.io/Salmanfarisvp/googlepi-google-assistant-on-raspberry-pi-9f3677

https://www.androidauthority.com/build-google-assistant-raspberry-pi-770296/


Featured Posts
Recent Posts
Archive
Search By Tags
No tags yet.
Follow Us
  • Facebook Basic Square
  • Twitter Basic Square
  • Google+ Basic Square
bottom of page