ComfyUI Node
XAudioSave
Save audio with LUFS normalization, compression, peak limiting, and WAV/FLAC lossless output
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)
| Name | Type | Default | Description |
|---|---|---|---|
| audio | AUDIO | Input audio tensor | |
| filename_prefix | STRING | ComfyUI_%Y%-%m%-%d%_%H%-%M%-%S% | Filename prefix, supports datetime placeholders: %Y%, %m%, %d%, %H%, %M%, %S% |
| subfolder | STRING | Audio | Subfolder name (no path separators allowed), supports datetime placeholders: %Y%, %m%, %d%, %H%, %M%, %S% |
| format | COMBO | FLAC | Output file format. WAV keeps float32 master output but does not reliably preserve custom workflow metadata. FLAC uses lossless compression and supports metadata embedding. |
| sample_rate | COMBO | 48000 | Target sample rate for the output audio file |
| target_lufs | FLOAT | -14.1-70–0 | Target LUFS value for loudness normalization. Lower values make audio quieter. Default -14.1, Set to -70 to disable. |
| enable_peak_limiter | BOOLEAN | true | Enable True Peak limiting (Broadcast standard, 8x oversampling). When disabled, skips peak limiting. |
| peak_limit | FLOAT | -1.1-6–0 | Peak limiting value in dB. Only used when enable_peak_limiter is enabled. Default -1.1, Values below 0 dB prevent clipping. |
| enable_compression | BOOLEAN | false | Enable dynamic range compression using acompressor filter. When disabled, skips compression and proceeds directly to LUFS normalization. |
| compression_mode | COMBO | Balanced | Compression 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_ratio | BOOLEAN | false | Enable custom compression ratio to override preset value. When disabled, uses the preset's default ratio. |
| custom_ratio | FLOAT | 2.01–20 | Custom 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)
| Name | Type | Description |
|---|---|---|
| processed_audio | AUDIO | Audio after resampling, loudness normalization, and peak limiting (32-bit float format) |
| save_path | STRING | Saved file path relative to ComfyUI output directory |