Git Product home page Git Product logo

roomotion's Introduction

ROOMOTION

Developed and programmed by Luca Cattaneo, Zouzoua Axel Israel BLE and Giovanni Zanocco

Introduction

ROOMOTION "Room" + "Emotion" is thought to be an installation. An immersive and interactive experience in which emotions are recognised from the voice of the user and music along with visuals on the screen are generated from the captured emotions, creating a whole personal world for the user.

Here are some images of the room. central screen: could be any work of art. The user could interact with it by painting on it with his hands

the side walls with the different emotions: the colors mapping to emotions are done following the Color Theory of J. W. Von Goethe. Also, the movements of the particles change with the emotion following the Arousal/Valence model. The considered emotions are: Anger, Happiness, Sadness, and Neutral/Calm.

the floor: the user's position in the room is mapped to the center of the sfere, so as the user moves he can see the sphere moving with him on the floor. Moreover, as the user speaks, the particles of the sphere brighten creating a shiny effect.

Installation

In order to run the application you must first download and unzip the EMOPIA folder at this link. This folder contains all the scripts used for Automatic Music Generation and Speech Emotion Recognition. You can see the networks we started from original repositories: SER and EMOPIA.

Requirements

  • The software has been tested using Python 3.8.12 running on Fedora Linux 35
  • It is recommended to create a Python virtual environment

Python Packages

SER

  • tensorflow
  • librosa
  • numpy
  • pandas
  • soundfile
  • wave
  • sklearn
  • tqdm
  • matplotlib
  • pyaudio

EMOPIA

  • torch==1.7.0
  • pytorch-fast-transformers
  • scikit-learn==0.24.1
  • seaborn==0.11.1
  • numpy==1.19.5
  • miditoolkit==0.1.14
  • pandas==1.1.5
  • ipdb
  • tqdm
  • matplotlib
  • scipy
  • pickle
  • pygame
  • python-osc
  • keyboard

Custom Changes

Inside EMOPIA/workspace/transformer/SER/Main.py:

  • line 3: os.environ["XDG_RUNTIME_DIR"]="/run/user/1000" is only necessary on Linux systems that use PulseAudio.
  • line 152: Change the /bin directory with the location of your Python virtual environment
  • line 163/164: Change the hard-coded IP addresses with the addresses of your OSC servers. If you are using different devices you need to be connected to the same network

How to use it

In order to start the main script you must place yourself inside the EMOPIA/workspace/transformer/SER folder and run the command

$ sudo <your Python venv folder>/ipython Main.py

Then, in order to trigger the start of the recording you must hit the spacebar key on your keyboard. After the recording is done, the application will automatically try to recognize its main emotion and generate a short song based on that emotion. The emotion probabilities will be automatically sent to the animations you've opened.

Animations

Run the animations on Processing. The animations receive OSC messages, therefore if you changed some parameter in python script, check the parameters of the OSC Server. We suggest to use the animations on different displays becuase they run in fullscreen. In /animations we provided also a OSC client that create pseudo-random emotion probabilities and send them on localhost. You can use it in order to test the animations without using the entire script.

roomotion's People

Contributors

cattaneoluca avatar dr-zaib avatar giozano avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

dr-zaib

roomotion's Issues

Names + image

HI, I'm adding the project to the course website.
I'd need (and I'd suggest you to add to the README) your names and some pictures showing the project.
Thanks!

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.