How to make Google Assistant on Raspberry Pi

  • calendar_today  Jan, 25 2019
  • visibility  4,246

As Google said "Google Assistant - Your own personal google". So why not to be more personal with google. Today, in this article, we're going to teach you how you can make your own Google Assistant. So let's start...

Step 1: Components you need

  1. Raspberry Pi 3 Model B
  2. Seeed ReSpeaker Mic Array with an audio jack
  3. SD card with Raspberry Pi Image
  4. USB cable
  5. Speaker or Earphones with 3.5mm Audio cable
  6. PC or MAC



You are feeling so excited right for making your own Google Assistant Right? We were too. But first, we want to tell you about the word “Hotword Detection”.

What is Hotword Detection?

Hotword is an audio listening module and Detection means “To catch something”. This module can catch your voice from 2 meters away. This module uses speech recognition which follows the spoken commands by giving user input.

Step 2: Take your Raspberry Pi and Install the Google Assistant Library

The second is a little bit difficult but don’t worry. “With difficulty is surely ease.” Install the Google assistant library on Raspberry Pi by following the Google Git-Hub Official Guide.

If you’ve any query related to the installation, kindly follow this issues guide.

As you’ve completed the Google assistant library installation, so now you are able to use the “Hey-Google” demo.

Step 3: Download file

At this step, you’ve to download this GitHub File.

Step 4: Testing

For controlling the pixel ring of Mic Array via USB HID, you have to run the By doing this method, the Respeaker Mic Array will begin blinking. 

If you are not wanting to approach the USB with sudo, then you’ve to add a udev.rules  file to /etc/udev/rules.d:

The second part of the testing is interesting. From Mic Array, you’ve to read the 8 channels audio and measure the DOA of sound. DOA means “Direction of Arrival”. After this, the existing LEDs will present you the direction of the sounds.

Now perform the VAD Test (Voice Activity Detection) and again measure the quality of DOA Test (Direction of Arrivals). By doing this, once again, the LEDs exists on the Mic Array will present you the direction of sounds.

At the fourth step of testing, perform KWS Test (Keyword Spotter) and then again perform DOA test.

Get the Snowboy work and run python Now, for waking up the Mic Array, you’ve to say “Alexa”. If she is hearing you, then the LEDs on Mic Array will start showing you the direction of the sounds.

Step 5: Run the Google Assistant

Well, at last, we’re near to our success. Now, run the Google Assistant. Remember, first you’ve to activate the Python Virtual Environment. Configure it Right Now. Second most prior able thing is “Check your Raspberry Pi that is it able to visit or not. If yes, then it’s good”. Then run.

If you want to awake the Google Assistant, then please say “Hey Google”. Hurrah! Google Assistant is hearing you. You can enjoy it now.