This question already has an answer here:

this is for an application in which passwords are stored in the form of audio inputs . In order to provide user access , the password(in audio form) will be matched with already stored password(audio only) in the database . I wanted to know how to measure the extent of similarity in two audio patterns . the audio patterns can be a clap sequence , knock sequence , whistle etc

marked as duplicate by lennon310, penelope, jonsca, Matt L., Peter K. Mar 20 '14 at 1:44

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

Look up acoustic fingerprint or audio fingerprinting and dynamic-time warping for some basic technologies used to compare audio files.

You could also take a look at pattern recognition in the time-frequency domain. This would imply to take the entire audio signal and perform time-frequency analysis (finding a pro version of the spectrogram) and analize that as an image. If the two time-frequency representations match for the audio files, it is very likely that they are the same password.

Not the answer you're looking for? Browse other questions tagged or ask your own question.