FFmpeg is a free and open-source video editing tool capable of trimming, cropping, concatenating, muxing, and transcoding almost any type of media file you throw at it.
It's also a very robust solution for implementing video automation, as we use it extensively in our own video editing API. For this tutorial we'll use FFmpeg 5.1.2, but any recent version will do.
An audio file can be encoded at a lower bit rate in order to reduce its file size:
$ ffmpeg -i input.mp3 -b:a 128k output.mp3
Specify a bitrate using the -b:a argument, such as: