Nodes/ComfyUI Web Viewer/AUDIO Web Viewer Channel Loader @ vrch.ai
ComfyUI Node

AUDIO Web Viewer Channel Loader @ vrch.ai

Grab an audio channel streaming through the web viewer

By VrchStudio·Created 2 years ago·Updated 18 days ago· 356
AUDIO Web Viewer Channel Loader @ vrch.ai
    • AUDIO
    channel1
    debugfalse

    The AUDIO Web Viewer Channel Loader @ vrch.ai is the little utility that makes multi-stream audio in the ComfyUI Web Viewer pack actually composable. The pack routes audio through numbered buses - channels 1 through 8 - and this node subscribes to the channel you pick and hands you the result as a plain AUDIO output you can plug into anything else that eats audio.

    Why bother? Because the moment you have more than one audio thing going in a realtime workflow, you stop wanting everything jammed onto the same pipe. One channel carries your microphone input, another carries a music track being streamed from a browser, a third carries the TTS output you're about to save. Assign each its own number, and each loader grabs exactly what you asked for instead of you having to sort it out downstream. It's the pack's answer to "I've got three audio streams and one wire."

    How it works

    There isn't a lot of machinery under the hood, which is the point of a loader. You set channel to a number between 1 and 8, and the node taps into the pack's channel layer - the same channel numbers you see on the AUDIO Web Viewer and AUDIO WebSocket Channel Loader nodes - then emits whatever audio is currently on that bus as its AUDIO output. The debug toggle turns on verbose logging so you can confirm which channel it's actually hearing.

    The one output, AUDIO, plugs straight into the rest of the pack's audio pipeline - a Concat, a Saver, a genre or emotion detector, a Visualizer. Since it's the channel abstraction doing the routing, you can also treat it as a clean way to split one stream's path in the graph without copying it.

    Installing it

    Same pack install as everything else vrch.ai - there's nothing extra for this node:

    cd ComfyUI/custom_nodes
    git clone https://github.com/VrchStudio/comfyui-web-viewer
    pip install -r comfyui-web-viewer/requirements.txt
    

    Or search "ComfyUI Web Viewer" in ComfyUI Manager and restart ComfyUI after. Windows portable users run the pip line with python_embeded\python.exe from the ComfyUI_windows_portable folder.

    Gotchas

    The channel number is a contract, not a hint. If the node that's sending on a channel (say the WebSocket Channel Loader or an Audio Web Viewer) is set to channel 2 and this loader is set to channel 3, you get silence and a confusing afternoon. Pick a numbering scheme and stick to it across the workflow.

    And keep expectations honest: this is a streaming bus, not a file. If you want to inspect or save what's coming through, feed the AUDIO output into an AUDIO Saver @ vrch.ai or a save node rather than expecting the loader to persist anything.

    Categoryvrch.ai/viewer

    Inputs (2)

    NameTypeDefaultDescription
    channelCOMBO18 options: 1, 2, 3, 4, 5, 6, +2
    debugBOOLEANfalse

    Outputs (1)

    NameTypeDescription
    AUDIOAUDIO