Sample rate conversion from audio files

What is the easiest way to load and convert audio files? I’d rather do it on the fly instead of loading and saving as a batch. Right now I am loading files with load or loadstreaming but I need to have a uniform sampling rate for all files.

I’d suggest taking a look at the packages here: JuliaAudio · GitHub

Right now I am using DSP.jl as I found the SampledSignals too convoluted… just wondering if there’s an easier way.

I usually just do something simple like read_and_downsample in the third cell here
https://nbviewer.jupyter.org/github/baggepinnen/julia_examples/blob/master/fish_detection.ipynb

1 Like