[SOLVED] Applying compressor to mp3s from the terminal

I’ve read on this forum that running effects chains is not currently possible from the terminal. But Nyquist was briefly mentioned in one thread.

Is it possible to use nyquist to apply a compressor to an mp3 from the terminal? Can someone provide a working example?

OS: Ubuntu 18.04
Version: Any
Audacity source: From distributions repo

If you want to batch-process audio & are comfortable with a command-line type interface,
see … https ://en.wikipedia.org/wiki/SoX

Thanks. Didn’t know you could apply compression with Sox. I’ll use it.

IF you have a sufficiently recent version of Audacity, Audacity may be controlled, including applying effects, by sending commands to Audacity over a named pipe. Typically you would do this from Python, though it could also be done from bash, Perl, or any other scripting language that supports named pipes.
There is further information in the Audacity 2.3.2 manual here: Scripting - Audacity Manual

As Trebor wrote, SoX is an alternative.
See the “compand” option in this section of the SoX documentation: http://sox.sourceforge.net/sox.html#EFFECTS

Thank you, I’ll look into pipes also.