Skip to content

Instantly share code, notes, and snippets.

View xaviliz's full-sized avatar
🏠
Working from home

Xavi Lizarraga xaviliz

🏠
Working from home
View GitHub Profile
@xaviliz
xaviliz / gist:592b2956d00b4c3bbe96d217f0ac8edd
Created January 27, 2026 14:40
AudioWriter::testOgg() fails on Ubuntu 24.04LTS and Debian13
python3 test/src/unittests/all_tests.py audiowriter_streaming
Running tests normally
----------------------------------------------------------------------
Running tests:
['audiowriter_streaming']
testAiff (unittests.io.test_audiowriter_streaming.TestAudioWriter_Streaming.testAiff) ... ok
testEmpty (unittests.io.test_audiowriter_streaming.TestAudioWriter_Streaming.testEmpty) ... ok
testMp3 (unittests.io.test_audiowriter_streaming.TestAudioWriter_Streaming.testMp3) ... ok
testOgg (unittests.io.test_audiowriter_streaming.TestAudioWriter_Streaming.testOgg) ... FAIL
testOneSample (unittests.io.test_audiowriter_streaming.TestAudioWriter_Streaming.testOneSample) ... ok
@xaviliz
xaviliz / infer-arousal-valence-models-in-essentia.py
Last active March 30, 2025 19:00
Some examples of how to infer audio with the transfer learning-based arousal-valence models trained with DEAM dataset in Essentia.
# An example to infer arousal valence models with audio files in Essentia using the
# `deam-effnet-discogs-1.pb` model (DEAM dataset, Effnet-Discogs embeddings).
import json
from essentia import Pool
from essentia.standard import (
MonoLoader,
TensorflowPredict,
TensorflowPredictEffnetDiscogs,
TensorflowPredictMusiCNN,