I will record my own voice and save them as wav files in my computer. Later on I will speak and computer should match my voice command with preexisting/pre-recorded wav files..
Question: How to check two audio data are equal or there is 80%match between two audio?
if(audio1 == audio2)
DO Task A
else if( audio1 is a bit similar to audio 2)
DO TASK B
else if( audio1 (80% match) audio 2)
DO TASK C
end if
What is the best way to compare two audio data?
As others have suggested, unless you can give a lot more info, there is no simple solution. If they are just very short sounds that don't change much over time, one possibility is to do an FFT and compare the results of the FFTs.
For something more complex, you could take a similar approach, but do STFT.
In all likelihood however, there is a domain-specific answer to your question.