My problem: I currently have a sound file containing a specific sound I recorded. I want to be able to recognize when that sound is played again for over like 2 seconds. The volume does not matter to me, I want to be able to recognize when that specific note is played. For example the file holds a recording of the note A (la), and if i play the note A on a piano next to the microphone, the raspberry pi will print "correct" or something. I am having trouble recognizing the note, and previous research has suggested finding the frequency / using FFT function but i have been unable to figure it out. Do you recommend any libraries I should use in order to implement this?
Ideally I would be able to identify the pitch of an external sound. As soon as I have the pitch I would be able to check it between a range of frequencies.