hubert-9-phonemodel
Phone segmentation and recognition from frozen self-supervised speech model (S3M) features, via S3M-based Phonological Activation Mapping (SPAM).
SPAM maps each S3M frame to a vector of phonological feature activations β voicing, nasality, stridency, and so on β turning an opaque encoder representation into an interpretable one.
One point in the encoder x layer grid (Figure 2 in the paper). For the best model, see juice500/wavlm-24-phonemodel.
- Encoder:
facebook/hubert-large-ll60k(HuBERT-large), layer 9, 16 kHz - Paper: Phone Segmentation and Recognition through Phonological Activation Mapping (SLT 2026)
- Code: juice500ml/phonespam Β· Demo: phonespam.streamlit.app
Usage
pip install phonespam
from phonespam import PhoneModel
model = PhoneModel.from_pretrained("juice500/hubert-9-phonemodel") # device="cuda" for GPU
for seg in model.transcribe("utt.wav"):
print(f"{seg.start:.2f}-{seg.end:.2f} {seg.label}")
transcribe runs the whole pipeline and returns contiguous
Segment(start, end, label) tuples with times in seconds. To see the
representation both heads read from:
spam = model.spam("utt.wav") # (frames, 43) phonological activations in [0, 1]
spam.featnames # ("silence+", "syl+", "son+", ...)
Restrict recognition to one language's PHOIBLE
inventory with vocab=:
from phonespam import vocab_for_language
segs = model.transcribe("utt.wav", vocab=vocab_for_language("deu"))
License
MIT, as is the code. Note that vocab_for_language downloads
PHOIBLE 2.0 at runtime, which is CC BY-SA 3.0 and
licensed separately from this model.
Citation
@inproceedings{spam2026,
title = {Phone Segmentation and Recognition through Phonological Activation Mapping},
author = {Bharadwaj, Shikhar and Choi, Kwanghee and McIntosh, Stephen and Li, Chin-Jou and
Yeo, Eunjung and Saito, Daisuke and Minematsu, Nobuaki and Watanabe, Shinji and
Zhu, Jian and Harwath, David and Mortensen, David R.},
booktitle = {Proc. IEEE Spoken Language Technology Workshop (SLT)},
year = {2026}
}
Model tree for juice500/hubert-9-phonemodel
Base model
facebook/hubert-large-ll60k