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

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -