audio_diff
Compare two audio files by analyzing features like loudness, pitch, and timbre to determine if they are identical, equivalent, or different. Identify which dimensions diverge and visualize changes with a difference spectrogram.
Instructions
Compare two audio files (WAV, FLAC, mp3, or ogg) in feature space (loudness, onsets, pitch, key, timbre distance, per-segment RMS) rather than byte-for-byte, and report a verdict: byte-identical, tier-2 equivalent (within this workspace's cross-platform tolerances), or different (naming which dimensions diverge). Set spectrogram=true to also get a signed A→B difference heat map inline (red = louder in B, blue = quieter, black = unchanged) — 'what changed' as visible structure. Use this to check whether a re-render, edit, or platform change actually altered the audio in a way that matters — a different verdict is a normal, successful answer, not a tool failure.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| json | No | Also append the full CompareReport as pretty JSON after the text summary. Default false. | |
| window_ms | No | Segment window length, milliseconds, for the per-segment comparison. Default 1000. | |
| spectrogram | No | Also return the signed A→B difference spectrogram as inline image content (requires both files to share a sample rate). Default false. | |
| audio_path_a | Yes | Path to the first audio file (WAV, FLAC, mp3, or ogg). | |
| audio_path_b | Yes | Path to the second audio file (WAV, FLAC, mp3, or ogg). |