Thu Feb 15, 2018 4:18 pm
It should be possible with the right hardware.
I am doing a project now using an Audio Injector sound card to light LEDs based on the audio spectrum from the mic input. There are several tutorials out there for this kind of project.
To respond to a prerecorded sound, you'd need to take this a step further. You can use your prerecorded sound to create a matched filter. Run the mic feed through the matched filter, and you can use the filter output to trigger whatever action you want. This requires some knowledge of digital signal processing, or there may be libraries out there that already do this kind of thing. This could be done in just about any language. I'm using python for my project.
I'm considering working some of this into my project eventually too. Obviously haven't started this part yet, otherwise I'd have something more solid to help you with... But bottomline: I think it is possible!