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