Google Assistant on Pi with Extended Features

Voice Activated Google Assistant for all Raspberry Pi Boards

Similar projects worth following
1. Headless auto start on boot with multiple custom wakeword activation triggers.
2. Voice control of GPIOs without IFTTT,, 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:

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
  • 3
    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/  
    sudo /home/pi/GassistPi/audio-drivers/USB-DAC/scripts/ 

          3.2. AIY-HAT users,

    sudo chmod +x /home/pi/GassistPi/audio-drivers/AIY-HAT/scripts/  
    sudo /home/pi/GassistPi/audio-drivers/AIY-HAT/scripts/  
    sudo chmod +x /home/pi/GassistPi/audio-drivers/AIY-HAT/scripts/  
    sudo /home/pi/GassistPi/audio-drivers/AIY-HAT/scripts/  

         3.3. USB MIC AND HDMI users,

    sudo chmod +x /home/pi/GassistPi/audio-drivers/USB-MIC-HDMI/scripts/  
    sudo /home/pi/GassistPi/audio-drivers/USB-MIC-HDMI/scripts/  

          3.4. USB MIC AND AUDIO JACK users,

    sudo chmod +x /home/pi/GassistPi/audio-drivers/USB-MIC-JACK/scripts/  
    sudo /home/pi/GassistPi/audio-drivers/USB-MIC-JACK/scripts/ 

    3.5. CUSTOM VOICE HAT users,

    sudo chmod +x /home/pi/GassistPi/audio-drivers/CUSTOM-VOICE-HAT/scripts/  
    sudo /home/pi/GassistPi/audio-drivers/CUSTOM-VOICE-HAT/scripts/  
    sudo chmod +x /home/pi/GassistPi/audio-drivers/CUSTOM-VOICE-HAT/scripts/  
    sudo /home/pi/GassistPi/audio-drivers/CUSTOM-VOICE-HAT/scripts/ 

    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?



Similar Projects

Does this project spark your interest?

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