Nodes/DJZ-Nodes/Zenkai Ambience Audio V1
ComfyUI Node

Zenkai Ambience Audio V1

Seed-chosen ambience for your scenes

By MushroomFleet·Created 2 years ago·Updated 5 months ago· 80
Zenkai Ambience Audio V1
    • AUDIO
    ambience_folder
    seed0

    Zenkai Ambience Audio V1 is a small but genuinely useful node: it picks an ambient sound file based on a seed and hands it out as an AUDIO tensor. The point is reproducibility - the same seed always selects the same audio, so your workflow can choose a forest, rain, or city ambience deterministically instead of you manually hunting through files. It's part of the pack's Zenkai family, which is Drift Johnson's system for feeding curated media (images, prompts, now audio) into your workflows from organized folders.

    If you make AI video with sound design, this is the node that lets a single seed drive both the visuals and the ambience track, so batch runs stay coherent.

    How it works

    The node scans the pack's ambience/ folder, where each subdirectory is a category (nature, urban, indoor - whatever you create). The ambience_folder dropdown is built from those subdirectory names at startup. When you run it, the node takes the seed and deterministically picks one audio file from the selected category, then loads it as ComfyUI AUDIO. Change the seed, get a different file from the same category; same seed, same file, forever.

    It's deliberately dumb in the best way - no analysis, no "best match," just seed → file. The supported formats are wav, mp3, ogg, and flac. If a folder has no files, it returns an empty audio tensor instead of crashing (which is the pack's usual defensive style, seen across the Zenkai nodes).

    The inputs

    • ambience_folder - the category dropdown, built from subdirectories of ambience/. On a fresh install you'll likely see a default folder - the node auto-creates it so the dropdown is never empty.
    • seed (0–4294967295) - the selector. This is the whole game: hold it for deterministic output, vary it for variety.

    Output is a single AUDIO tensor. Wire it to an audio save node, a video mux, or into any audio-processing chain.

    Setting it up

    Add your own ambience:

    1. Find the pack install: ComfyUI/custom_nodes/DJZ-Nodes/ambience/.
    2. Create a subdirectory per category, e.g. ambience/nature/, ambience/city/.
    3. Drop audio files in (.wav, .mp3, .ogg, .flac).
    4. Restart ComfyUI (the dropdown is built at startup) and the category appears.

    To install the pack itself:

    cd ComfyUI/custom_nodes
    git clone https://github.com/MushroomFleet/DJZ-Nodes
    cd DJZ-Nodes
    pip install -r requirements.txt
    

    Restart ComfyUI, or search "DJZ-Nodes" in ComfyUI Manager.

    Troubleshooting

    • Dropdown won't show my new folder. The dropdown refreshes at ComfyUI startup. Restart, don't just reload the workflow.
    • Empty audio comes out. The selected category has no loadable files, or the files aren't in the supported formats. Double-check the extension.
    • "Which file did I get?" The node doesn't expose the filename as a string output - if you need to know, check the category contents or look at the node's log output in the console.
    • Seeds "don't work." The selection is random-with-seed but not predictable-in-advance - you set a seed, hear what you get, and stick with it if you like it. To browse, step the seed through a seed generator node and preview each.

    Honest assessment: it's a small utility, but it fills a real gap - deterministic, folder-based audio selection that slots into batch workflows. If you're already invested in the Zenkai folder system, this is the natural audio companion to the prompt and image nodes. If you're not, it's still a tidy way to grab an ambience track reproducibly.

    CategoryDJZ-Nodes

    Inputs (2)

    NameTypeDefaultDescription
    ambience_folderCOMBO1 options: default
    seedINT00–4294967295

    Outputs (1)

    NameTypeDescription
    AUDIOAUDIO