ComfyUI Node

VRGDG_GetAudioFilePath

The node that just knows where your audio file lives

By vrgamegirl19·Created about a year ago·Updated about 7 hours ago· 718
VRGDG_GetAudioFilePath
    • audio_file_path
    • audio_name_clean
    refresh_trigger0

    In VRGameDevGirl's music video workflow, the audio track is the boss - it gets transcribed, beat-detected, split into scenes, and everything downstream syncs to it. For that to work, half a dozen nodes need to know exactly where that audio file lives. VRGDG_GetAudioFilePath is the node that remembers so they don't all have to be told.

    What it does. It's a path resolver: it reads the audio file the workflow is set up to use and outputs its full path. One input, two outputs, nothing to configure beyond triggering it. When you've uploaded or selected your track in the workflow's audio-upload UI, this node picks up the reference and makes it available as a clean string that other nodes (the audio splitter, the transcription step, the final video stitcher) can consume.

    The inputs. Just refresh_trigger - an INT you tick to force the node to re-read the file reference. If you swap in a new audio file and the node is still handing out the old path, nudge the trigger to rescan. It's the pack's standard "kick me to reload" pattern.

    The outputs. audio_file_path is the full path to the audio file - the one you'll feed into audio-processing nodes. audio_name_clean is the filename without path cruft (and probably without extension cruft too, going by the name), handy for naming outputs or displaying which song is loaded.

    Why it exists. The music video pipeline is split across workflow halves: one part handles the audio (upload, transcription, scene timing, lyric splitting) and the other handles generation. A file path is one of those values you could hard-code into every node, but then every workflow you copy requires editing strings in five places. Centralize it once, and the rest of the graph just wires into two clean outputs. It's boring plumbing, and that's a compliment.

    Installing. It ships in the pack:

    cd ComfyUI/custom_nodes
    git clone https://github.com/vrgamegirl19/comfyui-vrgamedevgirl
    

    or search vrgamedev in ComfyUI Manager and restart.

    Troubleshooting. The classic failure is staleness: you load a different song, the workflow still references the old file, and suddenly your video is synced to the wrong track. Bump refresh_trigger after swapping audio. If audio_file_path comes back empty, the problem is upstream - the file never got registered (check the audio upload node), not this node failing to find it. This node doesn't browse your disk for files; it reports what the workflow already knows. If it knows nothing, that's the thing to fix.

    CategoryVRGDG/Audio

    Inputs (1)

    NameTypeDefaultDescription
    refresh_triggerINT00–2147483647

    Outputs (2)

    NameTypeDescription
    audio_file_pathSTRING
    audio_name_cleanSTRING