RetentionLabs/wav2vec2-large-tcn-msp-emotion-vad-standard
an AI model for high-precision speech emotion analysis
2 min read
This model determines emotional valence (positive/negative), arousal, and dominance (emotional strength) from speech at a 25 Hz frequency. It is built on top of the pre-trained audeering/wav2vec2-large-robust-12-ft-emotion-msp-dim model (around 0.17B parameters) by adding a new temporal convolutional head (TCN for tracking temporal context). Unlike the base version, which provides an averaged result for the entire phrase, this new model analyzes the speech stream frame by frame, more accurately tracking emotional shifts over time. It will be useful for voice researchers, voice assistant developers, and customer call analysis systems.
Key features
- Frame-by-frame analysis: outputs VAD (valence, arousal, dominance) data in standard space at a high frequency of 25 Hz.
- Frozen encoder: uses verified weights from the base audeering model while training only the additional temporal convolutional head (TCN).
- Improved quality: demonstrates high consistency on complex datasets such as MSP-Podcast and ESD.
- Easy setup: fully compatible with the standard
transformerslibrary and PyTorch in bfloat16 format.
What you can do
- Call analysis: integrate into contact center monitoring systems to evaluate the emotional state of clients and operators in real time.
- Speech research: apply in psycholinguistics scientific projects to track emotional changes in long audio recordings in detail.
- Smart bots: create interactive voice applications that react to the user's tone and mood.
Example
import torch
from transformers import AutoFeatureExtractor, AutoModel
model = AutoModel.from_pretrained("RetentionLabs/wav2vec2-large-tcn-msp-emotion-vad-standard", trust_remote_code=True, dtype=torch.bfloat16).eval()
feature_extractor = AutoFeatureExtractor.from_pretrained("RetentionLabs/wav2vec2-large-tcn-msp-emotion-vad-standard")
# The feature extractor normalizes each waveform like the original audEERING model.
waveform = ... # mono, 16 kHz, numpy array
inputs = feature_extractor(waveform, sampling_rate=16000, return_tensors="pt")
with torch.no_grad():
out = model(inputs.input_values.to(torch.bfloat16))
vad = out.vad[0] # (frames, 3): valence, arousal, dominance
times = model.frame_times(vad.shape[0]) # seconds from the startRead more
Details• Base model: audeering/wav2vec2-large-robust-12-ft-emotion-msp-dim (0.17B parameters)
• Architecture: frozen encoder + residual TCN head (dilations 1, 2, 4, 8, width 192)
• Training: on ESD and MSP-Podcast datasets (1:1)
• Performance: on ESD joined CCC is 0.585 / 0.688 / 0.698 (V/A/D)
• Requirements: transformers library and PyTorch (bfloat16 recommended)










Comments