Giter Site home page Giter Site logo

luisa13 / speech_emotion_recogntion_in_foreign_language Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 1.0 42.93 MB

Classify and recognize emotions through voice signal in a foreign language

License: GNU Affero General Public License v3.0

TeX 5.63% Jupyter Notebook 93.92% Python 0.46%
dataset machine-learning audio-processing voice-signal speech-emotion-recognition mfcc-features

speech_emotion_recogntion_in_foreign_language's Introduction

Speech Emotion Recognition in a Foreign Language

Is one able to recognize the sentiments behind a conversation in a unknown language? Is is possible to distinguish the same emotions in a foreign language that one does in their mother tongue? The emotional background hidden in the speach is a key factor in the human communication. This work attemps to performs a speech emotional recognition through three languages. For this purpose, three different models have been implemented and trained in english and subsequently tested in other two languages which never took part in the training (french and german). It is assumed that speech audio signals carry emotional information that can be retrieved and hence MFCC (Mel-Frecuency Cepstral Coefficients) are extracted since they are recognized as best suited to represents emotions through prosody. Different classifiers based on convolutional neural network architecture were used. The results show that the CNN-LSTM outperform over the other options with a 92.06% of accuracy in a monolinguistic classification in english with six classes. On the other hand, appliying the same approach in a cross language classification did not deliver satisfactory results.

image

system proposal

image

Architechture based on unidimensional CNN and corresponding performance

image

Architechture based on bidimensional CNN and corresponding performance

image

Architechture based on bidimensional CNN - LSTM and corresponding performance

Datasets for training

  • SAVEE : (Surrey Audio-Visual Expressed Emotion) It is an emotion recognition dataset that consists of recordings from 4 male actors in 7 different emotions, 480 British English utterances in total. The sentences were chosen from the standard TIMIT corpus and phonetically-balanced for each emotion [1].

  • TESS : (Toronto emotional speech set ) Set of 200 target words were spoken in the carrier phrase "Say the word__ " by two actresses (aged 26 and 64 years) and recordings were made of the set portraying each of seven emotions (anger, disgust, fear, happiness, pleasant surprise, sadness, and neutral). There are 2800 data points (audio files) in total [2].

Datasets for test

  • EMO-DB: It's the freely available German emotional database. The database is created by the Institute of Communication Science, Technical University, Berlin, Germany. The database contains a total of 535 utterances. The EMODB database comprises of seven emotions: 1) anger; 2) boredom; 3) anxiety; 4) happiness; 5) sadness; 6) disgust; and 7) neutral. The data was recorded at a 48-kHz sampling rate and then down-sampled to 16-kHz.

  • CaFE: ( Canadian French Emotional) This speech dataset contains six different sentences, pronounced by six male and six female actors, in six basic emotions plus one neutral emotion. The six basic emotions are acted in two different intensities. It's freely available under a Creative Commons license (CC BY-NC-SA 4.0) and was digitally recorded at a high-resolution (192 kHz sampling rate, 24 bits per sample).

Requirements

  • Python 3.6 or higher
  • Librosa 0.8.1
  • Tensorflow 2.0
  • OpenCV 3.4.2

Project Structure

Project
|_______data
|       |_______processed
|       |_______raw
|_______models
|_______notebook
|_______reports
|_______src
       |_______data
       |_______features
       |_______model

References

[1] Jackson P., & ul Haq S. (2011). Surrey Audio-Visual Expressed Emotion (SAVEE) database.

[2] Kate Dupuis, M. Kathleen Pichora-Fuller (2010), University of Toronto, Psychology Department. doi.org/10.5683/SP2/E8H2MF

Author and License

Luisa Sanchez Avivar 2021 under licence of GNU AGPL v 3.0. The original version of this work was firstly issued by University at its repository.

speech_emotion_recogntion_in_foreign_language's People

Contributors

luisa13 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

reshmiphilipver

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.