πŸŽ™οΈ Persian Speech Emotion Recognition with SpeechBrain (ShEMO)

This repository provides an ECAPA-TDNN model for speech emotion recognition in Persian, developed using the SpeechBrain toolkit.

The model has been trained on the ShEMO dataset, which includes annotated emotional speech in Persian.
It leverages the ECAPA-TDNN architecture, commonly used in speaker recognition and emotion classification tasks.

Supported Emotion Classes

The model predicts one of the following six emotions: anger, sadness, neutral, surprise, happiness, fear

πŸ“¦ How to use this model locally

You can run inference using the included Python script. Here's how:

1️⃣ Clone the repository

git lfs install
git clone https://huggingface.co/mobina1380/speechbrain-persian-ser
cd speechbrain-persian-ser

2️⃣ Install required libraries

pip install speechbrain torchaudio

3️⃣ Run inference on your audio file

Put your Persian speech file in the same folder (WAV, mono, 16kHz). Then:

from inference import predict
emotion = predict("your_audio.wav")
print("Predicted emotion:", emotion)

πŸ“ Repository Structure

speechbrain-persian-ser/
β”œβ”€β”€ inference.py            # Inference logic
β”œβ”€β”€ hyperparams.yaml        # Model configuration
β”œβ”€β”€ custom.yaml             # Optional training config
β”œβ”€β”€ save/                   # Folder with checkpoints
β”‚   └── CKPT+...            # Fine-tuned weights
└── README.md               # You're reading it!

πŸ“„ License

Model: MIT License

Dataset: ShEMO dataset β€” check original license

πŸ“¬ Contact

If you have any questions, feedback, or would like to collaborate, feel free to reach out:

πŸ“§ Email: esmaeilimobina98@gmail.com
πŸ€— Hugging Face: mobina1380

Downloads last month
3
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for mobina1380/speechbrain-persian-ser

Finetuned
(1)
this model