Comparison of two waveforms of audio files

前端 未结 1 709
挽巷
挽巷 2020-12-19 14:21

I am a VC++ developer and currently need help in comparing two audio files. Lets say I have two wave files and one of it is created using the other with some modifications l

1条回答
  •  [愿得一人]
    2020-12-19 14:56

    The number you obtain doesn't really signify anything aside from how similar the spectra are. There are so many ways of modifying an audio file and so many ways of comparing them that it's impossible to give a general answer. If you know exactly which modifications are made then you can do a reasonable job. For instance if you know that the only modification is that the volume has been changed by a constant factor then if you take the squared magnitude of the FFT and normalise it (ie rescale so that the peak is 1.0) then this will be identical for the original and modified signals. You can calculate the sum of the differences of the two FFT magnitudes, but this is just a number and you can't convert it to a percentage in any meaningful way (what does it mean if I say two sounds are 30% different?)

    So I would step back a bit and work out the problem that you're actually trying to solve.

    0 讨论(0)
提交回复
热议问题