ComfyUI Node

XAudioSave

Save audio with LUFS normalization, compression, peak limiting, and WAV/FLAC lossless output

By Xz3r0-M·Created 7 months ago·Updated 22 days ago· 11
XAudioSave
  • audio
  • processed_audio
  • save_path
filename_prefixComfyUI_%Y%-%m%-%d%_%H%-%M%-%S%
subfolderAudio
formatFLAC
sample_rate48000
target_lufs-14.1
enable_peak_limitertrue
peak_limit-1.1
enable_compressionfalse
compression_modeBalanced
use_custom_ratiofalse
custom_ratio2.0
Category♾️ Xz3r0/File-Processing

Inputs (12)

NameTypeDefaultDescription
audioAUDIOInput audio tensor
filename_prefixSTRINGComfyUI_%Y%-%m%-%d%_%H%-%M%-%S%Filename prefix, supports datetime placeholders: %Y%, %m%, %d%, %H%, %M%, %S%
subfolderSTRINGAudioSubfolder name (no path separators allowed), supports datetime placeholders: %Y%, %m%, %d%, %H%, %M%, %S%
formatCOMBOFLACOutput file format. WAV keeps float32 master output but does not reliably preserve custom workflow metadata. FLAC uses lossless compression and supports metadata embedding.
sample_rateCOMBO48000Target sample rate for the output audio file
target_lufsFLOAT-14.1-70–0Target LUFS value for loudness normalization. Lower values make audio quieter. Default -14.1, Set to -70 to disable.
enable_peak_limiterBOOLEANtrueEnable True Peak limiting (Broadcast standard, 8x oversampling). When disabled, skips peak limiting.
peak_limitFLOAT-1.1-6–0Peak limiting value in dB. Only used when enable_peak_limiter is enabled. Default -1.1, Values below 0 dB prevent clipping.
enable_compressionBOOLEANfalseEnable dynamic range compression using acompressor filter. When disabled, skips compression and proceeds directly to LUFS normalization.
compression_modeCOMBOBalancedCompression preset mode. Threshold is automatically calculated based on audio LUFS and target LUFS. Fast: Fast response for voice/podcasts, ratio=3:1. Balanced: Balanced for general use, ratio=2:1. Slow: Smooth for mastering/broadcast, ratio=1.5:1.
use_custom_ratioBOOLEANfalseEnable custom compression ratio to override preset value. When disabled, uses the preset's default ratio.
custom_ratioFLOAT2.01–20Custom compression ratio (1.0 to 20.0). Only used when use_custom_ratio is enabled. Lower values = lighter compression, higher values = stronger compression. Set ratio to 1.0 to disable compression (pass-through mode).

Outputs (2)

NameTypeDescription
processed_audioAUDIOAudio after resampling, loudness normalization, and peak limiting (32-bit float format)
save_pathSTRINGSaved file path relative to ComfyUI output directory