This article introduces how to resolve the error sox FAIL formats: no handler for file extension mp3 in Linux sox.
sudo apt-get install libsox-fmt-mp3
ubuntu - How to add a mp3 handler to sox? - Super User
The above command resolves the issue by adding an mp3 handler to sox.