close-circle
Close
0%
0%

Google Assistant on Pi with Extended Features

Voice Activated Google Assistant for all Raspberry Pi Boards

Similar projects worth following
close
Features:
1. Headless auto start on boot with multiple custom wakeword activation triggers.
2. Voice control of GPIOs without IFTTT, api.ai, Actions SDK.
3. Voice control of servo connected to RPi GPIO.
4. Safe shutdown RPi using voice command.
5. Stream Music from YouTube.
6. Indicator lights for assistant listening and speaking events.
7. Startup audio and audio feedback for wakeword detection..

Project Git Page: https://github.com/shivasiddharth/GassistPi

Related videos:

Though the above video shows the AIY kit, its Google Assistant SDK running inside.

  • 1 × Google Assistant SDK
  • 1 × Raspberry Pi 3 B
  • 1 × Microphone
  • 1 × Speaker
  • 1 × Memory card

View all 6 components

View all 3 project logs

  • 1
    Burn a fresh copy of OS

    This is implemented in Python2 so your existing Google Assistant may not work. So please start by making a fresh copy of latest Raspbian

  • 2
    Clone the Project. Open the Raspberry Pi terminal and enter the following command.
    git clone https://github.com/shivasiddharth/GassistPi
  • 3
    INSTALL AUDIO CONFIG FILES
    1. Update OS and Kernel
    sudo apt-get update  
    sudo apt-get install raspberrypi-kernel  
    1. Restart Pi
    2. Choose the audio configuration according to your setup. (Run the commands till you get .bak notification in the terminal)

          3.1. USB DAC users,

    sudo chmod +x /home/pi/GassistPi/audio-drivers/USB-DAC/scripts/install-usb-dac.sh  
    sudo /home/pi/GassistPi/audio-drivers/USB-DAC/scripts/install-usb-dac.sh 

          3.2. AIY-HAT users,

    sudo chmod +x /home/pi/GassistPi/audio-drivers/AIY-HAT/scripts/configure-driver.sh  
    sudo /home/pi/GassistPi/audio-drivers/AIY-HAT/scripts/configure-driver.sh  
    sudo chmod +x /home/pi/GassistPi/audio-drivers/AIY-HAT/scripts/install-alsa-config.sh  
    sudo /home/pi/GassistPi/audio-drivers/AIY-HAT/scripts/install-alsa-config.sh  

         3.3. USB MIC AND HDMI users,

    sudo chmod +x /home/pi/GassistPi/audio-drivers/USB-MIC-HDMI/scripts/install-usb-mic-hdmi.sh  
    sudo /home/pi/GassistPi/audio-drivers/USB-MIC-HDMI/scripts/install-usb-mic-hdmi.sh  

          3.4. USB MIC AND AUDIO JACK users,

    sudo chmod +x /home/pi/GassistPi/audio-drivers/USB-MIC-JACK/scripts/usb-mic-onboard-jack.sh  
    sudo /home/pi/GassistPi/audio-drivers/USB-MIC-JACK/scripts/usb-mic-onboard-jack.sh 

    3.5. CUSTOM VOICE HAT users,

    sudo chmod +x /home/pi/GassistPi/audio-drivers/CUSTOM-VOICE-HAT/scripts/custom-voice-hat.sh  
    sudo /home/pi/GassistPi/audio-drivers/CUSTOM-VOICE-HAT/scripts/custom-voice-hat.sh  
    sudo chmod +x /home/pi/GassistPi/audio-drivers/CUSTOM-VOICE-HAT/scripts/install-i2s.sh  
    sudo /home/pi/GassistPi/audio-drivers/CUSTOM-VOICE-HAT/scripts/install-i2s.sh 

    Those Using HDMI/Onboard Jack, make sure to force the audio. Open the terminal and enter the following command.

    sudo raspi-config  

    Select advanced options, then audio and choose to force audio

    Those using any other DACs or HATs install the cards as per the manufacturer's guide and then you can try using the USB-DAC config file after changing the hardware ids

    1. Restart Pi
    2. Check the speaker using the following command
    speaker-test -t wav  

View all 8 instructions

Enjoy this project?

Share

Discussions

Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates