ComfyUI  >  Nodes  >  SaltAI_AudioViz >  Audio Mixer

ComfyUI Node: Audio Mixer

Class Name

SaltAudioMixer

Category
SALT/AudioViz/Audio/Process
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 Mixer Description

Seamlessly blend two audio tracks with precise timing control for creative audio compositions.

Audio Mixer:

The SaltAudioMixer node is designed to seamlessly blend two audio tracks into a single output. This node is particularly useful for creating complex audio compositions, soundscapes, or for adding background music to a primary audio track. By specifying the exact time at which the second audio track should be mixed into the first, you can achieve precise control over the overlay, ensuring that the resulting audio meets your creative needs. This node simplifies the process of audio mixing, making it accessible even to those without extensive technical knowledge in audio engineering.

Audio Mixer Input Parameters:

audio_a

This parameter represents the first audio track that you want to mix. It serves as the base audio onto which the second track will be overlaid. The input should be in the form of an audio file, typically in WAV format.

audio_b

This parameter represents the second audio track that you want to overlay onto the first track. Similar to audio_a, this should also be an audio file in WAV format. The content of this audio will be mixed into audio_a at the specified time.

mix_time_seconds

This parameter specifies the exact time in seconds at which the second audio track (audio_b) should be mixed into the first track (audio_a). The value should be a floating-point number, with a minimum value of 0.0 seconds. The default value is 0.0 seconds, meaning the overlay will start at the beginning of the first track if not specified otherwise.

Audio Mixer Output Parameters:

mixed_audio

This output parameter provides the resulting audio after the mixing process. The output is a single audio file that combines both input tracks according to the specified mix time. This mixed audio can be used for further processing or as a final product for your audio project.

Audio Mixer Usage Tips:

  • To create a smooth transition between two audio tracks, ensure that the mix_time_seconds parameter is set to a point where the first track has a natural pause or a less intense segment.
  • Experiment with different mix_time_seconds values to find the perfect overlay point that enhances the overall audio experience.
  • Use high-quality audio files for both audio_a and audio_b to ensure the best possible output quality.

Audio Mixer Common Errors and Solutions:

ValueError: Input audio must be two channel stereo.

  • Explanation: This error occurs when the input audio files are not in the required two-channel stereo format.
  • Solution: Ensure that both audio_a and audio_b are stereo audio files. You can use audio editing software to convert mono files to stereo if necessary.

FileNotFoundError: [Errno 2] No such file or directory

  • Explanation: This error occurs when the specified audio file cannot be found.
  • Solution: Verify that the file paths for audio_a and audio_b are correct and that the files exist in the specified locations.

TypeError: a bytes-like object is required, not 'str'

  • Explanation: This error occurs when the input provided is not in the expected bytes format.
  • Solution: Ensure that the audio files are correctly loaded and passed as bytes objects to the node. Use appropriate methods to read the files in binary mode.

Audio Mixer 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.