Skip to content

meirelon/snap-and-listen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Snap and Listen

Snap a selfie or a landscape and let image recognition do the rest. Then Spotify will recommend you a corresponding playlist.

Getting Started

Project front end is a Telegram chat bot and the back end is GCP cloud functions in a python37 runtime. Unfortunately, you will need your own GCP project and API keys to run this on your own.

Prerequisites

Deploy webhook

Example env.yaml file:

TELEGRAM_TOKEN: uvwxyz
GCS_BUCKET: example-bucket
VISION_API_KEY: abcdef
SPOTIPY_CLIENT_ID: ghijkl
SPOTIPY_CLIENT_SECRET: mnopqr

Then run the following in your terminal

$ git clone https://github.com/meirelon/snap-and-listen.git
$ cd snap-and-listen
$ gcloud beta functions deploy snap_and_listen --env-vars-file env.yaml --runtime python37 --trigger-http

Examples

Facial Recognition

alt text

Landscape Detection

alt text

Contributing

Please reach out via email or send me a pull request.

Authors

  • Michael Nestel

About

Take a selfie and get a playlist on Spotify

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages