Converting a 24 khz mp3 audio to 16 khz wav using libmad library in C?
user446 Published in July 23, 2018, 1:21 pm
I m writing a small application in C that receives mp3 audio data from a cloud based voice engine and converts it to pcm data (wav format) at 16 khz sample rate. I m using libmad for decoding mp3 data but i m not finding an option to downsample it from 24 khz to 16 khz. Can we do this using libmad or do we need another separate library to achieve this ? Any information relevant to this would be helpful. Thanks,