Extract emotions from audio. based on emotion2vec
- Extract emotion from audio files
pip install -U emotion2onnx
- You also need
emotion2vec.onnx
- Please see examples
Instructions
- Install uv for isolated Python (Recommend).
Basically open the terminal (PowerShell / Bash) and run the command listed in their website.
Note: you don't have to use uv
. but it just make things much simpler. You can use regular Python as well.
- Create new project folder (you name it)
- Run in the project folder
uv init -p 3.12
uv add emotion2onnx soundfile
- Paste the contents of
examples/usage.py
inhello.py
- Download the files
emotion2vec.onnx
and place it in the same directory. - Run
uv run hello.py
That's it! emotions should be shown.
See examples