I am converting / comparing 2 sound files. One WAV and the other the MP3 of the same file then create the spectrogram and convert to image.
I get the issue with the MP3 version of the file while everything is ok for WAV (noticed this consistently with other audios).
The other key difference is that because the first data points for each row are very small compared to the others when I normalize the pictures to RGB (0 -255) the image is very faint. While the pictures generated with a Wav file is good. I normalize the waveform, spectrum and the image.
Are there techniques to avoid this problem ? any particular reason why the MP3 version has this different behavior ?