ComfyUI Node

VRGDG_SaveAudioFilePath

Save your audio, and leave a note saying where you put it

By vrgamegirl19·Created about a year ago·Updated about 7 hours ago· 718
VRGDG_SaveAudioFilePath
  • audio
  • audio_file_path
  • saved_txt_path
txt_nameaudio_file_path
overwritetrue

VRGDG_SaveAudioFilePath is the sibling of VRGDG_SaveAudio with one extra trick: it writes your audio to disk and drops a small .txt file next to it containing the path. Two outputs, one for the audio path, one for the text file's path. In a graph that's full of nodes passing string paths around, that little sidecar file is what lets the next stage of a workflow find the audio without the path being carried on a wire.

The inputs and outputs

Required inputs:

  • audio - the AUDIO object to save.
  • txt_name - the base name for the companion .txt file (defaults to audio_file_path).
  • overwrite - a boolean, default true. True means it clobbers an existing file of the same name on each run; flip it to false and repeated runs won't stomp your earlier save.

Outputs:

  • audio_file_path - where the audio landed.
  • saved_txt_path - where the .txt sidecar landed.

So the flow is: audio goes in, a file comes out, and a text file pointing at that file comes out too. If you've got a pipeline that restarts mid-way - the music-video workflow this pack supports is exactly that - the sidecar gives you a durable record of what was produced last run, even after the graph itself has been torn down and rebuilt.

Why the sidecar at all?

In ComfyUI, most nodes pass data over wires, and the wires vanish with the workflow. A text file persists. If a later stage reads a path from disk rather than from an input, the sidecar is how your re-run finds the previous pass's output. It's a pattern the pack leans on - several of its nodes write JSON or text files and then hand you the paths - so think of this as the audio version of that habit.

Install and the usual caveats

Nothing exotic here:

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

or via ComfyUI Manager (search "vrgamedev"), then restart. Requirements: kornia, librosa, imageio. On a Windows portable install, run the requirements file from python_embeded with python.exe -m pip install -r ..\custom_nodes\comfyui-vrgamedevgirl\requirements.txt.

Two things to set before you run: give txt_name something meaningful (the default works, but "audio_file_path" as an actual filename is a sentence, not a name), and check overwrite. With it true (the default), a fixed name means every run silently replaces the last one - fine when you only want the latest, a trap when you wanted to keep takes. Also, like everything in this pack that touches disk, the shipped workflows assume Windows-style paths; on Linux or macOS, point it somewhere that exists or the write will fail in the background.

CategoryVRGDG/General

Inputs (3)

NameTypeDefaultDescription
audioAUDIO
txt_nameSTRINGaudio_file_path
overwriteBOOLEANtrue

Outputs (2)

NameTypeDescription
audio_file_pathSTRING
saved_txt_pathSTRING