Use your Raspberry Pi + AIY Project Voice Kit as a trivia buzzer. Code can be adapted to almost any buzzer website that can be keyboard operated. Currently designed for buzzin.live.
- Raspberry Pi with Raspbian installed (this includes Chromium)
- AIY Voice Kit (this is designed for V1, with some Python knowledge you could probably adapt this for any hardware button)
- An mp3 file called
start.mp3
in the same directory as these files (you can try a tone from here—make sure to download the Android versions)
You need to install the dependencies first, pychrome
and pynput
(both available with Pip) and aiy
(most of the steps in the article aren't needed for the Voice Kit V1) or whatever your button needs.
- You run the Python script.
- In the Chromium window that opens, you enter the code for your Buzzin game, then push your hardware button.
- After the script runs some code to unmute the buzzer, you can then use your hardware button to operate the buzzer, since it basically pushes the B key. You can unplug the monitor at this point.
- When you're done with the game, you press Ctrl + C in the terminal to stop the program and close the browser.