Downloads · 30 days
0
Sammaiah/audio-emotion-pipeline
audio-emotion-pipeline is a machine learning model from Sammaiah. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
End-to-end audio emotion recognition pipeline: 1. Speaker Diarization (pyannote/speaker-diarization-3.1 / 4.0+) 2. Feature Extraction (Whisper-small + DistilBERT + Prosody) 3. Emotion Classification (Tri-modal Fusion…
Downloads · 30 days
0
Access
Public
Updated Sep 7, 2026
Repo size
—
Likes
0
Public
Click a slice to open those files.
.pyc39.2 KB · 57%
From the Hugging Face model README
End-to-end audio emotion recognition pipeline:
Step 1: Clone this repository
git clone https://huggingface.co/Sammaiah/audio-emotion-pipeline
Step 2: Install dependencies
pip install torch torchaudio transformers pyannote.audio huggingface_hub
Step 3: Run inference in Python
from audio_emotion_pipeline.emotion_pipeline import EmotionPipeline
import json
# Initialize pipeline (Requires HuggingFace token for Pyannote)
pipeline = EmotionPipeline(hf_token="your_hf_token_here", device="cuda")
# Run end-to-end analysis on any audio/video file
result = pipeline("meeting.wav")
print(json.dumps(result, indent=2))
(The pipeline will automatically download the 300MB trained model weights Sammaiah/Audio_DAR_MELD_Fusion_v4_focal_loss behind the scenes during initialization!)
Uses the v4 Focal Loss checkpoint: Sammaiah/Audio_DAR_MELD_Fusion_v4_focal_loss
neutral, joy, sadness, anger, fear, disgust, surprise