Use a fast attack and medium release with a light ratio (2:1 or 3:1) to catch sudden peaks, followed by a second, slower compressor for smooth leveling.

: Enable dither if lowering the bit depth (e.g., exporting a 16-bit file from a 32-bit project).