'sox with MP3 on Heroku

My app uses sox to apply some effects to an audio file on a Heroku dyno.

I added sox, libsox-fmt-mp3 and libsox-fmt-all to Aptfile using the APT buildpack. Sox is installed but MP3 files are still not working. sox -h tells me that there is no MP3 support installed.

I also tried these buildpacks but MP3 files are still not working:

Can anyone help me with this problem?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source