Skip to main content

Compare mp3 files using Python.

Project description

python-compare-mp3

Compare mp3 files using Python.

Installation

pip install -U compare-mp3

Command-line usage

compare-mp3 a.mp3 b.mp3

Programmatic usage

from compare_mp3 import compare

if compare('a.mp3', 'b.mp3'):
    print('Files contain the same audio')

Return values

  • compare_mp3.Result.SAME_FILE Literally the same file
  • compare_mp3.Result.SAME_BITSTREAM Files have the same bitstream (but may have different metadata)
  • compare_mp3.Result.SAME_WAV Files contain the same audio (as decoded by LAME)
  • compare_mp3.Result.DIFFERENT Completely different files

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for compare-mp3, version 0.1.1
Filename, size File type Python version Upload date Hashes
Filename, size compare_mp3-0.1.1-py3-none-any.whl (803.3 kB) File type Wheel Python version py3 Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page