Skip to content

Made for fun to reduce the number of apps on an old Android phone: Python Flask app that finds a song name from a screenshot with the Google Assistant response. It then and adds it to a dedicated Spotify playlist (Shazam with extra steps).

Notifications You must be signed in to change notification settings

todor-ilivanov/song-recognition

Repository files navigation

Starlord Recognition App

A web application that generates a Spotify playlist based on a screenshot with a result from a Google query.

Background

I only built this as my refusal to download extra apps (Shazam in this case) on my very outdated and out-of-memory phone. Naturally, the most "practical" way to go was spent a few afternoons building this not-very-useful app!

Workflow

  1. Scan a provided screenshot or list of screenshots for the track name (currently not very robust)
  2. Find the track in Spotify
  3. Create a playlist if it doesn't exist
  4. Add the track to the dedicated playlist

Deployed on Heroku

Deployed at https://starlord-recognition.herokuapp.com/home

Running the App

  1. Make sure you have the virtualenv package installed.
  2. Create the virtualenv virtualenv starlord-venv
  3. Activate the virtualenv ./{virtualenv_name}/Scripts/activate
  4. Run pip install -r requirements.txt
  5. Navigate to the src directory
  6. Run flask run -p 8080

Running Tests

From the project directory, run: pytest -W ignore::DeprecationWarning

TODO

  • UI is lacking (missing)
  • Google assistant responses might have changed. Update track name lookup to be more robust

About

Made for fun to reduce the number of apps on an old Android phone: Python Flask app that finds a song name from a screenshot with the Google Assistant response. It then and adds it to a dedicated Spotify playlist (Shazam with extra steps).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages