When I do a conversion using ffmpeg, I am able to convert a 3.5MB mp3 file into an ~3.5MB wav file (using ffmpeg -i input.mp3 -acodec pcm_s16le -ac 1 -ar 8000 output.wav
).
When I use pydub however with the below code
s1 = AudioSegment.from_file("input.mp3", format="mp3")
o1 = s1.export("output.wav",format="wav", parameters=["-acodec","pcm_s16le","-ac","1","-ar","8000"])
the exported wav file is 34.5MB. How can I get pydub to behave as expected?