Noise Reduction

From Audacity Development Manual
Revision as of 18:46, 14 December 2014 by PeterSampson (talk | contribs) (reply to Bill: it's on my list of things to do.)
Jump to: navigation, search
ToDo-1 Bill 13Dec2014: Just starting on this. I know the dialog image is wrong (we don't have a final one for Noise Reduction yet). Some of the control descriptions are little more than place-holders.
  • Peter 13Dec14: Thanks for starting work on this Bill. I need to actually rename "Noise Removal" to "Noise Reduction" with a "Move" in order to leave a redirect behind for any external (normally Forum links). I will need to move this page to a temporary location, do the rename and then copy the contents of this page back there.
  • Peter 13Dec14 a little later: Actually on rethinking this (and after discussing it with the very sensible Mrs.S) I've decided it will be better to leave the old "Noise Removal " page there with a note saying it has been superseded and with a link to this page. That way it will be perfectly clear, to the occasional reader that lands on that page directed from an old Forum thread, that Noise Removal has been replaced - it's worth the extra click that the occasional reader will encounter. Now I can go to bed and sleep well not worrying about this :-))
  • Peter 14Dec14: I think I've fixed all structural changes in the Manual that relate to this change. Wiki still to be looked at, care needed there as the Wiki relates always to the current released version. I will try to find some time tomorrow to work on that.
Noise Reduction can reduce constant background sounds such as hum, whistle, whine, buzz, and "hiss". It is not suitable for individual clicks and pops, or irregular background noise such as from traffic or an audience.

To use Noise Reduction, you need a region in the waveform that contains only the noise you want to remove.

Be aware that it may be impossible to get a satisfactory removal when the noise is very loud, when the noise is variable, when the music or speech is not much louder than the noise or when the noise frequencies are very similar to those of the music or speech.
Accessed by: Effect > Noise Reduction...
NoiseRemoval.png

Step 1 - Get Noise Profile

This first step teaches Audacity about the noise you want to remove by identifying the noise floor of the different frequencies comprising the noise.

  1. Select a region of the waveform which contains only noise. A minimum of 2048 samples (0.05 sec. at 44100 Hz sample rate) is needed. Longer is better. If there are very different types of noise in different places in the track, they are best dealt with by grabbing the profile for the first type, reducing the noise for it, then grabbing the profile of the next type of noise and reducing that.
Note that duplicating a very short sample of noise in order to get a longer sample for the noise profile will not help. The effect is calculating the statistics of the noise. Examining repeated samples of the same noise will not change the statistics.
  1. Click Effect > Noise Reduction
  2. Click Get Noise Profile

Step 2 - Remove the Noise

  1. Select the region of waveform which you want to reduce the noise in, then set the Noise Reduction parameters. This is often best done by trial and error, adjusting the sliders and using the Preview button to listen to a few seconds of audio after noise reduction. Listening to the Residue can also be useful in determining how much damage is being done to the desired (non-noise) sound.
  2. Click Effect > Noise Reduction:
    • Noise Reduction (dB): Controls the amount of volume reduction to be applied to the noise. Use the lowest value that reduces the noise to an acceptable level. Higher values than necessary may make the noise even quieter, but will result in damage to the audio that remains.
    • Sensitivity: Controls how much of the audio will be considered as noise. Greater sensitivity means that more noise will be removed, possibly at the expense of some damage to the desired signal. Set this to the lowest value that achieves effective noise removal without the introduction of musical noise.
    • Attack time (secs): How quickly noise removal reacts to the onset of sound that is above the noise threshold. Values greater than 0.02 sec. are rarely needed or useful. A setting of 0 often works best.
    • Release time (secs): How quickly noise removal reduces its action after a loud sound ends. A range of 0.1 to 0.2 sec. corresponds to the generally-accepted times for temporal masking. Longer times may work better if your audio has a slow fade-out.
    • Frequency Smoothing (Hz): This control should be left a 0 except in extraordinary circumstances. If you are still hearing musical noise in the noise-reduced audio, and you have set the Sensitivity as high as possible without damaging the desired audio, try setting this control to a value between 25 and 100.
    • Noise:
      • Remove: Select this option to remove the noise from the selection.
      • Isolate: Select this option to keep the noise, making it more prominent by reducing the other sounds in the selection. If you hear tinkly artifacts in the non-noise, this may suggest Sensitivity is set too high. Currently, "Isolate" works best with Frequency Smoothing and Attack/decay time set to zero.
      • Residue: Select this option to hear the sound that is removed. This is useful for finding the optimum settings that do not damage the audio. If you can hear recognizable bits of the desired sound in the residue, it is likely that you have set Noise Reduction too high or Sensitivity too low.
"Musical Noise:" This typically consists of random bursts of very short tones at random frequencies, sometimes called "bird song" or "tinkly-bells". This is because most of the noise is being suppressed most of the time, but because the noise floor has been under-estimated (Sensitivity is set too low, or the noise profile was not representative of the noise throughout the track), random noise bursts remain, but now localized both in time and in frequency. This can be even more objectionable that the original noise.

