This guide describes two different python based utilities to trigger audio file playback based on tactile button presses. Both of them can be installed on a modern Raspberry Pi
- RPi.GPIO - works with all Raspberry Pi Hardware
- CircuitPython on Raspberry Pi - Works with newer Raspberry Pi Hardware v2, v3 and Zero. This is the same interface we use with our SAMD21 based microcontrollers and is the recommended version to use.
If you have not already used the Raspberry Pi as a input device this guide will show you how to wire up the buttons to the GPIO pins and access their state from a python script.