Audio Switch
Pick between two tracks without re-wiring
- audio1
- audio2
- AUDIO
Audio Switch is the pack's standard two-way switch with the audio data type bolted on. Input set to 1 passes audio1 through; set to 2, it passes audio2. Output is a single AUDIO connection. If you're building video-with-sound workflows (or any pipeline that handles AUDIO tensors from a node pack that outputs them), this is how you swap between a music track and a voice track, or between processed and unprocessed audio, with one integer widget.
How it works
Identical skeleton to Pipe Switch, String Switch and friends: if Input == 1: return (audio1,) else: return (audio2,). The audio1/audio2 ports are forced-input AUDIO connections, so both come from other nodes - a VHS/audio loader, a generated-audio node, whatever produces the AUDIO type you're using.
The inputs that matter
Input-1or2, which track wins.audio1,audio2- the two candidate AUDIO streams.
Output is AUDIO, pluggable into any audio consumer (a video-merge/audio-combine node, an audio player/preview, a save node).
Where it fits
This node inherits the README's bypass behavior, which is the part that makes it more than a boring selector: when the switch itself is bypassed, the wire passes straight through from input 1. So in a group-based workflow you can mute an audio branch and have the switch silently fall back to input 1's track - the same trick that makes every RvTools switch nice to live with.
Installing
cd ComfyUI/custom_nodes
git clone https://github.com/r-vage/ComfyUI-RvTools_v2
Restart ComfyUI or install via ComfyUI Manager (search "ComfyUI-RvTools_v2"). No model downloads, no extra dependencies beyond the pack's standard set.
Gotchas
The AUDIO type isn't a ComfyUI core type - it comes from audio-capable packs. If the input sockets show up as untyped or * in your graph, the pack that outputs the audio isn't installed or isn't exporting a compatible AUDIO type, and the switch won't connect. Also note this pack is unmaintained and deprecated in favor of ComfyUI_Eclipse, and workflows from the deleted v1 RvTools repo reference old node names that ComfyUI Manager can no longer install. For a two-input audio swap this node is fine and stable; for new work, check what Eclipse offers before committing.
Inputs (3)
| Name | Type | Default | Description |
|---|---|---|---|
| Input | INT | 11–2 | — |
| audio1opt | AUDIO | — | |
| audio2opt | AUDIO | — |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| AUDIO | AUDIO | — |