ComfyUI > Nodes > ComfyUI-RvTools_v2 > Audio Switch

ComfyUI Node: Audio Switch

Class Name

Audio Switch [RvTools]

Category
🫦 RvTools II/ Switches
Author
r-vage (Account age: 317days)
Extension
ComfyUI-RvTools_v2
Latest Updated
2026-03-27
Github Stars
0.02K

How to Install ComfyUI-RvTools_v2

Install this extension via the ComfyUI Manager by searching for ComfyUI-RvTools_v2
  • 1. Click the Manager button in the main menu
  • 2. Select Custom Nodes Manager button
  • 3. Enter ComfyUI-RvTools_v2 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
  • 16GB VRAM to 80GB VRAM GPU machines
  • 400+ preloaded models/nodes
  • Freedom to upload custom models/nodes
  • 200+ ready-to-run workflows
  • 100% private workspace with up to 200GB storage
  • Dedicated Support

Run ComfyUI Online

Audio Switch Description

Facilitates dynamic switching between two audio inputs based on integer evaluation.

Audio Switch [RvTools]:

The Audio Switch [RvTools] node is designed to facilitate the seamless switching between two audio inputs within a node-based workflow. This node is particularly useful when you need to dynamically select between different audio sources based on specific conditions or preferences. By providing a simple mechanism to toggle between two audio inputs, it enhances flexibility and control in audio processing tasks. The node's primary function is to evaluate an integer input and, based on its value, output one of the two provided audio inputs. This capability is essential for scenarios where conditional audio routing is required, allowing you to efficiently manage and manipulate audio streams without manual intervention.

Audio Switch [RvTools] Input Parameters:

Input

The Input parameter is an integer that determines which audio input will be selected and output by the node. It accepts values ranging from 1 to 2, with a default value of 1. When set to 1, the node outputs the first audio input (audio1), and when set to 2, it outputs the second audio input (audio2). This parameter is crucial as it directly influences the node's behavior, allowing you to control which audio stream is active based on your workflow requirements.

audio1

The audio1 parameter is an optional audio input that represents the first audio source you can provide to the node. It is marked with forceInput: True, indicating that if this input is selected by the Input parameter, it must be provided for the node to function correctly. This parameter allows you to specify the primary audio stream that can be toggled to, depending on the Input value.

audio2

The audio2 parameter is another optional audio input, representing the second audio source available to the node. Similar to audio1, it is also marked with forceInput: True, meaning it must be supplied if selected by the Input parameter. This parameter provides an alternative audio stream that can be chosen based on the Input value, offering flexibility in audio routing.

Audio Switch [RvTools] Output Parameters:

AUDIO

The output parameter of the node is of type AUDIO. This output represents the selected audio stream based on the Input parameter's value. If Input is set to 1, the node outputs audio1; if set to 2, it outputs audio2. This output is crucial for integrating the selected audio stream into subsequent processing steps or for direct playback, ensuring that the desired audio source is utilized in your workflow.

Audio Switch [RvTools] Usage Tips:

  • Ensure that both audio1 and audio2 are provided when using the node, even if you plan to switch between them, to avoid any interruptions in audio processing.
  • Use the Input parameter to dynamically control audio routing in your workflow, allowing for real-time adjustments based on specific conditions or user interactions.
  • Consider using this node in conjunction with other audio processing nodes to create complex audio manipulation pipelines that can adapt to changing requirements.

Audio Switch [RvTools] Common Errors and Solutions:

Missing Input: Multi VAE Switch has no active Input

  • Explanation: This error occurs when neither audio1 nor audio2 is provided, or when the Input parameter is set to a value outside the allowed range.
  • Solution: Ensure that both audio1 and audio2 are connected to valid audio sources and that the Input parameter is set to either 1 or 2. Double-check your connections and parameter settings to resolve this issue.

Audio Switch Related Nodes

Go back to the extension to check out more related nodes.
ComfyUI-RvTools_v2
RunComfy
Copyright 2025 RunComfy. All Rights Reserved.

RunComfy is the premier ComfyUI platform, offering ComfyUI online environment and services, along with ComfyUI workflows featuring stunning visuals. RunComfy also provides AI Models, enabling artists to harness the latest AI tools to create incredible art.

Audio Switch