Skip to main content

Speech Emotion Recognition models and training using Tensorflow 2.x

Project description

Vistec-AIS Speech Emotion Recognition

python-badge tensorflow-badge license

Upload Python Package Training

Code Grade Code Quality Score

Speech Emotion Recognition Model and Inferencing using Tensorflow 2.x

Installation

From Pypi

pip install vistec-ser

From source

git clone https://github.com/tann9949/vistec-ser.git
cd vistec-ser
python setup.py install

Usage

Train with Your Own Data

We provide Google Colaboratory example for training Emo-DB dataset using our repository.

VISTEC-depa Thailand Artificial Intelligence Research Institute

Preparing Data

To train with your own data, you need to prepare 2 files:

  1. config.yml (see an example in tests/config.yml) - This file contains a configuration for extracting features and features augmentation.
  2. labels.csv - This will be a .csv file containing 2 columns mapping audio path to its emotion.
    • Your .csv file should contain a header (as we will skip the first line when reading).
    • Currently, we only support 5 emotions (neutral, anger, happiness, sadness, and frustration) if you want to add more, modify EMOTIONS variable in dataloader.py

Preparing a model

Now, prepare your model, you can implement your own model using tf.keras.Sequential or using provided model in models.py.

Training

For training a model, create a DataLoader object and use method .get_dataset to get tf.data.Dataset used for training. DataLoader will also use FeatureLoader which will read config.yml. The dataset will automatically pad a batch according to the longest sequence length.

Inferencing

TODO

Reference

This repository structure was inspired by TensorflowASR by Huy Le Nguyen (@usimarit). Please check it out!

Author & Sponsor

VISTEC-depa Thailand Artificial Intelligence Research Institute

Chompakorn Chaksangchaichot

Email: chompakornc_pro@vistec.ac.th

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

vistec-ser-0.2.2a2.tar.gz (14.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

vistec_ser-0.2.2a2-py3-none-any.whl (22.6 kB view details)

Uploaded Python 3

File details

Details for the file vistec-ser-0.2.2a2.tar.gz.

File metadata

  • Download URL: vistec-ser-0.2.2a2.tar.gz
  • Upload date:
  • Size: 14.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.7

File hashes

Hashes for vistec-ser-0.2.2a2.tar.gz
Algorithm Hash digest
SHA256 396a5804fbb5980379e8d0e24c13eb847986825f3153a32663c90538dc183a1c
MD5 007dc430ed05609ca8dd3df94d09f0a4
BLAKE2b-256 2d7d964dc4886c53113775f154e093ce4fac2def73557b4b7d1487e78054f7ee

See more details on using hashes here.

File details

Details for the file vistec_ser-0.2.2a2-py3-none-any.whl.

File metadata

  • Download URL: vistec_ser-0.2.2a2-py3-none-any.whl
  • Upload date:
  • Size: 22.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.8.7

File hashes

Hashes for vistec_ser-0.2.2a2-py3-none-any.whl
Algorithm Hash digest
SHA256 064fa70a0f225e6912d67b6dbeea5ab7b51573084b8a6f0583d2b4d4305936ad
MD5 e94f00e137ebc8c2085103e3bf2d6fdf
BLAKE2b-256 eff5d7dd6bc39db92547a2b21fe2d46eee239a3379b4f7f76d0d825450eb44e0

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page