Measure loudness (LUFS, true peak)
audio_loudnessMeasures integrated, short-term, and momentary loudness, LRA, true peak, and stereo/band balance, then previews streaming and broadcast gain targets to check a master against delivery standards.
Instructions
Measures loudness the way delivery standards do: integrated, momentary and short-term LUFS, loudness range (LRA), true peak, sample peak, crest factor, stereo correlation and width, a low/mid/high band balance measured at the file's own sample rate, and eight streaming and broadcast previews (Spotify, Apple Music, YouTube, Amazon Music, Tidal, Deezer, EBU R128, podcast) with the gain each would apply and any true-peak ceiling risk. Use it to check a master against a target, to see loudness over time with 'resolution', or after audio_master. Do not use it for general file facts (audio_info) or to change the level (audio_master, audio_edit). Example: {"path": "master.wav", "platforms": ["spotify", "appleMusic"], "resolution": "coarse"}.
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_loudness"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Audio file to measure (mono or stereo). | |
| range | No | Analyze only this window ({start_sec, end_sec}, in seconds); times in the result stay on the file's own timeline. Omit for the whole file. | |
| detail | No | 'concise' returns the summary and the most useful fields; 'full' returns all. | concise |
| platforms | No | Streaming/broadcast targets to preview: spotify, appleMusic, youtube, amazonMusic, tidal, deezer, broadcastR128, podcast. Omit for all eight. Each row carries the service's target_lufs and ceiling_dbtp, which audio_master takes as is; its 'platform' names delivery classes (streaming, broadcast, ...) instead. | |
| resolution | No | Time-series density: none returns summary statistics only; coarse 0.5, medium 1 and fine 4 points per second return a list of points with time_sec and the measured value. | none |