Skip to content
This repository has been archived by the owner on Mar 15, 2022. It is now read-only.

Commit

Permalink
Add script to install AIY Voice HAT driver
Browse files Browse the repository at this point in the history
  • Loading branch information
t1m0thyj committed Oct 25, 2018
1 parent 31f8a5d commit 960e03b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions install-hat.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
echo "deb https://dl.google.com/aiyprojects/deb stable main" | sudo tee -a /etc/apt/sources.list.d/aiyprojects.list > /dev/null
wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
sudo apt-get update

sudo apt-get install pulseaudio
mkdir -p ~/.config/pulse/
echo "default-sample-rate = 48000" > ~/.config/pulse/daemon.conf

sudo apt-get install aiy-dkms aiy-voicebonnet-soundcard-dkms aiy-voicebonnet-routes

echo "dtoverlay=i2s-mmap
dtoverlay=googlevoicehat-soundcard" | sudo tee -a /boot/config.txt > /dev/null
echo "blacklist snd_bcm2835" | sudo tee -a /etc/modprobe.d/alsa-blacklist.conf > /dev/null

echo "Reboot your Pi to enable the AIY Voice HAT driver."
echo "If you want to test audio after rebooting, run the Python script $HOME/AIY-projects-python/src/checkpoints/check_audio.py"

0 comments on commit 960e03b

Please sign in to comment.