Comparing sound from the microphone to stored audio file and finding it's position
I have a stored audio file. File format can be anything if it makes difference. Then I have sound being recorded from the device microphone. Let's say it is just some song.
Now I need to find the moment in the audio file that is being recorded currently through the microphone.
I fully understand that raw comparison is obviously not an option, as sound from the microphone by far is not identical to the audio file. What I have tried is finding best matching part of audio file using waveform...