compare_audio
Compare reference and rendered audio to measure timing, level, bands, chroma, and envelope differences, exposing delay and gain mismatches without concealing tempo errors.
Instructions
Compare reference and rendered audio by timing, level, bands, chroma and envelope.
Files need matching channel counts. Candidate resampling and bounded constant
alignment are reported; no time warp conceals tempo errors. Positive delay means
candidate audio arrived later. Gain compensation is only for comparison, and
waveform error is phase-sensitive, not a musical quality or leakage score.
Poll get_audio_job; outputs and optional residual live in a unique run.
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": {
"reference_path": "<reference_path>",
"candidate_path": "<candidate_path>",
"output_dir": "<output_dir>"
},
"name": "compare_audio"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| confirm | No | True carries the removal out. False changes nothing and returns a report of what the call would remove, which is how to look before committing to it. | |
| output_dir | Yes | Parent directory for a unique audio run. | |
| end_seconds | No | Exclusive end in source-file seconds. | |
| start_seconds | No | Start in absolute source-file seconds. | |
| candidate_path | Yes | Local mono/stereo audio file path (WAV/FLAC). | |
| reference_path | Yes | Local mono/stereo audio file path (WAV/FLAC). | |
| write_residual | No | Write the gain-aligned, phase-sensitive difference as a FLOAT WAV. | |
| max_alignment_ms | No | Delay search radius in milliseconds; zero disables alignment. | |
| extra_reference_paths | No | Further reference stems added to reference_path sample by sample, to compare a group with the sum of the stems it rebuilds rather than one of them. | |
| candidate_start_seconds | No | Candidate-file seconds corresponding to the reference section start. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||