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$
  • 3
    $\begingroup$ Question seems very broad. what is the parameter you want to compare - frequencies, amplitudes, phase, etc. ? $\endgroup$ – arpit jain Jul 24 '17 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 '17 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 '17 at 11:54
  • 1
    $\begingroup$ Spectrogram could be used for this application. $\endgroup$ – arpit jain Jul 24 '17 at 13:04
  • 2
    $\begingroup$ Please edit your question to add this new information. $\endgroup$ – Peter K. Jul 24 '17 at 13:51
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$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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