0
$\begingroup$

I am looking for a good algorithm or a tool to compare two spectrogram outputs for unit testing. I can visually confirm the outputs are similar but I would like to automate this process. The basic stats of the outputs, such as min/max/avg/median are kind of the same but this would not catch true differences.

$\endgroup$
4
  • 2
    $\begingroup$ A spectrogram is just a matrix. Have you considered one of the matrix difference metrics? $\endgroup$
    – MBaz
    Feb 9 at 2:36
  • $\begingroup$ @MBaz what would be good metrics to compare two matrices? Like some kind of norm? $\endgroup$ Feb 9 at 3:22
  • 1
    $\begingroup$ If this is for subjective audio purposes (?), there are tools that effectively do something similar (pesq, peaq etc) $\endgroup$
    – Knut Inge
    Feb 9 at 6:25
  • 2
    $\begingroup$ Unit testing must be based on the actual specification of the requirements. There is a huge span between "must be bit-exact" to "sounds more or less the same". Without a better description of your application what you consider a "pass" or "fail" $\endgroup$
    – Hilmar
    Feb 9 at 8:05

0

Your Answer

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

Browse other questions tagged or ask your own question.