I own a Snapstream Firefly IR remote control with a USB receiver. Connecting the receiver and using NOOBS to perform a fresh install of Raspbian, the Raspberry Pi receives input from the remote control without additional configuration. For instance, I can open a terminal and press the "A" button on the remote and "a" is output to the terminal window. Pressing the up button on the remote scrolls through the bash history as it would if pressing the up arrow on a keyboard.
After installing ir-keytable (
sudo apt-get install ir-keytable) I can view the input from the remote. Pressing the OK button looks like this:
$ ir-keytable -t Testing events. Please, press CTRL-C to abort. 1467816132.220648: event type EV_MSC(0x04): scancode = 0x1e 1467816132.220648: event type EV_KEY(0x01) key_down: KEY_OK(0x0001) 1467816132.220648: event type EV_SYN(0x00). 1467816132.220757: event type EV_KEY(0x04) key_up: KEY_OK(0x0001) 1467816132.220757: event type EV_SYN(0x00).
I want the Raspberry Pi to play a sound when I click a button on the remote. I want to be able to play various sounds associated with various buttons on the remote.
Is it necessary to install and configure lirc in order to accomplish my goal? I've been fighting with lirc for 3 days and I'd like to bypass it if it isn't the simplest solution.
How can I play a sound (wav, mp3) on my Raspberry Pi using my remote without using lirc?