turn your sound file into an array of numbers, then do analysis on the various arrays.
I'm not sure what analysis you need to do, but if you want to see if the current file matches one on disc, you could.
subtract, element for element the current file from a given file. Then do statistical analysis (mean, st. dev, etc) to characterize how well the file "matched" file X. Then load file X+1, and redo the analysis. After you have analyzed all the files, you pick the "best fit" from the statistics for each comparison test.
This method only works if the two file start at exactly the same time. If the start times are different, you can try to line up a common peak or trough, first, and then do the analysis.