← Open Source
audeering

w2v2-how-to

How to use our public wav2vec2 dimensional emotion model.

TutorialsTool-specific tutorialsJupyter Notebook
Open on GitHub
Momentum
+0stars in 24 hours0.0%
564
Stars
49
Forks
+1
This week
2
Contributors
Created 2022-02-21 · Updated 2026-10-12 · #16943 today
Top developers
frankenjoehagenw

audeering/w2v2-how-to is ranked 16,943 with 564 stars.

Same-category comparison

audeering/w2v2-how-to is ranked 16,943 among these 8 peers; PacktPublishing/TensorFlow-Machine-Learning-Cookbook is ranked 16,939.

Same-category comparison
NameRankMetrics
qx0731/Sharing_ISL_python16,873
Language:
Jupyter Notebook
Stars:
568
Forks:
272
Description:
An Introduction to Statistical Learning with Applications in PYTHON.
shawroad/NLP_pytorch_project16,892
Language:
Python
Stars:
567
Forks:
121
Description:
Embedding, NMT, Text_Classification, Text_Generation, NER etc.
alexeygrigorev/mlbookcamp-code16,899
Language:
Jupyter Notebook
Stars:
566
Forks:
187
Description:
The code from the Machine Learning Bookcamp book.
PacktPublishing/TensorFlow-Machine-Learning-Cookbook16,939
Language:
Python
Stars:
564
Forks:
391
Description:
Code repository for TensorFlow Machine Learning Cookbook by Packt.
italojs/awesome-machine-learning-portugues16,948
Stars:
564
Forks:
90
Description:
Um plano de estudos para o aprender machine learning em português.
gaih/introduction-to-machine-learning-archived16,962
Language:
Jupyter Notebook
Stars:
563
Forks:
507
Azure-Samples/aisearch-openai-rag-audio16,969
Language:
Python
Stars:
562
Forks:
356
Description:
A simple example implementation of the VoiceRAG pattern to power interactive voice generative AI experiences using RAG with Azure AI Search and Azure OpenAI's gpt-4o-realtime-preview model.
Vaibhavs10/fast-whisper-finetuning16,974
Language:
Jupyter Notebook
Stars:
562
Forks:
46
Key parameters and specifications
Key parameters and specifications
ParameterValue
LanguageJupyter Notebook
CategoryTutorials
SubcategoryTool-specific tutorials
KeywordsEmotions
Stars564
Forks49
Contributors2
Created date2022-02-21
Updated date2026-10-12
Stars in 1 day0
Stars in 7 days1
Rank16,943
Previous rank16,731
Rank change-212
7-day stars rank11,330
Previous 7-day stars rank11,394
7-day stars rank change64
Total stars rank17,631
Previous total stars rank17,602
Total stars rank change-29
CountryGermany
README summary

How to use our public dimensional emotion model An introduction to our model for dimensional speech emotion recognition based on wav2vec 2. 6221127 and released under CC BY-NC-SA 4. The model was created by fine-tuning the pre-trained wav2vec2-large-robust model on MSP-Podcast (v1. The pre-trained model was pruned from 24 to 12 transformer layers before fine-tuning. In this tutorial we use the ONNX export of the model. The original Torch model is

hosted at Hugging Face. Further details are given in the associated paper. License The model can be used for non-commercial purposes, see CC BY-NC-SA 4. For commercial usage, a license for devAIce must be obtained. The source code in this GitHub repository is released under the following license. Quick start Create / activate Python virtual environment and install audonnx. The hidden states might be used as embeddings for related speech emotion recognition tasks. The order in the logits

output is: arousal, dominance, valence. Tutorial For a detailed introduction, please check out the notebook. Citation If you use our model in your own work, please cite the following paper:

Frequently asked questions

How many stars and forks are recorded?

audeering/w2v2-how-to has 564 stars and 49 forks.

What is the repository rank?

audeering/w2v2-how-to is ranked 16,943.

What language and category are recorded?

audeering/w2v2-how-to has 564 stars, uses Jupyter Notebook and belongs to Tutorials.

Which repository is closest in rank?

audeering/w2v2-how-to is compared with PacktPublishing/TensorFlow-Machine-Learning-Cookbook, ranked 16,939 with 564 stars.

README

How to use our public dimensional emotion model

An introduction to our model for dimensional speech emotion recognition based on wav2vec 2.0. The model is available from doi:10.5281/zenodo.6221127 and released under CC BY-NC-SA 4.0. The model was created by fine-tuning the pre-trained wav2vec2-large-robust model on MSP-Podcast (v1.7). The pre-trained model was pruned from 24 to 12 transformer layers before fine-tuning. In this tutorial we use the ONNX export of the model. The original Torch model is hosted at Hugging Face. Further details are given in the associated paper.

License

The model can be used for non-commercial purposes, see CC BY-NC-SA 4.0. For commercial usage, a license for devAIce must be obtained. The source code in this GitHub repository is released under the following license.

Quick start

Create / activate Python virtual environment and install audonnx.

$ pip install audonnx

Load model and test on random signal.

import audeer
import audonnx
import numpy as np


url = 'https://zenodo.org/record/6221127/files/w2v2-L-robust-12.6bc4a7fd-1.1.0.zip'
cache_root = audeer.mkdir('cache')
model_root = audeer.mkdir('model')

archive_path = audeer.download_url(url, cache_root, verbose=True)
audeer.extract_archive(archive_path, model_root)
model = audonnx.load(model_root)

sampling_rate = 16000
signal = np.random.normal(size=sampling_rate).astype(np.float32)
model(signal, sampling_rate)
{'hidden_states': array([[-0.00711814,  0.00615957, -0.00820673, ...,  0.00666412,
          0.00952989,  0.00269193]], dtype=float32),
 'logits': array([[0.6717072 , 0.6421313 , 0.49881312]], dtype=float32)}

The hidden states might be used as embeddings for related speech emotion recognition tasks. The order in the logits output is: arousal, dominance, valence.

Tutorial

For a detailed introduction, please check out the notebook.

$ pip install -r requirements.txt
$ jupyter notebook notebook.ipynb 

Citation

If you use our model in your own work, please cite the following paper:

@article{wagner2023dawn,
    title={Dawn of the Transformer Era in Speech Emotion Recognition: Closing the Valence Gap},
    author={Wagner, Johannes and Triantafyllopoulos, Andreas and Wierstorf, Hagen and Schmitt, Maximilian and Burkhardt, Felix and Eyben, Florian and Schuller, Bj{\"o}rn W},
    journal={IEEE Transactions on Pattern Analysis and Machine Intelligence},
    pages={1--13},
    year={2023},
}
Nearby in the ranking
Similar items