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.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

compare_mp3-0.1.1-py3-none-any.whl (803.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page