November 16, 2020
How to convert wav to mp3 using Python.
Before you can use the script, you must install dependencies:
brew install ffmpegsudo apt-get install ffmpegpip install pydubfrom pydub import AudioSegment
AudioSegment.from_wav("example.wav").export("example.mp3", format="mp3")
```