compressor
Apply dynamic range compression to reduce volume differences in audio. Adjust threshold, ratio, attack, and release times to even out loud and quiet sections for mastering or voice/podcast production.
Instructions
Apply dynamic range compression. Evens out volume differences.
For mastering, use ratio 1.5-2:1 with attack > 80ms to preserve transients. For podcasts/voice, use ratio 4-8:1 with use_peak=True for tighter control. Higher ratios (4:1+) and fast attacks are mixing tools, not mastering tools.
WARNING: normalize=True will re-peak your audio to 0 dB after compression, which can make loud audio even louder. Use loudness_normalize() instead for proper LUFS-based loudness control.
Args: threshold_db: Level above which compression starts (dB). Default: -12 noise_floor_db: Level below which audio is not boosted (dB). Default: -40 ratio: Compression ratio (e.g. 2.0 = 2:1). Default: 2.0 attack_time: How fast compressor engages (seconds). Default: 0.2 release_time: How fast compressor releases (seconds). Default: 1.0 normalize: Normalize to 0dB peak after compression. Default: False use_peak: Compress based on peaks instead of RMS (better for voice/podcast). Default: False
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ratio | No | ||
| use_peak | No | ||
| normalize | No | ||
| attack_time | No | ||
| release_time | No | ||
| threshold_db | No | ||
| noise_floor_db | No |