# Sampling rate conversion for audio using ffmpegwrapper in python

I have many audio files @ 22kHz. I want to convert it to 44.1kHz. Since I have many files to convert, I am looking for an easy solution. I came across ffmpegwrapper for python. I installed the package for python. But I couldnt find out the command to resample. Can anyone please help me ? This is the link for the wrapper. https://pypi.python.org/pypi/ffmpegwrapper

Use SoX to easily convert your files in one go.

Here are some examples:

Alternatively, if you want to do this from Python, use librosa. An example:

By default, librosa will resample the signal to 22050Hz.

You can change this behavior by saying: