pip install sounddiffRequires Python 3.10 or later.
git clone https://github.com/systemblueteam/sounddiff.git
cd sounddiff
pip install -e ".[dev]"This installs sounddiff in editable mode with all development dependencies (pytest, ruff, mypy, hypothesis, pre-commit).
sounddiff uses libsndfile for audio I/O. The soundfile Python package bundles it on most platforms, but you may need to install it separately.
macOS:
brew install libsndfileUbuntu/Debian:
sudo apt-get install libsndfile1Windows: Bundled automatically via pip. No extra steps.
Core formats (WAV, FLAC, OGG, AIFF) work without any extra dependencies. For MP3, AAC, M4A, WMA, and OPUS, you need ffmpeg installed and available on your PATH.
# macOS
brew install ffmpeg
# Ubuntu/Debian
sudo apt-get install ffmpeg
# Windows (via chocolatey)
choco install ffmpegsounddiff checks for ffmpeg at runtime. If you try to compare an MP3 without ffmpeg installed, you'll get a clear error message telling you what to do.
sounddiff uses click which provides shell completion out of the box.
bash (add to ~/.bashrc):
eval "$(_SOUNDDIFF_COMPLETE=bash_source sounddiff)"zsh (add to ~/.zshrc):
eval "$(_SOUNDDIFF_COMPLETE=zsh_source sounddiff)"fish (add to ~/.config/fish/config.fish):
_SOUNDDIFF_COMPLETE=fish_source sounddiff | sourcesounddiff --versionThis should print the installed version number.