/mood-music

Play music based on your current mental state. Built for HackUSU 2017.

Primary LanguagePythonMIT LicenseMIT

Muse Music

Play music based on your current mood. Using a Muse EEG headband we are able to scan a current level of mellowness from the wearer and use that to queue up songs on Spotify that keep up with the mood of the wearer in realtime.

Muse Music in Action.gif

Getting Started

Prerequisites

You will need:

  • Muse EEG-reading headband
  • Device with python3 to process the headband data and interface with Spotify
  • Spotify account with premium subscription
  • Spotify developer account (free - https://developer.spotify.com)

Usage

./muse-io --device 00:06:66:65:92:94 --osc osc.udp://127.0.0.1:5000
python muse_tool.py
export FLASK_RUN=predict_api.py
flask run --port 8000

Set some environment variables:

export SPOTIPY_CLIENT_ID={your spotify developer account client id}
export SPOTIPY_CLIENT_SECRET={your spotify dev account client secret}
export SPOTIPY_REDIRECT_URI={any redirect URI will do}
export SPOTIFY_USERNAME={your spotify username}

To run the demo application also run this:

python demo.py

Built With

Authors

This project was created by Mitch McAffee and Rahul Ramkumar for hackusu 2017