ComfyUI  >  Nodes  >  SaltAI_AudioViz >  Audio Noise Reduction (Spectral Subtraction)

ComfyUI Node: Audio Noise Reduction (Spectral Subtraction)

Class Name

SaltAudioNoiseReductionSpectralSubtraction

Category
SALT/AudioViz/Audio/Effect
Author
SaltAI (Account age: 146 days)
Extension
SaltAI_AudioViz
Latest Updated
6/29/2024
Github Stars
0.0K

How to Install SaltAI_AudioViz

Install this extension via the ComfyUI Manager by searching for  SaltAI_AudioViz
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter SaltAI_AudioViz in the search bar
After installation, click the  Restart button to restart ComfyUI. Then, manually refresh your browser to clear the cache and access the updated list of nodes.

Visit ComfyUI Online for ready-to-use ComfyUI environment

  • Free trial available
  • High-speed GPU machines
  • 200+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 50+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Audio Noise Reduction (Spectral Subtraction) Description

Powerful node for noise reduction in audio files using spectral subtraction method, enhancing clarity and quality of recordings.

Audio Noise Reduction (Spectral Subtraction):

SaltAudioNoiseReductionSpectralSubtraction is a powerful node designed to reduce noise in audio files using the spectral subtraction method. This technique is particularly effective for eliminating background noise, such as hums, hisses, or other unwanted sounds, from your audio recordings. By analyzing the spectral content of the audio and subtracting the estimated noise floor, this node helps to enhance the clarity and quality of your audio, making it more pleasant and professional-sounding. This is especially useful for AI artists who work with audio content and need to ensure their recordings are clean and free from distracting noise.

Audio Noise Reduction (Spectral Subtraction) Input Parameters:

audio

This parameter accepts the audio data that you want to process. The audio should be in a format that the node can read and process, typically a WAV file. The quality and clarity of the input audio will directly affect the effectiveness of the noise reduction process.

noise_floor

The noise_floor parameter is a floating-point value that represents the level of noise to be subtracted from the audio. It ranges from 0.0 to 1.0, with a default value of 0.1. A lower value means less aggressive noise reduction, preserving more of the original audio, while a higher value results in more aggressive noise reduction, which might also remove some of the desired audio content. Adjusting this parameter allows you to balance between noise reduction and audio quality.

Audio Noise Reduction (Spectral Subtraction) Output Parameters:

audio

The output parameter audio contains the noise-reduced audio data. This processed audio will have significantly less background noise, making it clearer and more suitable for professional use. The output is typically in the same format as the input audio, ensuring compatibility with your existing audio processing workflows.

Audio Noise Reduction (Spectral Subtraction) Usage Tips:

  • Experiment with the noise_floor parameter to find the optimal balance between noise reduction and audio quality. Start with the default value and adjust incrementally.
  • Use high-quality input audio to achieve the best results. Poor quality or highly compressed audio may not respond well to noise reduction.
  • Consider preprocessing your audio to remove any extreme noise or artifacts before applying spectral subtraction for more effective results.

Audio Noise Reduction (Spectral Subtraction) Common Errors and Solutions:

FileNotFoundError: [Errno 2] No such file or directory: 'ffmpeg'

  • Explanation: This error occurs when the ffmpeg executable is not found in your system's PATH.
  • Solution: Ensure that ffmpeg is installed on your system and that its path is correctly set in your environment variables.

subprocess.CalledProcessError: Command '['ffmpeg', '-y', '-i', 'input.wav', '-af', 'afftdn=nr=10', 'output.wav']' returned non-zero exit status 1.

  • Explanation: This error indicates that the ffmpeg command failed to execute properly, possibly due to incorrect parameters or issues with the input file.
  • Solution: Verify that the input audio file is correctly formatted and accessible. Check the ffmpeg command syntax and ensure all parameters are valid.

PermissionError: [Errno 13] Permission denied: 'temp_directory'

  • Explanation: This error occurs when the node does not have the necessary permissions to create or write to the temporary directory.
  • Solution: Ensure that the script has the appropriate permissions to access and modify the temporary directory. You may need to adjust the directory permissions or run the script with elevated privileges.

Audio Noise Reduction (Spectral Subtraction) Related Nodes

Go back to the extension to check out more related nodes.
SaltAI_AudioViz
RunComfy

© Copyright 2024 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals.