https://github.com/nschloe/spectro
:musical_note: Audio file analysis
https://github.com/nschloe/spectro
audio mp3 spectral-analysis
Last synced: 5 months ago
JSON representation
:musical_note: Audio file analysis
- Host: GitHub
- URL: https://github.com/nschloe/spectro
- Owner: nschloe
- License: gpl-3.0
- Created: 2020-03-25T16:27:48.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-12-09T19:18:38.000Z (almost 4 years ago)
- Last Synced: 2025-04-28T16:16:13.479Z (5 months ago)
- Topics: audio, mp3, spectral-analysis
- Language: Python
- Homepage:
- Size: 515 KB
- Stars: 48
- Watchers: 4
- Forks: 4
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
Delicious audio file spectrograms.
[](https://pypi.org/project/spectro)
[](https://pypi.org/pypi/spectro/)
[](https://github.com/nschloe/spectro)
[](https://pypistats.org/packages/spectro)[](https://github.com/nschloe/spectro/actions?query=workflow%3Aci)
[](https://codecov.io/gh/nschloe/spectro)
[](https://github.com/psf/black)spectro is a collection of easy-to-use Python and command-line tools for analyzing audio
files. Install from [PyPi](https://pypi.org/project/spectro/) with
```
pip install spectro
```
and use with
```bash
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](https://nschloe.github.io/spectro/Yamaha-V50-Ride-Pattern-120bpm.wav) (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 |