Giter Site home page Giter Site logo

djkenerson / melodic-soul Goto Github PK

View Code? Open in Web Editor NEW
1.0 2.0 1.0 2.71 MB

Produces an avatar image of your Melodic Soul based on your Spotify listening history, music tastes and lyrical sentiment.

Python 100.00%
ai avatar-generator dall-e dall-e-api dall-e2 music musixmatch musixmatch-api spotify spotify-api

melodic-soul's Introduction

melodic-soul

Ever wondered what your favorite music says about you? Melodic Soul analyzes your Spotify music tastes and lyrical sentiment using VADER analysis over the last 6 months. The program then feeds that data into the DALL-E text-to-image AI algo to generate a personalized image of your Melodic Soul. What does your Melodic Soul look like? Give it a try today!

Examples

Spotify & Sentiment Analysis For First Image

Top Tracks

  • Something in the Orange by Zach Bryan; Sentiment: Extremely Negative
  • Heading South by Zach Bryan; Sentiment: Neutral
  • Goodbye Carolina by The Marcus King Band; Sentiment: Extremely Positive
  • Stayin' Alive VS 50 C Tik Tok - Remix by ROSE BEAT; Sentiment: Positive
  • Sunny Nelson (Edit) by Abel Tasman; Sentiment: Neutral

Sentiment

  • The average sentiment of your most frequently played songs is: Neutral

Top Artists

  • Tyler Childers
  • Mumford & Sons
  • Rage Against The Machine
  • Cody Jinks
  • The Marcus King Band

Top Genres

  • rock
  • stomp and holler
  • outlaw country
  • contemporary country
  • edm

Top Albums

  • Tribe
  • Paranoid (Remaster)
  • Infest
  • Stranger Things, Vol. 1 (A Netflix Original Series Soundtrack)
  • hail mary

Five-Step Quickstart

  1. Sign up for free musixmatch developer account and save API key to "musixmatch_secret.txt" file.
  2. Sign up for free openai developer account and save API key to "openai_secret.txt" file.
  3. Sign up for free Spotify developer account. Create a new app. Click "Edit Settings". Set the "Redirect URI" to "http://localhost:8888/callback". Scroll down and click "Save". Navigate back to the app dashboard. You should see the "Client ID" and "Client Secret" on this page. Save the "Client ID" as the first line on the "spotify_secret.txt file" and the "Client Secret" as the second line.
  4. Scan the list of packages below and install any missing ones.
  5. Run "main.py". Within a minute, you'll receive a summary of your Spotify listening stats and sentiment. You'll also receive a link to an image of your Melodic Soul. Make sure to download and save it since the hosted image will expire within one hour. If you don't like your image then run the program again or start listening to some new music! :)

Package Requirements

pip install spotipy
pip install statistics
pip install musixmatch
pip install pymusixmatch
pip install vaderSentiment
pip install openai
pip install uuid

Demo

demo.mp4

melodic-soul's People

Contributors

djkenerson avatar

Stargazers

 avatar

Watchers

 avatar  avatar

Forkers

mattcastaldo

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.