Is there a way to automatically select/process multiple regions which are below a specified level?

I have a very important recording (impossible to rerecord now), which I screwed up making somehow. It’s as if the microphone constantly switched between two set distinct gain settings every second or so. So the result is like if you put a pulse wave envelope controlling the levels. (The attached image is a clip of continuous speech from one speaker; the flat bits are not just silence) I can hear the quieter parts with acceptable quality if I amplify by a huge amount, but the louder parts are fine as is so I don’t want to do anything to them.

Does audacity have a way to analyze the track and just select all of the quieter parts for amplification etc?

I’ve tried all sorts of combinations of amplification, compression and limiting, applied to the entire track, but the volume transitions are so extreme and fast that anything I do to the entire track ends up causing problems somewhere.
Untitled.png

There’s no direct way to do that, but there’s a complicated way. You will need a “Noise Gate” - there’s a suitable Nyquist plug-in here (direct download): https://forum.audacityteam.org/download/file.php?id=25286
Installation instructions for Nyquist plug-ins (Windows): https://manual.audacityteam.org/man/installing_effect_generator_and_analyzer_plug_ins_on_windows.html#nyquist_install

  1. Import the file to be processed
  2. Duplicate the track (Ctrl + D)
  3. Double click on the duplicate to select only the second track
  4. Apply the Noise Gate effect with:
  • Set the “Level Reduction” to -100
    • Set the “Gate threshold” so that it only gates the bits that you need to amplify (may require some experimentation)
    • Set the “Attack / Decay” to 10 ms.
    • Leave the other settings at default.
  1. Apply the “Invert” effect (a built-in effect)
  2. Select all (Ctrl + A)
  3. “Tracks menu > Mix > Mix and render to new track”
  4. Delete track 2 (the track created in step 2)
  5. Double click on the new second track
  6. Amplify as necessary
  7. Optional: Select all again, and “Tracks > Mix > Mix and Render”

The final step is optional as the tracks will automatically be mixed together on Export.

Does audacity have a way to analyze the track and just select all of the quieter parts for amplification etc?

Do you know that you’re going to get something good if you do that?

That looks like one of the Windows Enhancement tools trying to suppress background “noise.” If it suppresses far enough, it is noise and boosting it is just going to give you hissy, hummy, pumping words.

Can you take an example sentence and fix it manually? Carefully select the beginning and end of the quiet bits and apply effects and filters to make it match the normal interview voice? You will almost certainly need the zoom tools for this.

https://manual.audacityteam.org/man/zooming.html

There are two pre-baked tools whose job it is to do stuff like this. LevelSpeech and Chris’s Compressor.

Chris developed his compressor so he could listen to opera in the car. It made him crazy when the show went from single violin down by the river to the whole orchestra blasting in his ear, so he developed a compressor to even things out. I increase the first number from 0.5 to 0.77 and it’s a perfect match to broadcast compressors.

The only oddity I know of is you need to add some extra show at the beginning and end and then cut it off later. Chris doesn’t like running off the ends.

Level Speech goes through and tries to level all the speeches—oddly enough.

I don’t know where the volume limits are for either tool.

Koz

Thank you so much! This worked great! :smiley:

It would be interesting to hear the result, if you could post a short clip containing some of the (originally) loud and (originally) quiet audio.
Around 20 seconds in MP3 or OGG format would be suitable for attaching to a post.

I have a very important recording (impossible to rerecord now), which I screwed up making somehow.

Do you know what the “somehow” is so you don’t do it again?

Screen Shot 2020-01-30 at 7.50.33.png
It’s nice to have Desperation Methods available, but it’s a lot less nice to rely on them for day-to-day production.

Koz