Alternative settings

For heavier noise, the default settings above are recommended, increasing the "Sensitivity" slider if necessary.

For light noise (for example FM hiss, vinyl surface noise, cassette hiss or web-stream carrier noise) the default settings in Noise Removal may be a little too aggressive, possibly introducing musical noise.

  • Noise Reduction (dB): Try setting this to about 12 dB. It will still have an appreciable effect on low level noise, but will reduce the risk of musical noise.

*Frequency Smoothing (Hz): Try increasing this a little, typically to around 500 Hz.

  • Sensitivity control: Reducing this can further help to make the effect less aggressive, but may require a lot of experimentation for only slightly better results. For a quick result, this slider is usually best left at the default 0.

For critical work it is best to experiment for optimum settings; see this page in the Wiki for further advice on using the settings for this effect.

Steve 23Oct13: As seen on the forum, many users have very noisy recordings and will need to make the effect more aggressive to have an appreciable effect. On the other hand, many users have pretty good recordings and just need a touch of noise reduction. Overall I think the defaults are a good compromise - perhaps a bit too aggressive for some, but not quite enough for others. Importantly the default settings are likely to be in the right ball park for most users.
  • Steve 16Jun14 (from Forum comment): These days I tend to leave it at around 300 Hz unless I hear tinkly artefacts, in which case I'll try pushing it up to around 500.

Tips

After creating a noise profile, CTRL + R or Effect > Repeat Noise Removal will apply Noise Removal.

Removing noise usually results in some distortion. This is normal and there's nothing you can do about it. When there's only a little bit of noise, and the signal (that is, the voice or the music or whatever) is much louder than the noise, this effect works well and there's very little audible distortion. Unfortunately, when the noise is very loud, variable, or when the signal is not much louder than the noise the result may be too distorted.

If you are still having problems the following tips may help:

  • Select selected radio button Residue from the Noise: options, click Preview, listening for traces of the desired signal. You can usually reduce the amount of desired sound in the residue by decreasing Sensitivity or decreasing Noise Reduction. Decreasing Sensitivity increases the chance of their being musical noise in the result. Decreasing Noise Reduction will increase the amount of noise in the result. When you have found settings of Sensitivity and Noise Reduction that appear to do the least damage to the desired sound (based on there being little of that sound in the residue), click the selected radio button Reduce radio button then click OK to apply the effect.
  • Do any click removal, compression or other effects after doing noise removal, not before. It works best as close to the source of the noise as possible. One exception to this rule is applying the optional Notch Filter... to remove hum or whistle before tackling the hiss.
Bill 13Dec2014: I disagree slightly - click removal should be done first, as the frequency content of the clicks may confuse the noise removal algorithm. I agree that notching should be done before noise reduction.
  • Duplicate your source track before you apply noise removal, and adjust the relative volume of the two tracks to get the best sound quality.
Bill 13Dec2014: I'm not sure the above advice is needed now with the improved effect.
  • If your problem is mains hum or a high-pitched whistle, the use of a Notch Filter... may help. This page on the Audacity wiki outlines the steps. Apply this effect before applying Noise Removal.
Peter 09Aug14: ToDo James wrote by email yesterday "When the effect is fixed the tip in the manual about using a notch filter (for mains hum or whistle) first won't be needed as the noise removal will/should behave perfectly when used as a notch filter. It's quite clear from my tests that it not doing so is the bug Paul talks about."

and he also wrote "I think the tip in the manual about duplicating the track will also become redundant, as I think the 'noise reduction' parameter should be having that effect, when the effect is 'fixed'."

  • Bill 13Dec2014: I disagree with James. For mains hum the frequency discrimination of the noise removal effect is too coarse (about 22 Hz per band). Notch filters work much better on mains hum.
Advice When using Noise Removal in Chains the profile is captured as below.
  • If a Noise Profile exists, that Noise Profile will be used. It is often best to capture a suitable Noise Profile before running a Chain.
  • If a Noise Profile does not exist:
    • If the Chain is applied to the current project, the current selection is used to create the Noise Profile. Therefore, other effect commands in the Chain will also only apply to that selection. If an export command is added, the entire file will be exported.
    • If the Chain is applied to files, the first file (all of it) is used to create the Noise Profile. It may be useful to prepare a file containing a suitable Noise Profile and name it so that it is alphabetically the first file of those to be run in the Chain.
For advanced tips please see the Noise Removal page in the Audacity Wiki.
ToDo-1 Bill 13Dec2014: We mustn't forget to update that wiki page!
  • Peter 14Dec14: absolutely Bill, it's on my list of things to do. It's mentioned on the 2.1.0 clean-up plan. Care has to be taken as Wiki always relates to current release whereas this development Manual always refers to next release.

For a more technical explanation of the algorithm used in Noise Removal, see How Noise Removal Works in the Wiki.

Also see Sample workflow for LP digitization which lists some alternative noise removal software that you can use as part of your audio restoration routine.

Links

|< Index of Effects, Generators and Analyzers

|< Effect Menu