Views
No views yet
1import torch
2import librosa
3from transformers import AutoModelForAudioClassification, AutoFeatureExtractor
4
5## Load an audio file
6audio_array, sr = librosa.load("path_to_audio.wav", sr=16000)
7
8## Load model and feature extractor
9model = AutoModelForAudioClassification.from_pretrained("alkiskoudounas/hubert-base-unslurp")
10feature_extractor = AutoFeatureExtractor.from_pretrained("facebook/hubert-base-ls960")
11
12## Extract features
13inputs = feature_extractor(audio_array.squeeze(), sampling_rate=feature_extractor.sampling_rate, padding=True, return_tensors="pt")
14
15## Compute logits
16logits = model(**inputs).logits1@inproceedings{koudounas2025unlearning,
2 title={"Alexa, can you forget me?" Machine Unlearning Benchmark in Spoken Language Understanding},
3 author={Koudounas, Alkis and Savelli, Claudio and Giobergia, Flavio and Baralis, Elena},
4 booktitle={Proc. Interspeech 2025},
5 year={2025},
6}