Categories

Audio Compressor

Apply dynamic range compression with configurable threshold, ratio, attack/release, and makeup gain

Click to upload file or drag and drop file here

Maximum file size: 200MB Supported formats: audio/*

Key Facts

Category
Media
Input Types
file, number, select
Output Type
file
Sample Coverage
4
API Ready
Yes

Overview

This audio compressor tool applies dynamic range compression to audio files, allowing you to reduce volume variations by adjusting threshold, ratio, attack, release, and makeup gain parameters for consistent loudness.

When to Use

  • When you need to reduce dynamic range in audio recordings for more even volume levels.
  • When preparing audio for broadcast or streaming to comply with loudness standards.
  • When enhancing vocals or instruments by controlling peaks and boosting quieter parts.

How It Works

  • Upload your audio file in a supported format like MP3, WAV, or AAC.
  • Set compression parameters: threshold (dB), ratio, attack time (ms), release time (ms), and makeup gain (dB).
  • Select the output format and process the file to apply compression.
  • Download the compressed audio file with reduced dynamic range.

Use Cases

Podcast editing to level out voice volumes across different speakers and segments.
Music production for mastering tracks with controlled dynamics and increased loudness.
Voiceover processing to minimize sudden volume spikes and ensure clear, consistent audio.

Examples

1. Podcast Audio Leveling

Podcaster
Background
A podcaster records interviews with varying voice levels due to different speakers and emotional tones.
Problem
The audio has inconsistent volume, requiring listeners to frequently adjust their volume controls.
How to Use
Upload the podcast audio file, set threshold to -20 dB, ratio to 3:1, attack to 10 ms, release to 100 ms, and makeup gain to 5 dB.
Example Config
thresholdDb: -20, ratio: 3, attackMs: 10, releaseMs: 100, makeupDb: 5
Outcome
The compressed audio has more uniform volume, improving listener comfort and engagement.

2. Music Track Mastering

Music Producer
Background
A producer is finalizing a song with dynamic elements like loud drum hits and quiet vocal passages.
Problem
The track needs to be louder and more balanced for streaming platforms without distortion.
How to Use
Upload the mixed audio, apply compression with threshold at -10 dB, ratio of 4:1, attack of 5 ms, release of 150 ms, makeup gain of 3 dB, and output as MP3.
Example Config
thresholdDb: -10, ratio: 4, attackMs: 5, releaseMs: 150, makeupDb: 3, outputFormat: mp3
Outcome
The mastered track has reduced dynamic range, making it suitable for streaming with consistent loudness and clarity.

Try with Samples

audio, file

Related Hubs

FAQ

What is dynamic range compression?

It reduces the difference between the loudest and quietest parts of an audio signal for more consistent volume.

What does the threshold parameter control?

Threshold sets the audio level in dB above which compression is applied to the signal.

How does the ratio affect compression?

Ratio determines the amount of compression; a 4:1 ratio means signals above the threshold are reduced to one-fourth of their original level.

What are attack and release times?

Attack time is how quickly compression starts after exceeding the threshold; release time is how quickly it stops when the signal drops below.

Why is makeup gain used?

Makeup gain boosts the overall audio level after compression to compensate for volume reduction and achieve desired loudness.

API Documentation

Request Endpoint

POST /en/api/tools/audio-compressor

Request Parameters

Parameter Name Type Required Description
audioFile file (Upload required) Yes -
thresholdDb number No -
ratio number No -
attackMs number No -
releaseMs number No -
makeupDb number No -
outputFormat select No -

File type parameters need to be uploaded first via POST /upload/audio-compressor to get filePath, then pass filePath to the corresponding file field.

Response Format

{
  "filePath": "/public/processing/randomid.ext",
  "fileName": "output.ext",
  "contentType": "application/octet-stream",
  "size": 1024,
  "metadata": {
    "key": "value"
  },
  "error": "Error message (optional)",
  "message": "Notification message (optional)"
}
File: File

AI MCP Documentation

Add this tool to your MCP server configuration:

{
  "mcpServers": {
    "elysiatools-audio-compressor": {
      "name": "audio-compressor",
      "description": "Apply dynamic range compression with configurable threshold, ratio, attack/release, and makeup gain",
      "baseUrl": "https://elysiatools.com/mcp/sse?toolId=audio-compressor",
      "command": "",
      "args": [],
      "env": {},
      "isActive": true,
      "type": "sse"
    }
  }
}

You can chain multiple tools, e.g.: `https://elysiatools.com/mcp/sse?toolId=png-to-webp,jpg-to-webp,gif-to-webp`, max 20 tools.

Supports URL file links or Base64 encoding for file parameters.

If you encounter any issues, please contact us at [email protected]