2

I've been looking around for something like this, but the only solution I found here only works for one output, and is very inelegant. I want something that will raise quiet sounds, lower loud ones, and ignoring bass tones for when I'm playing music.

The catch is that I want this done for my entire system at once in real time (like the post above) and have it be something I can turn off and on separate from my audio outputs. I am hoping someone knows of a program with an interface I can use so I can easily adjust different aspects of the way the volume is leveled as well as turn it off and on without using long and clunky terminal commands, but if that doesn't exist I won't turn down another solution.

Since this seems to me like an adequately similar question,I'll group it in with this one. there are a few things I'd like to do regarding sound outputs. I was wondering if/how I could: 1) - hide an output from the selection menu, 2) - rename an existing output, and 3) - make a default output that is always selected unless something else is plugged in, then that is selected. When it is unplugged, the default audio is selected again.

Thanks in advance!

  • That only works for one audio output though. –  Aug 10 '15 at 12:58
  • Ah, I didn't know that. Do you know approximately how hard this will hit my CPU (I have an i5 4690k) and if it will use CPU even if it isn't the selected output device? Also, is there a way to rename the outputs? –  Aug 10 '15 at 14:06
  • I'm confused... Am I supposed to make an edit to /etc/pulse/default.pa? Because I can't find the output's name there, and it doesn't work as a command using pactl either. I'm probably just being a derp, but I can't get it to work. (I'm trying to do this to an existing output, as well as one I created). –  Aug 10 '15 at 15:27
  • Changing "sink_name=ladspa_sink" to "sink_name="System (Compressed)"" does nothing. I want the output to show up with the name "System (Compressed)" in the list of possible audio outputs, but it always has the name "LADSPA Plugin Dyson compressor on Built-in Audio Analog Stereo". –  Aug 10 '15 at 16:27
  • After using this for a while, I'd like more explanation as to what each setting does exactly. Also, is there a way of adjusting whether it's a hard or soft knee, or is that one of the settings? –  Aug 14 '15 at 22:04
  • Summarized my comments in an answer. – Takkat Aug 15 '15 at 06:17
  • 2
    I found the following Internet address: http://www.omgubuntu.co.uk/2017/06/install-pulse-effects-ubuntu-ppa. It is a very good software to get real time audio processing (limiter, compressor and equalizer) with PulseAudio. Enjoy it!!! – Juan Sep 22 '17 at 04:16
  • @CeesTimmerman The author mentioned in the first sentence of the question that he already tried that linked question and it didn't work. – karel Oct 25 '19 at 07:40

2 Answers2

2

Those LADSPA filters are awkward to use and very feature poor, plus the documentation for them is simply TERRIBLE.

I recommend using PulseEffects, its a fully featured GUI application that allows you to configure and stack effects (e.g. auto gain, compression, limiter etc) and apply them to individual applications like Chrome, spotify etc on the fly.

DeepFried
  • 170
2

To level output volume we can apply LADSPA filters to our audio sink:

So after having installed the Steve Harris' plugins (swh-plugins Install swh-plugins) we can issue the following commands in a terminal to create a sink with a compressor and a normalizer:

pactl load-module module-ladspa-sink sink_name=ladspa_sink master=<alsa_output> plugin=dyson_compress_1403 label=dysonCompress control=0,1,0.5,0.99
pactl load-module module-ladspa-sink sink_name=ladspa_normalized master=ladspa_sink plugin=fast_lookahead_limiter_1913 label=fastLookaheadLimiter control=10,0,0.8 sink_properties=device.description=Normalized_Sink

Replace <alsa_output> with the name of your default sink.


To send this normalized audio to all audio outputs in our system we can use the module combined:

The following command will create a myCombine sink from all audio cards available in our system further specified in slaves=. Replace the names of these sinks with those on your system.

pactl load-module module-combine-sink sink_name=combine sink_properties=device.description=myCombine slaves=sink1,sink2,... channels=2

We then can apply the LADSPA filters to this combined sink. This can be quite CPU demanding so not all systems may be capable to do that.


For a short documentation of the SWH plugins to be able to further fine-tune parameters see:

Takkat
  • 142,284
  • This answers my main comment, but as I am a noob at audio stuff, could you explain what each setting does? Even in the documentation doesn't explain two of them. –  Aug 16 '15 at 13:09
  • 1
    Yeah the docs are really really short. I am sorry to not be able to say more than what was written there. As long as the results are fine it may not matter much but to find out exactly what they do we'd need a lot of experimenting. – Takkat Aug 16 '15 at 20:53