Master audio to a loudness target
audio_masterMaster a track to a LUFS target and dBTP ceiling with EQ, compression and true-peak limiting, using a preset, delivery platform or reference track to reach streaming-ready loudness.
Instructions
Masters a track: EQ, compression, saturation, stereo imaging, true-peak limiting and loudness normalization to a LUFS target and dBTP ceiling, with a preset (pop, edm, podcast, classical, ...), a delivery platform (streaming, youtube, broadcast, club, cd), a reference track to match, or the chain the mastering assistant suggests for the audio, with optional chain settings ('overrides') on top. Use it for 'make it -14 LUFS', 'master this for Spotify' or 'make it sound like this reference'; dry_run: true returns the suggested chain, the reasons and a streaming-platform normalization preview without writing. Do not use it to only measure loudness (use audio_loudness), for single effects (use audio_process) or for noise and click removal (use audio_repair). Example: {"path": "song.wav", "target_lufs": -14, "ceiling_dbtp": -1}.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"path": "<path>"
},
"name": "audio_master"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Input audio file to master (mono or stereo). | |
| range | No | Only process this window {start_sec, end_sec}; the output contains just the window. An end_sec past the end is clipped (reported in warnings). Default: the whole file. | |
| detail | No | 'concise' returns the summary and the most useful fields; 'full' returns all. | concise |
| format | No | Output format: wav, flac, ogg (Vorbis), opus, mp3, aiff, or m4a (AAC, needs ffmpeg). Default: the explicit output's extension, else the input's format, else wav. | |
| output | No | Output file path. Default: an auto-named new file '<input stem>.<tool>.<ext>' in the output directory. | |
| preset | No | Mastering preset (music_catalog kind 'masteringPresets', kind 'mastering'), e.g. 'pop', 'edm', 'podcast', 'classical'. Restoration presets (vinyl, tapeHiss, ...) run in audio_repair. Default: the chain the mastering assistant suggests for this audio. | |
| dry_run | No | Report the resolved output plan and paths without processing or writing. | |
| quality | No | Lossy encoder setting for ogg/opus/mp3, 0..1 (soundfile compression_level, variable bit rate): 0 = best quality, 1 = smallest file. On 48 kHz stereo music, mp3 0 / 0.3 / 1 is about 192 / 120 / 55 kbit/s (no 320 kbit/s setting), ogg about 330 / 150 / 45 and opus about 510 / 360 / 13. Default 0.3. Excludes bit_depth. | |
| platform | No | Delivery target whose loudness and ceiling to use (music_catalog kind 'masteringPlatforms'): streaming, youtube, broadcast, podcast, audiobook, cinema, club, cd. Explicit target_lufs / ceiling_dbtp win. These are delivery classes, not services: to master for one service, pass the target_lufs and ceiling_dbtp audio_loudness previews for it (spotify, appleMusic, ...). | |
| bit_depth | No | PCM bit depth for wav/flac/aiff: 16, 24 or 'float32' (32-bit float; not flac). Default: the input's depth, else 24. Excludes quality. | |
| overrides | No | Chain settings to apply on top of the preset or the assistant's chain, as a chain document: {version?: 2, params: {'<stage>.<param>': value}}, e.g. {params: {'loudness.targetLufs': -12, 'maximizer.truePeakLimiter.enabled': true}}. Only the keys listed are changed; the document is validated as a whole. target_lufs and ceiling_dbtp still win. | |
| overwrite | No | Replace an existing output file. Without it an existing file is an error. | |
| reference | No | A reference track to match: its tonal balance is matched with an EQ curve before mastering and its integrated loudness becomes the target (unless target_lufs is given). | |
| sample_rate | No | Output sample rate in Hz; the audio is resampled when it differs. Default: the input's rate. Opus is always 48000. | |
| target_lufs | No | Integrated loudness target in LUFS, e.g. -14 for streaming. Default: the reference's loudness, else the platform's, else the preset's. | |
| ceiling_dbtp | No | True-peak ceiling in dBTP, e.g. -1. Default: the platform's or preset's. |