比较两个音频文件。 声音匹配[关闭]

I want to start a big project and it is required to compare two audio files to get % of match.

Example :

  1. audio A is the original audio.

  2. audo B is recorded from microphone. ( everything is same as in audio A, except for voice )

  3. I want to know how close B is to A in percents. ( 100% = identical )

Does anyone know a way how to do this?

Maybe it could be possible by comparing spectrum of file A with the spectrum of file B..

I have done this sort of thing in my undergrad course project but with image files. The thing you would want to look into is Cross-correlation. In which you can measure similarities between two signals. Also you might want to preprocess the audio files ie: normalize, apply some low pass filter to remove noise.

I would suggest Digital Signal Processing by Oppenheim to get a deep understanding of signal processing.

But again these techniques are quite vague, until yopu know what type of similarities you want to find.