python - How to reduce the size of the .wav file exported from Pydub -
when conversion using ffmpeg, able convert 3.5mb mp3 file ~3.5mb wav file (using ffmpeg -i input.mp3 -acodec pcm_s16le -ac 1 -ar 8000 output.wav
). when use pydub 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 34.5mb. how can pydub behave expected?
Comments
Post a Comment