Skip to main content

Audio file spectral analysis

Project description

spectro

Delicious audio file spectrograms.

PyPi Version PyPI pyversions GitHub stars PyPi downloads

gh-actions codecov Code style: black

spectro is a collection of easy-to-use Python and command-line tools for analyzing audio files. Install from PyPi with

pip install spectro

and use with

spectro show filename.mp3                # shows the wave spectrum of the audio file
spectro check {dirname or filename.mp3}  # checks if the audio file is worse than it pretends to be

See -h for their respective command-line arguments.

The quality of MP3 files is typically determined by their bitrate. For audio files, 128 kbps (kilobit per second) is considered low quality, 320 kbps is considered high quality. It is of course possible to re-encode a low-quality MP3 with a higher bitrate or even a WAV file. spectro can help singling out those foul eggs.

Here is the spectro show output of a sample file (only first channel shown):

Full-quality WAV 320 kbps MP3 256 kbps MP3
192 kbps MP3 128 kbps MP3 96 kbps MP3
64 kbps MP3 32 kbps MP3 16 kbps MP3

Project details


Download files

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

Source Distribution

spectro-0.2.0.tar.gz (17.6 kB view details)

Uploaded Source

Built Distribution

spectro-0.2.0-py3-none-any.whl (17.8 kB view details)

Uploaded Python 3

File details

Details for the file spectro-0.2.0.tar.gz.

File metadata

  • Download URL: spectro-0.2.0.tar.gz
  • Upload date:
  • Size: 17.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for spectro-0.2.0.tar.gz
Algorithm Hash digest
SHA256 e18c9350f6d6653bff185e5e98b7c7b4aae46737101df07fb6c9f6f36126ed6d
MD5 429c116866f4238eac7a77e4ea4c45d1
BLAKE2b-256 252eb70a6e6b2f94fe77c1d408dc6b72c818d8fb573b04bc964ccf28c190f859

See more details on using hashes here.

File details

Details for the file spectro-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: spectro-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 17.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.2 CPython/3.9.7

File hashes

Hashes for spectro-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 21d69ad60ef93ae8c724a4b2f459cba875e87d41af84c6d35207ba5c87904dea
MD5 e3b7a114adae429ff3f76400433bd517
BLAKE2b-256 824e5db94907f2c054f789a0bc05057944e85b7ac62a048c2b5c92d6d4ede4f8

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