Skip to content

Latest commit

 

History

History
107 lines (73 loc) · 3.7 KB

README.asciidoc

File metadata and controls

107 lines (73 loc) · 3.7 KB

Mycroft Voice Assistant

Necessary Hardware

  • SD Card

  • Raspberry Pi 3

  • Google AIY Voice Bonnet v2 (for the mic + speaker addon to the raspberry). Choice of hardware is important! Steps below assume this hardware.

    • hardware assembly guide

    • Raspberry Pi zero is too weak for mycroft, so replaced with Raspberry Pi 3b (or greater!)

    • DIY cardboard improvements to fit in the raspberry pi 3 (great fun with kids!)

Approach 1: Picroft (the working one)

  • Burn the Picroft image to an SD card, as per these instructions

    • No point to run mycroft on k3s because there is no failover that can happen anyway

    • the SD image is the recommended approach, based on my experience. Both docker image and installation of package resulted in various issues.

  • Boot the device

  • SSH into the device (pi/mycroft) and proceed with setup

  • DO NOT select the google aiy v1 voice kit does not work with v2, so just select a usb microphone and analog speaker, for now.

Now, let’s move on to installing the drivers for the Voice Bonnet:

# 1. Upgrade to kernel 5.10.103-v8+
sudo apt-get update --allow-releaseinfo-change && sudo apt-get upgrade

# 2. reboot to load new kernel
sudo reboot

# 3. install voice bonnet drivers
echo "deb https://packages.cloud.google.com/apt aiyprojects-stable main" | sudo tee /etc/apt/sources.list.d/aiyprojects.list
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
sudo apt-get update
sudo apt-get install -y aiy-voicebonnet-soundcard-dkms

# 4. pulseaudio should already be installed

# sudo apt-get install pulseaudio
sudo apt-get install pulseaudio-module-zeroconf
sudo mkdir -p /etc/pulse/daemon.conf.d/
echo "default-sample-rate = 48000" | sudo tee /etc/pulse/daemon.conf.d/aiy.conf
# disables built-in audio
sudo sed -i -e "s/^dtparam=audio=on/#\0/" /boot/config.txt


# 5. ensure /boot/config.txt does NOT have `dtoverlay=googlevoicehat-soundcard`

sudo reboot

Mycroft Skills

Sonos skill

My picroft was missing the below libraries:

sudo apt-get install libxml2-dev libxslt1-dev

Then follow the skill installation instructions, i.e. :

. mycroft-core/venv-activate.sh
msm install https://github.com/smartgic/mycroft-sonos-controller-skill.git

Raspbian Approach (unsuccessful, just for documentation)

Please IGNORE this section, unless you are looking for help debugging issues, or just…​ curious

sudo apt-get update --allow-releaseinfo-change && sudo apt-get upgrade
echo "deb https://packages.cloud.google.com/apt aiyprojects-stable main" | sudo tee /etc/apt/sources.list.d/aiyprojects.list
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
sudo apt-get update
sudo apt-get install -y aiy-voicebonnet-soundcard-dkms

install pulseaudio on raspberry pi 3

sudo apt-get install pulseaudio pulseaudio-module-zeroconf
sudo mkdir -p /etc/pulse/daemon.conf.d/
echo "default-sample-rate = 48000" | sudo tee /etc/pulse/daemon.conf.d/aiy.conf
sudo sed -i -e "s/^dtparam=audio=on/#\0/" /boot/config.txt
  • Install docker

  • Start mycroft