Nodes/MD Nodes/MD: Advanced Audio Preview & Save
ComfyUI Node

MD: Advanced Audio Preview & Save

A ComfyUI node in MD_Nodes/Save with 20 inputs and 3 outputs.

By MDMAchine·Created about a year ago·Updated 2 months ago· 14
MD: Advanced Audio Preview & Save
  • audio
  • AUDIO
  • waveform_before
  • waveform_after
norm_presetSpotify Standard (-14 LUFS)
format_presetHigh Quality (MP3 V0)
save_to_disktrue
filename_prefixComfyUI_audio_%Y%m%d
save_formatmp3
save_metadatatrue
custom_notes
channel_modeKeep Original
fade_in_ms0
fade_out_ms0
normalize_methodLUFS
target_rms_db-16
target_lufs_db-14.0
use_limitertrue
mp3_qualityV0
opus_quality128k
debug_mode0 - Silent
enable_profilingfalse
force_savefalse
CategoryMD_Nodes/Save

Inputs (20)

NameTypeDefaultDescription
audioAUDIOAUDIO INPUT • Purpose: The raw audio waveform to be processed and saved. • Requirement: Standard ComfyUI AUDIO dict.
norm_presetCOMBOSpotify Standard (-14 LUFS)NORMALIZATION PRESET • Purpose: Automatically sets LUFS/RMS targets to match industry standards. • Options: Spotify (-14), Broadcast (-23), Custom (Manual overrides). ⭐ Recommended: 'Spotify Standard' for general distribution.
format_presetCOMBOHigh Quality (MP3 V0)FORMAT PRESET • Purpose: Sets container format and codec quality. • Options: High Quality (MP3 V0), Archive (FLAC), Voice (OPUS). ⭐ Recommended: 'High Quality (MP3 V0)'
save_to_diskBOOLEANtrueSAVE TO DISK • Purpose: Writes the processed audio to the ComfyUI output directory. • Effect: False will still normalize and preview the audio, but skip file I/O. ⭐ Recommended: True.
filename_prefixSTRINGComfyUI_audio_%Y%m%dFILENAME PREFIX • Purpose: Sets the output file naming scheme. • Support: Standard strftime patterns (%Y-%m-%d, %H-%M-%S). • Example: 'audio_%Y%m%d' -> 'audio_20251228_00001.mp3'
save_formatCOMBOmp3SAVE FORMAT (Custom) • Purpose: Manual selection of output container. • Requirement: Active only if Format Preset is set to 'Custom'.
save_metadataBOOLEANtrueSAVE METADATA • Purpose: Embeds workflow JSON directly into the audio file. • Logic: Automatically generates a .json sidecar if payload > 256KB. ⭐ Recommended: True.
custom_notesSTRINGCUSTOM NOTES • Purpose: Embeds user text in the 'ComfyUI_Notes' metadata field.
channel_modeCOMBOKeep OriginalCHANNEL MODE • Purpose: Controls stereo imaging downmixing. • Options: Keep Original (Stereo), Convert to Mono. ⭐ Recommended: Keep Original.
fade_in_msINT00–10000FADE IN • Purpose: Linearly ramps volume up at the start (in ms).
fade_out_msINT00–10000FADE OUT • Purpose: Linearly ramps volume down at the end (in ms).
normalize_methodCOMBOLUFSNORMALIZE METHOD (Custom) • Purpose: Mathematical approach to adjusting volume. • Options: LUFS (Perceived), RMS (Average), Peak (Max Amplitude). • Requirement: Active only if Norm Preset is 'Custom'. ⭐ Recommended: LUFS.
target_rms_dbINT-16-60–0TARGET RMS • Purpose: DB target level for RMS normalization.
target_lufs_dbFLOAT-14.0-50–-5TARGET LUFS • Purpose: LUFS target level for LUFS normalization.
use_limiterBOOLEANtrueUSE LIMITER • Purpose: Applies a fast soft limiter (-1.0dB ceiling) after normalization. • Effect: Prevents digital clipping from math overshoot. ⭐ Recommended: True.
mp3_qualityCOMBOV0MP3 QUALITY • V0: Best Variable Bitrate (~245kbps). • 320k: Best Constant Bitrate. • 128k: Web standard.
opus_qualityCOMBO128kOPUS QUALITY • 128k: Music / High Quality. • 64k: Voice / Podcast.
debug_modeCOMBO0 - SilentLOGGING VERBOSITY • Purpose: Controls console output and structural profiling. • Options: 0 (Silent), 1 (Analytics Report), 2 (Full trace). ⭐ Recommended: 0 - Silent.
enable_profilingBOOLEANfalseENABLE PROFILING • Purpose: Measure file I/O and normalization times. • Note: Automatically enabled if debug_mode >= 1.
force_saveBOOLEANfalseFORCE SAVE • Purpose: Bypasses ComfyUI caching to always generate a new file on disk. • Note: Triggers node execution every run.

Outputs (3)

NameTypeDescription
AUDIOAUDIO
waveform_beforeIMAGE
waveform_afterIMAGE