A bare-bones CLI client for Shazam.
shaq is available via pip or pipx:
pip install shaq
pipx install shaqIf you run into installation errors, make sure that you have PortAudio installed. On Debian-based systems:
sudo apt install -y portaudio19-devshaq is also available on the Arch User Repository as shaq.
Detect by listening to the default system output device using WASAPI loopback:
# shaq listens for 10 seconds by default
shaq --listen
# tell shaq to listen for 15 seconds instead
shaq --listen --duration 15Detect from an audio file on disk:
# shaq truncates the input to 10 seconds
shaq --input obscure.mp3
# ...which can be overriden
shaq --input obscure.mp3 --duration 15See shaq --help for more options.
