Im trying to get my Raspberry do stuff, based on the audio level of a played song. The song shouldn't neccessarily be a local mp3 file on the Raspberry. Let me explain it like this:
If (audio level above threshold): do something..
I've found this http://freshfoo.com/posts/pulseaudio_monitoring/ and Real time audio input/output in Python with PyAudio which is pretty much what im looking for i guess, but i have to be able, reading single samples in order to compare it with thresholds ill be using. https://stackoverflow.com/questions/604453/analyze-audio-using-fast-fourier-transform is also a topic that could help, if there was a code on how the creater got those numbers. I hope u can help me out with this, for further informations just ask :)