百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
M

MevonAI-Speech-Emotion-Recognition

> DevOps
开源

在音频片段中识别多个发言人的情绪

179 stars0 点赞1 次浏览
访问官网GitHub

工具介绍

在音频片段中识别多个发言人的情绪

MevonAI - Speech Emotion Recognition

Identify the emotion of multiple speakers in a Audio Segment 


Report Bug
·
Request Feature

Try the Demo Here

Table of Contents

  • About the Project
    • Built With
  • Getting Started
    • Installation
    • Running the Application
  • How it Works
    • Speaker Diarization
    • Feature Extraction
    • CNN Model
    • Training the Model
  • Contributing
  • License
  • Acknowledgements
  • FAQ

About The Project

The main aim of the project is to Identify the emotion of multiple speakers in a call audio as a application for customer satisfaction feedback in call centres.

Built With

  • Python 3.6.9
  • Tensorflow-Keras
  • librosa

Getting Started

Follow the Below Instructions for setting the project up on your local Machine.

Method 1

Recommended

  1. Install docker
  2. Pull the docker image
bash
sudo docker pull chinmaynehate/mevon-ai-ser:2.0
  1. Run the docker image
bash
sudo docker run -it chinmaynehate/mevon-ai-ser:2.0 bash
  1. Run Speech Emotion Recognition using
bash
python3 speechEmotionRecognition.py

Method 2

Installation

  1. Create a python virtual environment
bash
sudo apt install python3-venv
mkdir mevonAI
cd mevonAI
python3 -m venv mevon-env
source mevon-env/bin/activate
  1. Clone the repo
bash
git clone https://github.com/SuyashMore/MevonAI-Speech-Emotion-Recognition.git
  1. Install Dependencies
bash
cd MevonAI-Speech-Emotion-Recognition/
cd src/
sudo chmod +x setup.sh
./setup.sh

Running the Application

  1. Add audio files in .wav format for analysis in src/input/ folder

  2. Run Speech Emotion Recognition using

bash
python3 speechEmotionRecognition.py
  1. By Default , the application will use the Pretrained Model Available in "src/model/"

  2. Diarized files will be stored in "src/output/" folder

  3. Predicted Emotions will be stored in a separate .csv file in src/ folder

Here's how it works:

Speaker Diarization

  • Speaker diarisation (or diarization) is the process of partitioning an input audio stream into homogeneous segments according to the speaker identity. It can enhance the readability of an automatic speech transcription by structuring the audio stream into speaker turns and, when used together with speaker recognition systems, by providing the speaker’s true identity. It is used to answer the question "who spoke when?" Speaker diarisation is a combination of speaker segmentation and speaker clustering. The first aims at finding speaker change points in an audio stream. The second aims at grouping together speech segments on the basis of speaker characteristics.

Feature Extraction

  • When we do Speech Recognition tasks, MFCCs is the state-of-the-art feature since it was invented in the 1980s.This shape determines what sound comes out. If we can determine the shape accurately, this should give us an accurate representation of the phoneme being produced. The shape of the vocal tract manifests itself in the envelope of the short time power spectrum, and the job of MFCCs is to accurately represent this envelope.

The Above Image represents the audio Waveform , the below image shows the converted MFCC Output on which we will Run our CNN Model.

CNN Model

  • Use Convolutional Neural Network to recognize emotion on the MFCCs with the following Architecture
python
model = Sequential()

#Input Layer
model.add(Conv2D(32, 5,strides=2,padding='same',
                 input_shape=(13,216,1)))
model.add(Activation('relu'))
model.add(BatchNormalization())

#Hidden Layer 1
model.add(Conv2D(64, 5,strides=2,padding='same',))
model.add(Activation('relu'))
model.add(BatchNormalization())

#Hidden Layer 2
model.add(Conv2D(64, 5,strides=2,padding='same',))
model.add(Activation('relu'))
model.add(BatchNormalization())

#Flatten Conv Net
model.add(Flatten())

#Output Layer
model.add(Dense(7))
model.add(Activation('softmax'))

Training the Model

  • Download RAVDESS Emotional speech audio dataset

  • 2DConvolution.ipynb file is used to training the model

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

License

Distributed under the MIT License. See LICENSE for more information.

Acknowledgements

  • Speech Emotion Recognition from Saaket Agashe's Github
  • Speech Emotion Recognition with CNN
  • MFCCs Tutorial
  • UIS-RNN Fully Supervised Speaker Diarization
  • uis-rnn and speaker embedding by vgg-speaker-recognition by taylorlu

FAQ

  • How do I do specifically so and so?
    • Create an Issue to this repo , we will respond to the query

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Cartificial-intelligencecolab-notebookconvolutional-neural-networksdeep-learning

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月18日
分类DevOps
定价开源

> 相关工具

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理