Back to Portfolio
SS
Project Type:ai
Completed: February 2024

Sentiment-Based Spotify Playlist Generator

A web application that generates Spotify playlists based on text sentiment analysis using the OpenAI API.

Technologies Used

ReactOpenAI APISpotify APISentiment AnalysisOAuth Authentication

Skills Developed

This project was developed with a partner for my Founders and Coders bootcamp. It combined my interests in music and AI, teaching me how to work with OAuth flows, multiple API integrations, and sentiment analysis techniques.

About this Project

The Sentiment-Based Spotify Playlist Generator analyzes the emotional tone of user-provided text using OpenAI's language models, then generates a personalized Spotify playlist that matches the detected mood. Users can connect their Spotify accounts, input any text (like journal entries, social media posts, or creative writing), and receive a custom playlist that reflects the emotional content of their writing.

Key Features

  • Text sentiment analysis using OpenAI
  • Spotify integration with OAuth authentication
  • Custom playlist generation based on mood
  • Audio feature analysis and matching
  • Save generated playlists to Spotify account
  • Share playlists with friends

Challenges & Solutions

Challenge 1:Accurately mapping sentiment analysis to musical attributes

Solution:

Created a sophisticated mapping system between emotional dimensions and Spotify's audio features like valence, energy, and tempo

Challenge 2:Implementing secure OAuth authentication with Spotify

Solution:

Developed a robust authentication flow with proper token handling and refresh mechanics