element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • About Us
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
element14 presents
  • Challenges & Projects
  • More
element14 presents
e14 presents blogs How To Use A Custom Wake Word With Google Assistant
  • Blog
  • Forum
  • Documents
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join element14 presents to participate - click to join for free!
  • Share
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: airbornesurfer
  • Date Created: 1 May 2020 7:30 PM Date Created
  • Views 4587 views
  • Likes 3 likes
  • Comments 0 comments
  • wake word
  • google aiy
  • project mego
  • google aiy voice kit
  • google assistant
  • snowboy
Related
Recommended

How To Use A Custom Wake Word With Google Assistant

airbornesurfer
airbornesurfer
1 May 2020
image
Raspberry Pi 2XL Robot Assistant Part 1

element14 presents  |  Matt Eargle's VCP Profile |  Project Videos

 

The new voice assistants like Siri, Cortana, Alexa, and Google (itself?) are becoming more and more ubiquitous as we race toward a "Star Trek"-style omnipresent computing interface, but what if you don't like invoking the name of your chosen corporate overlord when you use the assistant's features? What if you could speak "Okay, Computer" into an Apple mouse like Scotty did? In this video, I'll show you how to set up a custom wake word with your voice assistant using a platform called "Snowboy".

You don't have permission to edit metadata of this video.
Edit media
x
image
Upload Preview
image

 

PARTS/TOOLS:

https://www.newark.com/adafruit/4080/google-aiy-voice-kit-for-raspberry/dp/96AC6443?st=google%20aiy%20voice

https://www.newark.com/raspberry-pi/rpi3-modbp/sbc-arm-cortex-a53-1gb-sdram/dp/49AC7637?pf=815332051&mf=103582%2C107473&…

https://www.newark.com/raspberry-pi/sdsdqad-016g/blank-media-flash-memory-type/dp/32AC8376

https://www.newark.com/pro-elec/28-19339/adaptor-ac-dc-5-1v-2-5a/dp/51AC7144

RESOURCES:

Snowboy

Snowboy GitHub

GassistPi GitHub

How To Set Up Snowboy On Raspberry Pi:

Install the Sox, PortAudio, and PyAudio dependencies

sudo apt-get install python-pyaudio python3-pyaudio sox
pip install pyaudio

 

 

Install Swig by compiling from source

wget http://downloads.sourceforge.net/swig/swig-3.0.10.tar.gz
tar -xvf swig-3.0.10.tar.gz
sudo apt-get install libpcre3 libpcre3-dev
cd swig-3.0.10
./configure --prefix=/usr   \ 
   --without-clisp   \ 
   --without-maximum-compile-warnings &&
make
make install &&
 install -v -m755 -d /usr/share/doc/swig-3.0.10 &&
 cp -v -R Doc/* /usr/share/doc/swig-3.0.10

 

Install the Atlas library

sudo apt-get install libatlas-base-dev

 

 

Verify audio recording and playback work

arecord -f cd -d 5 test.wav
aplay test.wav

 

Clone the Snowboy repo

git clone https://github.com/Kitt-AI/snowboy.git

 

Compile the Snowboy Python wrapper

cd snowboy/swig/Python
make

 

 

Run the Snowboy demo with the "Snowboy" wake word

cd snowboy/src/examples/Python
python demo.py /home/pi/snowboy/resources/models/snowboy.umdl

How To Set Up GassistPi On Google AIY:

Clone the GassistPi repo

git clone https://github.com/shivasiddharth/GassistPi

 

 

Install the AIY hat configuration

sudo chmod +x ./GassistPi/audio-drivers/AIY-HAT/scripts/configure-driver.sh
sudo ./GassistPi/audio-drivers/AIY-HAT/scripts/configure-driver.sh
sudo reboot now

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

 

Confirm that your audio still works

speaker-test -t wav

 

From here, you're going to use the credentials as well as the project and device IDs created when you first set up the Google AIY kit. Refer to the other guides in this project if you haven't gotten this far yet.

 

Run the installer script (this will take a while)

sudo chmod +x ./GassistPi/scripts/gassist-installer.sh
sudo ./GassistPi/scripts/gassist-installer.sh

 

As the script finishes, you will be presented with a unique URL for authentication. Copy that URL into a browser, sign in to Google, copy the authentication code, and paste that at the prompt in the terminal. You can now run Google Assistant via GassistPi which allows intricate customization options as well as custom wake words via Snowboy. Configure these options by using a text editor with ~/GassistPi/src/config.yaml

 

Run Google Assistant with the following command:

/home/${USER}/env/bin/python -u /home/${USER}/GassistPi/src/main.py --project_id [your project ID] --device_model_id [your device ID]

  • Sign in to reply
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube