ComfyUI Node
MD: Advanced Audio Preview & Save
A ComfyUI node in MD_Nodes/Save with 20 inputs and 3 outputs.
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)
| Name | Type | Default | Description |
|---|---|---|---|
| audio | AUDIO | AUDIO INPUT • Purpose: The raw audio waveform to be processed and saved. • Requirement: Standard ComfyUI AUDIO dict. | |
| norm_preset | COMBO | Spotify 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_preset | COMBO | High 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_disk | BOOLEAN | true | SAVE 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_prefix | STRING | ComfyUI_audio_%Y%m%d | FILENAME 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_format | COMBO | mp3 | SAVE FORMAT (Custom) • Purpose: Manual selection of output container. • Requirement: Active only if Format Preset is set to 'Custom'. |
| save_metadata | BOOLEAN | true | SAVE METADATA • Purpose: Embeds workflow JSON directly into the audio file. • Logic: Automatically generates a .json sidecar if payload > 256KB. ⭐ Recommended: True. |
| custom_notes | STRING | CUSTOM NOTES • Purpose: Embeds user text in the 'ComfyUI_Notes' metadata field. | |
| channel_mode | COMBO | Keep Original | CHANNEL MODE • Purpose: Controls stereo imaging downmixing. • Options: Keep Original (Stereo), Convert to Mono. ⭐ Recommended: Keep Original. |
| fade_in_ms | INT | 00–10000 | FADE IN • Purpose: Linearly ramps volume up at the start (in ms). |
| fade_out_ms | INT | 00–10000 | FADE OUT • Purpose: Linearly ramps volume down at the end (in ms). |
| normalize_method | COMBO | LUFS | NORMALIZE 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_db | INT | -16-60–0 | TARGET RMS • Purpose: DB target level for RMS normalization. |
| target_lufs_db | FLOAT | -14.0-50–-5 | TARGET LUFS • Purpose: LUFS target level for LUFS normalization. |
| use_limiter | BOOLEAN | true | USE LIMITER • Purpose: Applies a fast soft limiter (-1.0dB ceiling) after normalization. • Effect: Prevents digital clipping from math overshoot. ⭐ Recommended: True. |
| mp3_quality | COMBO | V0 | MP3 QUALITY • V0: Best Variable Bitrate (~245kbps). • 320k: Best Constant Bitrate. • 128k: Web standard. |
| opus_quality | COMBO | 128k | OPUS QUALITY • 128k: Music / High Quality. • 64k: Voice / Podcast. |
| debug_mode | COMBO | 0 - Silent | LOGGING VERBOSITY • Purpose: Controls console output and structural profiling. • Options: 0 (Silent), 1 (Analytics Report), 2 (Full trace). ⭐ Recommended: 0 - Silent. |
| enable_profiling | BOOLEAN | false | ENABLE PROFILING • Purpose: Measure file I/O and normalization times. • Note: Automatically enabled if debug_mode >= 1. |
| force_save | BOOLEAN | false | FORCE SAVE • Purpose: Bypasses ComfyUI caching to always generate a new file on disk. • Note: Triggers node execution every run. |
Outputs (3)
| Name | Type | Description |
|---|---|---|
| AUDIO | AUDIO | — |
| waveform_before | IMAGE | — |
| waveform_after | IMAGE | — |