Noise Reduction

From Audacity Development Manual
Jump to: navigation, search
Noise Reduction can reduce constant background sounds such as hum, whistle, whine, buzz, and "hiss", such as tape hiss, fan noise or FM/webcast carrier noise. 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 reduce.

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.

If your problem is mains hum or a high-pitched whistle, the use of a Notch Filter may help, which should be carried out before applying Noise Reduction.

Advice Note carefully that when you apply an effect to a time-stretched clip the changed speed of the clip will be automatically rendered.
  • If you apply an effect to a selection within a time-stretched clip then Audacity will split the original clip so that the selection can be rendered as part of applying the effect.
Alert If you apply this effect with an envelope present then there is a bug whereby the envelope is removed and the audio reverts to its full amplitude state prior to the effect being applied.
Accessed by: Effect > Noise Removal and Repair > Noise Reduction
Noise Reduction 3-3-0.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 that make up the noise.

  1. Select a region of the waveform which contains only noise. A minimum of 2048 samples (0.05 sec. at 44,100 Hz sample rate) is needed, below which an error will be shown. A longer Noise Profile is better. If there are very different types of noise in different places in the track, they are best dealt with by identifying the Noise Profile for the first type, reducing the noise for it, then identifing the Noise Profile of the next type of noise and reducing that.
  2. Click Effect > Noise Reduction.
  3. Click Get Noise Profile.
Duplicating a very short sample of noise in order to get a long enough sample for the Noise Profile will not help. Noise Reduction calculates the statistics of the noise. Examining repeated blocks of the same noise will not change the statistics.
Tip The Noise Profile is not retained when you close Audacity. The next time you launch Audacity and use Noise Reduction, you have to make a new Noise Profile.

Step 2 - Reduce the Noise

  1. Select the entire region of waveform from which you want to reduce the noise, 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 (the sound that will be filtered out when you apply "Reduce") 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 identified 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.

      The default setting is setting is 6.

    • Sensitivity: Controls how much of the audio will be considered as noise, on a scale of 0 (off) to 24 (maximum). Greater sensitivity means that more noise will be removed, possibly at the expense of removing some of the desired signal as well. Lower values may result in the appearance of artifacts in the noise-reduced audio. Set this control to the lowest value that achieves effective noise removal without the introduction of artifacts.

      The default setting is setting is 6.00.

    • Frequency Smoothing (bands): At values of 1 or higher, this control spreads the noise reduction into the specified number of neighboring bands. This modifies the signal you were intending to keep, but if artifacts remain in the noise-reduced audio the smoothing can make those artifacts sound more acceptable. There is a chance that smoothing will make the desired audio less clear, so where your desired signal is strong and of wide frequency range and the noise is light, try leaving this control at 0 (off).

      If you hear artifacts in the noise-reduced audio after setting Sensitivity as high as possible without eliminating desired audio, try setting Frequency Smoothing to a value between 1 and 6 bands. The width (in Hertz) of a frequency band is dependent on the sampling frequency of the track. Width = sampling frequency / 2048 = 21.53 Hz at 44,100 Hz sampling rate.

      Time smoothing is always applied by Noise Reduction (attack of 20 milliseconds and release of 100 milliseconds) but the settings are not configurable. Any frequency smoothing you request is applied after time smoothing.

      The default setting is setting is 6, settings lower than this tend to favor music and higher settings tend to favor spoken word.

    • Noise:
      • Reduce: Select this option to filter out the noise from the selection.
      • Residue: Select this option to hear the sound that would be filtered out if you chose "Reduce". 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 high.
Artifacts: These typically consist of random bursts of very short tones at random frequencies, sometimes called "musical noise", "bird song" or "tinkly-bells". These may be visible in Spectrogram view.

Artifacts can happen if the noise floor is higher than was estimated, either because Sensitivity was set too low, or because the Noise Profile was not representative of the noise throughout the track. Although most of the noise will be suppressed most of the time, random artifacts may occur, which can be even more objectionable than the original noise.

Tips

After creating a Noise Profile, Ctrl + R or Effect > Repeat Noise Reduction will apply Noise Reduction at its current settings.

Reducing noise usually results in some distortion. This is normal and there is nothing you can do about it. When there's only a little bit of noise, and the signal (that is, the voice, music or other desired sound) is much louder than the noise, this effect works well and there's very little audible distortion. Unfortunately, when the noise is very variable or very loud (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 unwanted 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 decreases the chance of losing sound you want to keep (as indicated by hearing bits of the desired audio in the residue), but increases the chance of there being artifacts sounding like "tinkly bells" when applying the effect with selected radio button Reduce selected.
    • Decreasing Noise Reduction also decreases the chance of losing sound you want to keep (as indicated by hearing bits of the desired audio in the residue), but will increase the amount of noise remaining in the result when applying the effect with selected radio button Reduce selected.
  • 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.
  • Amplify or Normalize may be done before or after Noise Reduction.
  • Do any Notch Filtering or Click Removal before doing noise reduction.
  • Do any compression or any other effects not mentioned above after doing noise reduction, not before.
Tip When using Noise Reduction in Macros the Noise 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 Macro.
  • If a Noise Profile does not exist:
    • If the Macro is applied to the current project, the current selection is used to create the Noise Profile. Therefore, other effect commands in the Macro will also only apply to that selection. If an export command is added, the entire file will be exported.
    • If the Macro 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 Macro.
Tip Noise Reduction with cassette tapes: Cassettes are slightly different from other sources in that its not uncommon for the Noise Profile to change through the course of the tape, due to accumulation of dirt on the tape heads, either during play or during record, or both.

To optimise the performance of Audacity's Noise Reduction it is best to use a noise sample near the beginning of the tape rather than the end. Using a sample late in the tape will sometimes cause poorer discrimination between noise and signal, as some of the higher frequency noise will be missing or reduced in amplitude.

Advanced Tips


Limitations

  • Taking a Noise Profile in a track at one sample rate then removing noise in another track at a different rate will produce poor results and is therefore prohibited with an error "Sample rate of the Noise Profile must match that of the sound to be processed".
  • Taking a Noise Profile over two or more tracks at different sample rates is prohibited with an error "All Noise Profile data must have the same sample rate".


Alternative Noise Reduction Techniques

Please see this page for some additional noise reduction techniques.


Links

|< Index of Effects, Generators and Analyzers

|< Effect Menu