Instructions to use padmalcom/wav2vec2-large-emotion-detection-german with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use padmalcom/wav2vec2-large-emotion-detection-german with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("audio-classification", model="padmalcom/wav2vec2-large-emotion-detection-german")# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, Wav2Vec2ForSpeechClassification processor = AutoProcessor.from_pretrained("padmalcom/wav2vec2-large-emotion-detection-german") model = Wav2Vec2ForSpeechClassification.from_pretrained("padmalcom/wav2vec2-large-emotion-detection-german", device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 725 Bytes
e7db00a 488f080 e7db00a 323b9a1 e7db00a | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 | ---
language:
- de
license: apache-2.0
tags:
- voice
- classification
- emotion
- speech
- audio
datasets:
- emo-DB
widget:
- src: >-
https://huggingface.co/padmalcom/wav2vec2-large-emotion-detection-german/resolve/main/test.wav
example_title: Sample 1
pipeline_tag: audio-classification
metrics:
- accuracy
---
This wav2vec2 based emotion detection model is trained on the [emo-DB dataset](http://emodb.bilderbar.info/start.html).
Code for training can be found [here](https://github.com/padmalcom/wav2vec2-emotion-detection-ger).
Emotion classes are:
- 0: 'anger'
- 1: 'boredom'
- 2: 'disgust'
- 3: 'fear'
- 4: 'happiness'
- 5: 'sadness'
- 6: 'neutral'
*inference.py* shows, how the model can be used. |