0
$\begingroup$

I have two .wav audio(stereo) files to be compared. The files may vary in frequency or amplitude or phase shift. How to compute the difference between the wave files in Scilab? The expected output is that if frequency and amplitude differ between the audio files, the output must return that they are dissimilar. Phase changes need not be compared.

$\endgroup$
6
  • 3
    $\begingroup$ Question seems very broad. what is the parameter you want to compare - frequencies, amplitudes, phase, etc. ? $\endgroup$
    – Arpit Jain
    Jul 24, 2017 at 11:37
  • $\begingroup$ The expected output is that if frequency and amplitude differ between the audio files, the output must return that they are dissimilar. $\endgroup$
    – Sanjaya
    Jul 24, 2017 at 11:52
  • $\begingroup$ Even if phase changes are found between the audio files, it should not be considered. i.e) the output must return that they are similar $\endgroup$
    – Sanjaya
    Jul 24, 2017 at 11:54
  • 1
    $\begingroup$ Spectrogram could be used for this application. $\endgroup$
    – Arpit Jain
    Jul 24, 2017 at 13:04
  • 2
    $\begingroup$ Please edit your question to add this new information. $\endgroup$
    – Peter K.
    Jul 24, 2017 at 13:51

2 Answers 2

1
$\begingroup$

Short Time Fourier Transform can be used for comparing the frequency and amplitude differences between two audio files. it can be implemented using basic windowing of audio followed by DFT operation over the windowed audio.

$\endgroup$
2
0
$\begingroup$

Signal similarities can be found using the DTW algorithm. Then, you can follow the alignment path and check for phase changes in a localized/window perspective.

$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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