AI2Go Multi Audio Loader Advanced
Same multi-audio loader, but now you know which file went where
- 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
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_slotsdefaults toauto- 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
Noneon bothaudio_Nandfilename_N. Safe for OPTIONAL inputs downstream, fatal for REQUIRED ones - the required node just fails onNone. countreflects 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.
Inputs (2)
| Name | Type | Default | Description |
|---|---|---|---|
| files_json | STRING | [] | 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_slots | COMBO | auto | How 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)
| Name | Type | Description |
|---|---|---|
| count | INT | — |
| audio_1 | AUDIO | — |
| filename_1 | STRING | — |
| audio_2 | AUDIO | — |
| filename_2 | STRING | — |
| audio_3 | AUDIO | — |
| filename_3 | STRING | — |
| audio_4 | AUDIO | — |
| filename_4 | STRING | — |
| audio_5 | AUDIO | — |
| filename_5 | STRING | — |
| audio_6 | AUDIO | — |
| filename_6 | STRING | — |
| audio_7 | AUDIO | — |
| filename_7 | STRING | — |
| audio_8 | AUDIO | — |
| filename_8 | STRING | — |