Skip to content

FEAT: Integrate Spotify/YouTube Music API for real music recommendations #82

@Sappymukherjee214

Description

@Sappymukherjee214

📋 Description

Integrate Spotify and/or YouTube Music APIs into the project so that emotion-based recommendations map to real, playable music tracks and playlists instead of static or placeholder audio. This will allow users to listen to songs directly from popular music platforms based on detected facial emotions.


🤔 Motivation

Currently, the recommendation system focuses on detecting emotions from facial expressions, but the final output does not seamlessly connect to widely used music streaming platforms. This limits real-world usability and makes the system feel more like a demo than a complete product.

Integrating real music APIs would:

  • Provide authentic listening experiences
  • Increase user engagement
  • Make the project more practical and industry-relevant

🛠 Proposed Solution

  • API Integration

    • Use the Spotify Web API and/or YouTube Data API to fetch songs or playlists
    • Map detected emotions (happy, sad, angry, neutral, etc.) to predefined genres or moods
  • Authentication

    • Implement OAuth-based authentication for Spotify (optional for YouTube embeds)
    • Allow users to authorize access to their music accounts (if required)
  • Recommendation Flow

    • Detect facial emotion
    • Convert emotion → genre/mood
    • Fetch matching tracks or playlists from the music API
    • Play or embed the recommended music directly in the UI
  • UI Enhancements

    • Display song title, artist, album art
    • Provide play/pause and redirect-to-platform options

🔄 Alternatives Considered

  • Using only local audio files (limited and not scalable)
  • Redirecting users to generic playlists without API integration
  • Hardcoded song lists per emotion (not dynamic)

These approaches reduce flexibility and real-world relevance.


📌 Additional Context

This feature would significantly elevate the project from a proof-of-concept to a usable emotion-aware music recommendation application.


🙏 Thanks for suggesting this improvement — it would greatly enhance the realism and user experience of the project!

Metadata

Metadata

Labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions