That's riiiiight! Your favorite potty-mouthed horned pony can now be VOICE ACTIVATED! We've put together a python script that works with a Raspberry Pi and a Google AIY Voice Kit, and only needs you to hook up 2 jumper wires between the Pi and the FUnicorn. No soldering needed!
Here's our repo on Github, it's forked from the Google AIY Projects repo. NOTE! When cloning the repo, the first thing you should do is check out the <aiyprojects> branch! Google discontinued the default "master" branch at some point and it is old.
- Google AIY Voice Hat Servo 0 left pin (GPIO26) to Alpenglow FUnicorn button connector pin 3
- Google AIY Voice Hat Servo 0 right pin (GND) to Alpenglow FUnicorn button connector pin 4
Changes and Additions:
- cloudspeech.py was updated according to description in issue 716.
- demo python scripts for the FUnicorn added to src/examples/voice
We wanted full functionality of the Google Assistant with the option to use the wake word. We also wanted the Google Assistant to control the Raspberry Pi output and use a custom phrase to activate the FUnicorn.
- funicorn_demo_wassistant.py has full Google Assistant functionality and is commanded via the wake word (OK Google or Hey Google), and outputs a "button press" to the FUnicorn when "fuck you" is uttered. It also says "No, Fuck You" in a most excellent obviously computer-generated voice. This would be a good script to modify and use with your own custom hardware.
- funicorn_demo_alwayslistening.py is solely a cloud speech to text demo that is always listening and interpreting. There is no Google Assistant functionality.