Downloads · 30 days
8
2% of all-time downloads
arunps/wav2vec2-base-adsids
wav2vec2-base-adsids is a audio classification model from arunps. Use it for the audio classification task on the model card, and read the license before you ship it in a product. It is set up for transformers. The card lists the license as mit.
Fine-tuned wav2vec2-base model for classifying speech register and vocal mode: Adult-Directed Speech (ADS), Infant-Directed Speech (IDS), Adult Song (ADS-song), and Infant Song (IDS-song).
Downloads · 30 days
8
2% of all-time downloads
All-time downloads
489
Public
Repo size
4.2 GB
Likes
0
Public
Click a slice to open those files.
.bin378 MB · 100%
From the Hugging Face model README
Fine-tuned wav2vec2-base model for classifying speech register and vocal mode:
Adult-Directed Speech (ADS), Infant-Directed Speech (IDS), Adult Song (ADS-song), and Infant Song (IDS-song).
This model classifies a given speech or song segment into one of four vocalization categories:
It was fine-tuned from facebook/wav2vec2-base on the
Naturalistic Human Vocalizations Corpus (Hilton et al., 2021, Zenodo),
which includes over 1,600 natural recordings of infant- and adult-directed speech and song collected across 21 societies worldwide.
Dataset: The Naturalistic Human Vocalizations Corpus
Reference: Hilton, E., Mehr, S. A. et al. (2021).
Zenodo DOI: 10.5281/zenodo.5525161
This dataset captures both speech and song, directed to infants and adults, with consistent annotations across cultures, languages, and recording environments.
facebook/wav2vec2-base| Class | Precision | Recall | F1-score |
|---|---|---|---|
| ADS | 0.61 | 0.58 | 0.59 |
| IDS | 0.47 | 0.45 | 0.46 |
| ADS-song | 0.55 | 0.53 | 0.54 |
| IDS-song | 0.48 | 0.47 | 0.47 |
| Macro Avg | 0.53 | 0.51 | 0.52 |
The model achieves a macro-average F1-score of around 52%,
indicating that it successfully captures the broad acoustic differences
between speech and song, and between adult- and infant-directed registers.However, performance is lower for IDS and IDS-song, suggesting that
infant-directed vocalizations share overlapping prosodic and melodic cues
(e.g., higher pitch, slower tempo, greater variability), making them
more challenging to distinguish purely from acoustic information.
from transformers import pipeline
pipe = pipeline("audio-classification", model="arunps/wav2vec2-base-adsids")
preds = pipe("example_audio.wav")
print(preds)
from transformers import AutoProcessor, AutoModelForAudioClassification
import torch, librosa
processor = AutoProcessor.from_pretrained("arunps/wav2vec2-base-adsids")
model = AutoModelForAudioClassification.from_pretrained("arunps/wav2vec2-base-adsids")
audio, sr = librosa.load("example_audio.wav", sr=16000)
inputs = processor(audio, sampling_rate=sr, return_tensors="pt", padding=True)
with torch.no_grad():
logits = model(**inputs).logits
probs = torch.softmax(logits, dim=-1)
labels = model.config.id2label
print({labels[i]: float(p) for i, p in enumerate(probs[0])})
This model builds on findings from the cross-cultural study of infant-directed communication:
Hilton, E. et al. (2021). The Naturalistic Human Vocalizations Corpus. Zenodo. DOI: 10.5281/zenodo.5525161
The study demonstrated that infant-directed vocalizations—both speech and song—share
universal acoustic properties: higher pitch, expanded vowel space, and smoother prosody.
This fine-tuned Wav2Vec2 model captures these features for automatic classification.
If you use or build upon this model, please cite:
@misc{wav2vec2_adsids,
author = {Arun Prakash Singh},
title = {Wav2Vec2-Base-ADSIDS: Fine-tuned model for Adult-Directed Speech, Infant-Directed Speech, and Song classification},
year = {2025},
howpublished = {\url{https://huggingface.co/arunps/wav2vec2-base-adsids}},
note = {MIT License, trained on the Naturalistic Human Vocalizations Corpus (Hilton et al., 2021)}
}
Arun Prakash Singh
Department of Linguistics and Scandinavian Studies, University of Oslo
📧 [email protected]
🔗 https://github.com/arunps12