Giter Site home page Giter Site logo

peterxiaoguo / speech_emotion_recognition Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jorisvanmens/speech_emotion_recognition

1.0 1.0 0.0 33.53 MB

Predicting emotion in speech

Perl 23.16% C 24.81% Makefile 0.28% C++ 35.28% Python 16.47%

speech_emotion_recognition's Introduction

speech_emotion_recognition

Synopsis

The code here implements different approaches to classification of the emotions from the recorded speech utterances. The project was mostly inspired by the requirements of CS221 class at Stanford.

Code structure

  • data/
    The arff feature files extracted from the original dataset using openSmile package.

  • modeltrain/
    The scripts used to automate feature extraction, training the models and classification of the test set from the original data. It is mostly copied from the corresponding dir from the openSmile packet.

  • nn/
    The implementation of the simple multilayer perceptron (tf_nn.py) and single-layer lstm rnn (rnn.py) used in the project to analyze the performance of the NN to classify the utterances into emotion categories in the project.

  • svm_gmm_logreg/
    The implementation of Support Vector Machine, Gaussian Mixture Model and Logistic Regression models. Includes training and test set error analysis.

Installation

The following packages should be pre-installed to use the code from this project:

Expected dataset layout

The following is the expected layout of the original wave files dataset on the filesystem:

rootdir

    • train/
        • emotion1/
            • File1
            • File2
            • ...
        • emotion2/
            • File1
            • File2
            • ...
        • .../
    • test/
        • emotion1/
            • File1
            • File2
            • ...
        • emotion2/
            • File1
            • File2
            • ...
        • .../

Tests

  • To train and test the multilayer perceptron nn classifier, run cd nn && python tf_nn.py
  • To train and test the LSTM RNN classifier, run cd nn && python rnn.py Note: you will need to edit the rnn.py to provide the proper path to the original dataset.
  • To train and test the SVM, GMM and Logistic Regression models, run cd svm_gmm_logreg && python svm_gmm_logreg.py Note: you will need to edit the svm_gmm_loger.py to provide the proper path to the original dataset (../data/etc.)

speech_emotion_recognition's People

Contributors

gmakarevich-aurora avatar jorisvanmens avatar

Stargazers

XiaoGuo avatar

Watchers

James Cloos 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.