Nodes/VLM_nodes/Save Audio
ComfyUI Node Runs on cloud

Save Audio

The only way to keep the music your workflow made

By gokayfem·Created 3 years ago·Updated 18 days ago· 587
Save Audio
  • waveforms
    sample_rate
    extension
    filenameaudio

    A waveform that lives in memory is a waveform that doesn't exist. SaveAudioNode is the node that writes the pack's generated audio to disk - the .wav, .mp3, or .flac file you can actually keep. If you've built an image-to-music or LLM-to-music workflow and you're not ending at this node, you're not ending at all.

    What it is

    It's the save step for the pack's audio pipeline. The README is unambiguous: "Use SaveAudioNode to save the music inside output folder." It pairs with PlayMusic the way Save Image pairs with preview - one lets you hear it in the browser, this one commits it to disk. It's an output node with no outputs of its own, which is normal for a save node.

    The inputs that matter

    • waveforms - the audio to save, an ANY-typed input. This comes from the pack's audio generators (AudioLDM-2, ChatMusician, or whatever produced the waveform) or straight from a PlayMusic passthrough.
    • sample_rate - the waveform's sample rate, an INT. This one has to be right - it's written into the file header, and a wrong value produces audio that plays at the wrong speed.
    • extension - dropdown: wav, mp3, or flac. WAV for fidelity and universality; MP3 if you want small; FLAC for lossless with compression.
    • filename - default audio. The base name of the saved file.

    How it works

    On execution it writes the waveform to ComfyUI's output folder using the filename and extension you gave it. It auto-increments if the file already exists, so you won't clobber earlier saves - queue the same workflow five times and you get audio.wav, audio_00002.wav, audio_00003.wav, and so on. That's the kind of small courtesy that saves you from overwriting a take you wanted.

    Install

    Pack-level, nothing audio-specific:

    cd ComfyUI/custom_nodes
    git clone https://github.com/gokayfem/ComfyUI_VLM_nodes
    

    Restart ComfyUI (or Manager → "VLM Nodes"). Python 3.9+. The audio-write dependency lives in the pack's requirements, so a normal install covers it.

    Gotchas

    Wrong sample_rate is the classic silent failure - the file saves fine and sounds wrong. Match it to the generator's output. And don't expect this node to play anything; it only writes. Put PlayMusic before it if you want to hear the result while it works, or just open the output file after the run.

    CategoryVLM Nodes/Audio

    Inputs (4)

    NameTypeDefaultDescription
    waveforms*
    sample_rateINT
    extensionCOMBO2 options: wav, flac
    filenameSTRINGaudio

    Outputs (0)

    No outputs