Code Monkey home page Code Monkey logo

vinyl-shazam's Introduction

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

vinyl-shazam's People

Contributors

lorenzorogai avatar

Stargazers

70A5 avatar  avatar  avatar Aasikki avatar J0J0 Todos avatar Jesper E. Siig avatar K Cole avatar Jacob Barnett avatar Paul Cutler avatar  avatar Phil ⚡ avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.