Audio dynamics compressor
Open Audio dynamics compressor on Happytails.ai. This view has the same page content and links, with explicit tool capabilities. Read the processing notes before using a tool.
Tool capabilities
{
"id": "audio-dynamics-compressor",
"category": "media-tools",
"built": true,
"requirements": "One recording up to 256 MiB and 10 minutes; threshold -60 to 0 dBFS, ratio 1 to 20, knee 0 to 24 dB, attack 0.1 to 200 ms, release 5 to 2,000 ms, makeup 0 to 24 dB. WAV is read with every sample intact; other formats are decoded by your browser at 48 kHz. Everything is processed on your device and nothing is uploaded. Download: WAV in the source format or the format you choose, a JSON report and a CSV gain reduction trace.",
"implementation": {
"fields": [
{
"key": "threshold",
"label": "Threshold (dBFS)",
"value": "-18",
"type": "number",
"min": -60,
"max": 0,
"step": 0.5
},
{
"key": "ratio",
"label": "Ratio (to 1)",
"value": "4",
"type": "number",
"min": 1,
"max": 20,
"step": 0.1
},
{
"key": "knee",
"label": "Knee width (dB)",
"value": "6",
"type": "number",
"min": 0,
"max": 24,
"step": 0.5
},
{
"key": "attack",
"label": "Attack (ms)",
"value": "10",
"type": "number",
"min": 0.1,
"max": 200,
"step": 0.1
},
{
"key": "release",
"label": "Release (ms)",
"value": "120",
"type": "number",
"min": 5,
"max": 2000,
"step": 1
},
{
"key": "makeup",
"label": "Makeup gain (dB)",
"value": "0",
"type": "number",
"min": 0,
"max": 24,
"step": 0.5
},
{
"key": "detector",
"label": "Level detector",
"value": "peak",
"type": "select",
"values": [
"peak",
"rms"
],
"labels": {
"peak": "Peak level",
"rms": "RMS level"
}
},
{
"key": "encoding",
"label": "WAV sample format",
"value": "match",
"type": "select",
"values": [
"match",
"pcm16",
"pcm24",
"float32"
],
"labels": {
"match": "Same as source",
"pcm16": "16-bit PCM",
"pcm24": "24-bit PCM",
"float32": "32-bit float"
}
}
],
"registrationFamily": "audio-dsp-dynamics-filters",
"presentation": "metrics",
"files": true,
"accept": ".wav,.mp3,.m4a,.aac,.flac,.ogg,.oga,.opus,.webm,audio/*",
"maxFileBytes": 268435456,
"input": false,
"inputErrorCode": "AUDIO_DSP_DYNAMICS_FILTERS_TOO_LONG",
"note": "Runs locally in your browser. Compresses the dynamics of one recording up to 10 minutes; it does not make the file smaller.",
"experience": {
"automatic": false,
"single": false,
"inputMaxLength": 1000000,
"inputMode": "text",
"label": "Audio file",
"placeholder": "Choose a recording",
"help": "The dynamics of this file are compressed; its size is not reduced. Up to 1,000,000 characters. Review the settings before running.",
"helpParts": [
"The dynamics of this file are compressed; its size is not reduced.",
"Up to 1,000,000 characters.",
"Review the settings before running."
],
"action": null
},
"mode": "explicit",
"interactive": false
},
"execution": "Browser interface",
"api": null,
"browser_agent": {
"supported": true,
"name": "run_current_tool",
"discovery": "WebMCP on the human page in a supporting browser",
"verification": "See audit/API-AUDIT.md; availability is not verification"
}
}Page guide
Even out the loud and quiet parts of a recording with threshold, ratio, knee, attack and release controls, and see the gain reduction over time. This changes the dynamics of the sound, not the size of the file.
How to use Audio dynamics compressor
- Choose the recording to compress.
- Set the threshold, ratio and knee, then the attack and release times.
- Add makeup gain if you want the result louder.
- Compress, compare the original and processed sound, check the gain reduction trace, and download the WAV.
Useful next steps
One recording up to 256 MiB and 10 minutes; threshold -60 to 0 dBFS, ratio 1 to 20, knee 0 to 24 dB, attack 0.1 to 200 ms, release 5 to 2,000 ms, makeup 0 to 24 dB. WAV is read with every sample intact; other formats are decoded by your browser at 48 kHz. Everything is processed on your device and nothing is uploaded. Download: WAV in the source format or the format you choose, a JSON report and a CSV gain reduction trace.
Dynamics, not file size
A dynamics compressor turns down the parts of a recording that go above the threshold, so loud and quiet passages sit closer together. It does not make the file smaller. To reduce the file size, use the Compress audio tool instead.
How the gain is computed
The level of each sample is measured as a peak, or as an RMS level smoothed over 10 ms. Above the threshold the level is reduced by the ratio, so 4 to 1 lets 4 dB of input become 1 dB. The knee softens the change around the threshold, following the gain computer of Giannoulis, Massberg and Reiss (2012). Attack and release set how fast the reduction starts and ends.
Reading the result
The chart shows gain reduction over time. The full CSV lists the strongest reduction in each 10 ms step, and the report gives loudness and peaks before and after. Use loudness matching in the player to compare without making the louder version seem better. This changes playback only, not your download.