SoX doesn't work with Opus Audio files
I ended up doing this (either works, don't know which is the fastest):
opusdec --force-wav file.ogg - | sox - file.mp3
or
sox "|opusdec --force-wav file.ogg -" file.mp3
I ended up doing this (either works, don't know which is the fastest):
opusdec --force-wav file.ogg - | sox - file.mp3
or
sox "|opusdec --force-wav file.ogg -" file.mp3