Presave Audio
Hear what the audio node made before you commit it
- audio
Audio in ComfyUI is a second-class citizen compared to images - most workflows generate it, lose it, and never listen to it until the final export. MKRPresaveAudio is the audio half of the Presave family: same preview-first philosophy as MKRPreSave and MKRPresaveVideo, applied to sound. preview_only defaults to true, so it plays/looks at what you've got without writing files; flip it off when the take is good.
What it's for
You'll use it after an audio-generation or processing node when you want a quick check before committing bytes to disk. The audio input is the * wildcard again - it accepts a file path, a raw waveform tensor, or an MKR_AUDIO payload from another MKRShift node. If it can recognize a file source it previews straight from that; if it gets a waveform it encodes it on the fly. Then, when preview_only is off, it writes to output/<subfolder> in your format of choice.
It's an output node that always reruns, and it has a custom frontend from the pack's WEB_DIRECTORY - the author's own UI for it.
Inputs that matter
audio- file, waveform, orMKR_AUDIOpayload.preview_only- True = just preview, False = write the file.output_format-auto,wav,mp3,flac,ogg.autokeeps the source format when detectable.filename_prefix(defaultMKR_audio),subfolder,overwrite, and optionalfilename_label- the usual output plumbing.
Installing it
Same pack install:
cd ComfyUI/custom_nodes
git clone https://github.com/criskb/MKRShift_Nodes
restart ComfyUI (or Manager → MKRShift_Nodes). The dependency note that keeps coming back: the README calls for ffmpeg on your PATH for the audio/video export nodes. WAV is fine to write without it, but mp3, flac, and ogg encoding goes through ffmpeg - skip it and those formats won't encode properly.
Common issues
The recurring one is trying to write mp3 without ffmpeg installed and getting a warning (or an auto fallback) instead of a file. Check ffmpeg -version before assuming the pack is broken. The other subtlety: waveform inputs carry no filename or format info, so an auto output format has nothing to detect and picks a default - if you want a specific container, say so instead of hoping auto guesses. And because it's a preview-first node, the same "I forgot to uncheck preview_only" trap that bites MKRPreSave applies here too.
Inputs (7)
| Name | Type | Default | Description |
|---|---|---|---|
| audio | * | — | |
| preview_only | BOOLEAN | true | — |
| output_format | COMBO | auto | 5 options: auto, wav, mp3, flac, ogg |
| filename_prefix | STRING | MKR_audio | — |
| subfolder | STRING | — | |
| overwrite | BOOLEAN | false | — |
| filename_labelopt | STRING | — |
Outputs (0)
No outputs