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 details)

Uploaded Python 3

File details

Details for the file compare_mp3-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: compare_mp3-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 803.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.36.1 CPython/3.7.4

File hashes

Hashes for compare_mp3-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 df969ecd180fd255875837d55877d1d370bc5bf4a60058755b84f4ce1c13e91c
MD5 636fcb7207e3829c7c024ece54513e4c
BLAKE2b-256 f08f45094a0635e5a89dfb6c4f6c354805d5eb828bc3ce6bbd5e9848114acc39

See more details on using hashes here.

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