Speech Emotion Recognition with Wav2Vec2

TL;DR
Speech Emotion Recognition with Wav2Vec2 is a fine-tuned Wav2Vec2 Large XLSR-53 model that classifies speech into seven emotions: Angry, Disgust, Fearful, Happy, Neutral, Sad, and Surprised.
It was trained for 25 epochs on approximately 4,900 balanced samples from RAVDESS, SAVEE, TESS, and URDU, with reported results of 91.68% accuracy and a 91.66% F1 score.
What the Model Is
Wav2Vec2, now listed on AIOZ AI, is an audio-classification model designed to identify emotional expression in recorded speech.
Built on Wav2Vec2 Large XLSR-53, it focuses on emotion classification rather than speech transcription. The model analyzes an audio recording and returns one of seven emotion labels.
It can run in both GPU and CPU environments, making it suitable for a range of speech-aware applications.
How the Model Processes Speech
The workflow includes three main stages:
- Audio normalization: Librosa prepares the input signal
- Feature extraction: Wav2Vec2 Feature Extractor converts the audio into model-ready inputs
- Emotion classification: The fine-tuned model predicts one of seven supported emotion classes

Input and Output
The model accepts a speech recording processed through the documented normalization and feature-extraction pipeline.
It returns one of seven labels: Angry, Disgust, Fearful, Happy, Neutral, Sad, or Surprised.
Core Capabilities
- Seven-class speech emotion recognition
- Wav2Vec2-based audio classification
- Integration into voice and audio-processing workflows
- Emotion-aware analysis for assistants and call-center applications
Training and Performance
The model was fine-tuned on approximately 4,900 balanced speech samples from: RAVDESS, SAVEE, TESS, and URDU.
Training ran for 25 epochs using the Adam optimizer and native automatic mixed precision, with experiment tracking through Weights & Biases.
Results include:
- Accuracy: 91.68%
- Precision: 92.09%
- Recall: 91.68%
- F1 score: 91.66%
Performance may vary with recording quality, speaker characteristics, background noise, language, and emotional expression.
Key Technical Details
- Model: Speech Emotion Recognition with Wav2Vec2
- Base model: Wav2Vec2 Large XLSR-53
- Task: Speech emotion classification
- Emotion classes: 7
- Labels: Angry, Disgust, Fearful, Happy, Neutral, Sad, Surprised
- Training samples: ~4,900 balanced samples
- Training datasets: RAVDESS, SAVEE, TESS, URDU
- Training duration: 25 epochs
- Optimizer: Adam
- Audio preparation: Librosa normalization + Wav2Vec2 Feature Extractor
- Execution environments: GPU and CPU
- License: Apache 2.0
Where It Fits Best
- Speech emotion recognition applications
- Call-center emotion analysis
- Interactive voice assistants
- Emotion-aware user experiences
- Audio-processing workflows
- Research involving emotional speech
Explore It on AIOZ AI
Wav2Vec2 provides a focused approach to seven-class emotional speech classification.
Explore Wav2Vec2 on AIOZ AI and evaluate how it fits your own speech and audio-processing workflow.
FAQ
Q1: What emotions can the model classify?
It classifies speech into Angry, Disgust, Fearful, Happy, Neutral, Sad, or Surprised.
Q2: What model is it based on?
It is a fine-tuned Wav2Vec2 Large XLSR-53 model for speech emotion classification.
Q3: Which datasets were used for training?
The training data combines approximately 4,900 balanced samples from RAVDESS, SAVEE, TESS, and URDU.