# Why does resampling change the frequency range?

I am currently working on a set of .wav files which, unfortunately, do not have the same sampling rate - I need to resample them for the purpose of feeding them to a neural net.
So - using Sox I resampled every file - with the command:

sox -v 0.99 filein -G -r 192000 fileout


However, having a look at the resampled files: ,
the frequency range has changed. Which is confusing me. I have put several hours into finding out why this is happening but i can't seem to find the reason.
Can somebody explain?

EDIT1: Just realized that this example is misleading as I am referring to the change in maximum Frequency, (the y-labels)

• Does sox -r 192000 filein fileout do what you want? It should spoof that the original file is already sampled at 192 kHz so it needs no resampling. Be aware that also time will be stretched. If that is not what you want, try something like breakfastquay.com/rubberband – Olli Niemitalo Apr 11 '16 at 13:26