This repo contains an implementaion of a audio-detection algorithm using FFT. It is very well explained by the author David Domminney Fowler in the acompaning Computerphile video linked above.
Also, if you like the music definetly check out Space Potatoes on Soundcloud.