OK Google hotword for AIY Projects Voice Kit
By Russell Barnes. Posted
Set up AIY Projects voice kit to respond to OK Google as a Hotword
One of the most requested features for the AIY Projects Voice Kit is to set it up to respond to OK Google as a Hotword.
By default, you can ask questions of the Voice Kit by pushing the button on top of the device, or by clapping your hands.
But many owners would prefer to use the words "OK Google", which is the key way to activate the Assistant across many Google consumer devices.
Lots of our readers are exploring the free AIY Projects Voice Kit and where there's a will; there's a way.
A recent update to the AIY Projects enables users to set any "hotword" they like. A hotword is a phrase you speak to activate the assistant. If you set the hotword to "OK Google" it will respond to those words, although you could choose "computer", "hey you", or "voice kit", or any words you wanted.
Set up OK Google with AIY Projects Voice Kit
Ever since Google released the update with hotword support, we've been looking for an easy way to set it up. The good news is that there's a great guide over on the AIY Projects forum.
Bastiaan Slee has posted complete steps over on our AIY Projects forum. The basic steps are:
- Upgrade to the latest version of the Google Assistant Library.
- Create a Python file in the trigger directory containing hotword.py code.
- Add OK Google as a hotword in the main.py file.
- Change trigger to hotword in the voice-recognizer.ini file.
Of course. It'd be a lot easier if you had all the code to hand. And it's all waiting for you over on the AIY Projects forum. So take a look at Bastiaan's code and get OK Google working on your AIY Projects Voice Kit. We tested it out and it works just fine, and once it's up and running you can say "OK Google" and ask a question, just like you would on other devices running the Assistant.
Russell runs Raspberry Pi Press, which includes The MagPi, Hello World, HackSpace magazine, and book projects. He’s a massive sci-fi bore.
Subscribe to Raspberry Pi Official Magazine
Save up to 37% off the cover price and get a FREE Raspberry Pi Pico 2 W with a subscription to Raspberry Pi Official Magazine.
More articles
Make your RAM go further – Raspberry Pi OS memory optimisation tips
In issue 164 of Raspberry Pi Official Magazine we have been playing around with the new Raspberry Pi 5 1GB RAM. While the RAM shortage caused by the demands of AI infrastructure is annoying beyond belief, this has been a great chance for us to really get to grips with RAM. Generating images in Stable […]
Read more →
Mighty Projects – 1GB Computer in Raspberry Pi Official Magazine 164
It’s normal for computers to get faster and more pwerful, but the new-ish Raspberry Pi 5 1GB is a step in the other direction: it has all the processing power and the same GPIO pins of its more costly siblings, but with only 1GB of RAM it’s at a price that’s friendlier on the wallet […]
Read more →
Win one of five 256GB Raspberry Pi Flash Drives
If you’ve been around long enough, you know that every Raspberry Pi accessory is top quality, and the latest Flash Drive is no different. Fancy a big one? We have five up for grabs, and you can enter below… Win 1 of 5 256GB Raspberry Pi Flash Drives
Read more →