1
0
Fork
You've already forked shazamctl
0
A toy command-line client for Shazam, powered by https://github.com/Numenorean/ShazamAPI
  • Python 100%
Find a file
2022年08月22日 22:33:41 +03:00
shazamctl Open song.link after recognition 2022年08月22日 22:33:41 +03:00
.editorconfig Initial commit 2022年04月03日 21:30:10 +03:00
.gitignore Initial commit 2022年04月03日 21:30:10 +03:00
LICENSE Initial commit 2022年04月03日 21:30:10 +03:00
poetry.lock Add microphone support 2022年04月17日 12:49:19 +03:00
pyproject.toml Add microphone support 2022年04月17日 12:49:19 +03:00
README.md Update docs again 2022年04月17日 13:15:49 +03:00
setup.cfg Initial commit 2022年04月03日 21:30:10 +03:00

shazamctl

pipx install git+https://codeberg.org/notpushkin/shazamctl

Usage

Recognize music from files:

$ shazamctl recognize path/to/rickroll.mp3
At 0:00:10: Never Gonna Give You Up
 by Rick Astley
$ shazamctl recognize path/to/1h_dnb_mix.mp3 --multiple
At 0:00:16: Higher
 by AKTIVE
 https://song.link/i/1557355435
At 0:03:21: ...

Or from microphone:

$ shazamctl listen
Listening...
At 0:00:14: Imperium
 by Madeon
 https://song.link/i/955824973

Microphone support on Apple M1

You'll need an x86_64 install of Homebrew.

arch -x86_64 /usr/local/bin/brew install python@3.10 portaudio
pipx install git+https://codeberg.org/notpushkin/shazamctl --python /usr/local/Cellar/python@3.10/*/bin/python3
pipx runpip shazamctl install pyaudio \
 --global-option='build_ext' \
 --global-option="-I/usr/local/include" \
 --global-option="-L/usr/local/lib"

Don't ask.