Skip to content

LorenzoRogai/vinyl-shazam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Vinyl Song Announcer

Python + Shazam + Alexa (via Home Assistant) to recognize the song currently playing on the turntable and announce its title

The flow is as follows:

  • Every 30 seconds a 10 second WAV audio clip is recorded with PyAudio
  • The WAV file is passed to the Shazam API which will return the information of the recognized song
  • If the song has not been recognized or has already been announced, the program exits otherwise it sends a webhook to Home Assistant with the song title which will then forward it to Alexa for the announcement (only from 18 to 22)
  • Done!

How to

Add the following rule inside your crontab

* * * * * /home/vinyl-shazam/frequent-cron.sh "/usr/local/bin/python3.10 /home/vinyl-shazam/vinyl-shazam.py" 30 2 >> /tmp/vinyl-shazam.log

Home Assistant Automation

image

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published