Giter Site home page Giter Site logo

ml1_py_speechemotionrecognition's Introduction

Speech Emotion Recognition

The Challenge

Recognize a person’s emotion from his/her speech.

Assumption

Voice often reflects underlying emotion through tone and pitch. By converting audio signals to numerical values, we can extract features from the sound file and annotate as necessary. Using a supervised learning approach, we can train classifiers to learn and detect emotions.

Data

For this project we will use a modified (reduced sample rate) version of Ryerson Audio-Visual Database of Emotional Speech and Song (RAVDESS) dataset, which can be downloaded from here. This dataset has 7356 files rated by 247 individuals 10 times on emotional validity, intensity, and genuineness.

Methodology

We will use librosa 0.8.0, which is a Python library for analyzing audio and music as well as pysoundfile -0.10.2 library.

Steps:

  1. Load required libraries
  2. Define a function for features extraction from audio files
  3. Define a dictionary for emotions
  4. Define a function to create a dataset by loading audio files and extracting features from those files.
  5. Load, create and split dataset
  6. Initialize feedforward ANN model: Multi-layer Perceptron classifier
  7. Train and test the model
  8. Measure performance
  9. Future improvement: Parameter optimization, Different classifier (XGB)

Measurement Criteria

Accuracy

Requirements

Python 3.8, (Jupyter Notebook), pandas-1.1.1, numpy-1.19.1, scipy-1.5.2, scikit-learn-0.23.2, matplotlib-3.3.1, librosa 0.8.0, pysoundfile -0.10.2

Disclaimer

We have reproduced the code for educational and learning purposes only. Original article can be found here.

ml1_py_speechemotionrecognition's People

Contributors

hasanaltariq avatar

Stargazers

 avatar

Watchers

 avatar

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.