Nodes/ComfyUI-AI2Go-Utils/AI2Go Multi Audio Loader Advanced
ComfyUI Node

AI2Go Multi Audio Loader Advanced

Same multi-audio loader, but now you know which file went where

By Little-God1983·Created 2 months ago·Updated 4 days ago· 2
AI2Go Multi Audio Loader Advanced
    • count
    • audio_1
    • filename_1
    • audio_2
    • filename_2
    • audio_3
    • filename_3
    • audio_4
    • filename_4
    • audio_5
    • filename_5
    • audio_6
    • filename_6
    • audio_7
    • filename_7
    • audio_8
    • filename_8
    files_json[]
    output_slotsauto

    This is the AI2Go Multi Audio Loader with one addition: a filename_N string output next to every audio_N. Same drop-up-to-eight-files behavior, same per-row on/off toggles, same count semantics - you're only adding the name of each file as data you can use.

    Why would you want the filename? Mostly for conditional or bookkeeping logic. Say you're building a workflow where the right audio clip gets picked based on which file is loaded, or you're saving per-file metadata alongside the output and want the source name in it. The basic loader gives you a waveform and nothing to label it with; the Advanced variant hands you the bare filename string (just the name, not the path) so a downstream node can branch on it, embed it, or log it. When you're swapping files in and out of input/ in bulk, that's the difference between knowing what you rendered and guessing.

    Everything else carries over from the basic node, so the important details are the same ones:

    • output_slots defaults to auto - sockets appear and disappear with the file list. Pin it to a fixed count if you want the sockets (and wires) to survive you editing the list.
    • Audio is never resampled. Each output keeps its file's native sample rate.
    • The off-toggle trap is unchanged: a switched-off row keeps its socket position but emits None on both audio_N and filename_N. Safe for OPTIONAL inputs downstream, fatal for REQUIRED ones - the required node just fails on None.
    • count reflects enabled rows actually emitted, not total rows.

    Install

    Same as every node in the pack:

    cd ComfyUI/custom_nodes
    git clone https://github.com/Little-God1983/ComfyUI-AI2Go-Utils
    

    Restart ComfyUI, or grab it via ComfyUI Manager ("ComfyUI-AI2Go-Utils"). No extra dependencies beyond what ComfyUI ships (Pillow + PyAV). One caveat from the README worth repeating: this repo is frozen at v1.6.1 and the author has moved on to ComfyUI-IntoTheLatent-Utils with ITL* node names - keep this pack installed if you have old workflows, but don't expect updates.

    The output layout is the only real difference between the two audio loaders, so pick the Advanced one the day you need a filename and the plain one until then. Neither resamples, neither is hard to use, and for a niche that's about as good as it gets.

    CategoryAI2Go/audio

    Inputs (2)

    NameTypeDefaultDescription
    files_jsonSTRING[]Authoritative file list as JSON. Hidden in the UI and kept in sync by the front-end — drop files onto the node instead of editing this.
    output_slotsCOMBOautoHow many output sockets to show. 'auto' follows the number of loaded files, so sockets appear and disappear as you edit the list. Pick a fixed number to keep the sockets (and your wires) in place while you swap files around — extra sockets with no file behind them output nothing, so don't wire more than you load.

    Outputs (17)

    NameTypeDescription
    countINT
    audio_1AUDIO
    filename_1STRING
    audio_2AUDIO
    filename_2STRING
    audio_3AUDIO
    filename_3STRING
    audio_4AUDIO
    filename_4STRING
    audio_5AUDIO
    filename_5STRING
    audio_6AUDIO
    filename_6STRING
    audio_7AUDIO
    filename_7STRING
    audio_8AUDIO
    filename_8STRING