Skip to content

This project uses the face-api.js library to detect facial expressions and recommend music based on the detected emotions. It integrates with the Spotify API to fetch and play music recommendations.

Notifications You must be signed in to change notification settings

charanteja-7/emotion-based-music-recommendation-system

Repository files navigation

Emotion-Based Music Recommendation Application

Overview

This project is a web application that uses facial recognition to analyze user emotions and provide music recommendations based on their mood. The application leverages the Face API for emotion detection and the Spotify API for song recommendations.

Features

  • Real-time Facial Expression Recognition: Captures user’s facial expressions using the webcam.
  • Emotion Detection: Identifies the user's emotional state (e.g., happy, sad, angry) through facial expressions.
  • Music Recommendations: Suggests songs from Spotify based on detected emotions.
  • Spotify Integration: Utilizes the Spotify API to fetch and play songs.

Technologies Used

  • HTML: For structuring the web application.
  • CSS: For styling the application.
  • JavaScript: For functionality and interaction.
  • Face API: For facial expression recognition.
  • Spotify API: For music recommendations and playback.

Getting Started

Prerequisites

  • Basic understanding of HTML, CSS, and JavaScript.
  • A Spotify Developer account for API access.
  • A Face API account for facial recognition.

Installation

  1. Clone the Repository:

    git clone https://github.com/charanteja-7/emotion-based-music-recommendation-system.git
  2. Set Up API Keys:

Usage

  1. Start the Application:

    Open the index.html file in a web browser. Ensure you grant the browser permission to access your camera.

  2. Interact with the App:

    • The application will open the camera and start recognizing your facial expressions.
    • Based on your emotions, it will suggest songs and provide playback options.

Acknowledgements

  • Face API: For providing the facial recognition capabilities.
  • Spotify API: For offering a vast library of music.
  • Open Source Libraries: Various libraries and frameworks used in the development of this project.

About

This project uses the face-api.js library to detect facial expressions and recommend music based on the detected emotions. It integrates with the Spotify API to fetch and play music recommendations.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published