Measure loudness (EBU R128)
measure_loudnessMeasure integrated loudness, true peak, LRA, and related audio metrics from audio or video files, then compare results against streaming and broadcast targets.
Instructions
Measure a file's loudness the way streaming platforms and broadcasters do: integrated loudness (LUFS), true peak (dBTP), loudness range (LRA), max momentary and short-term loudness, plus sample peak, RMS, noise floor and DC offset. Works on audio files and on the audio track of videos. Optionally compare to targets in the same call.
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": "measure_loudness"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | Absolute path to a local audio or video file. ~ is expanded. | |
| start | No | Only analyse from this time (seconds or HH:MM:SS). | |
| targets | No | Also compare to these targets: youtube, spotify, apple_music, tidal, social, podcast, ebu_r128, atsc_a85 | |
| duration | No | Only analyse this many seconds. | |
| audio_stream | No | Which audio stream to use if the file has several (0 = first). |