This model includes the implementation of narrow accent classification described in Vox-Profile: A Speech Foundation Model Benchmark for Characterizing Diverse Speaker and Speech Traits (
https://arxiv.org/pdf/2505.14648
)
# Load librariesimport torch
import torch.nn.functional as F
from src.model.accent.wavlm_accent import WavLMWrapper
# Find device
device = torch.device("cuda") if torch.cuda.is_available() else"cpu"# Load model from Huggingface
model = WavLMWrapper.from_pretrained("tiantiaf/wavlm-large-narrow-accent").to(device)
model.eval()
Prediction
# Label List
english_accent_list = [
'East Asia', 'English', 'Germanic', 'Irish',
'North America', 'Northern Irish', 'Oceania',
'Other', 'Romance', 'Scottish', 'Semitic', 'Slavic',
'South African', 'Southeast Asia', 'South Asia', 'Welsh'
]
# Load data, here just zeros as the example# Our training data filters output audio shorter than 3 seconds (unreliable predictions) and longer than 15 seconds (computation limitation)# So you need to prepare your audio to a maximum of 15 seconds, 16kHz and mono channel
max_audio_length = 15 * 16000
data = torch.zeros([1, 16000]).float().to(device)[:, :max_audio_length]
logits, embeddings = model(data, return_feature=True)
# Probability and output
accent_prob = F.softmax(logits, dim=1)
print(english_accent_list[torch.argmax(accent_prob).detach().cpu().item()])
If you have any questions, please contact: Tiantian Feng (
[email protected]
)
Kindly cite our paper if you are using our model or find it useful in your work
@article{feng2025vox,
title={Vox-Profile: A Speech Foundation Model Benchmark for Characterizing Diverse Speaker and Speech Traits},
author={Feng, Tiantian and Lee, Jihwan and Xu, Anfeng and Lee, Yoonjeong and Lertpetchpun, Thanathai and Shi, Xuan and Wang, Helin and Thebaud, Thomas and Moro-Velazquez, Laureano and Byrd, Dani and others},
journal={arXiv preprint arXiv:2505.14648},
year={2025}
}
Runs of tiantiaf wavlm-large-narrow-accent on huggingface.co
934
Total runs
0
24-hour runs
-125
3-day runs
-142
7-day runs
-139
30-day runs
More Information About wavlm-large-narrow-accent huggingface.co Model
More wavlm-large-narrow-accent license Visit here:
wavlm-large-narrow-accent huggingface.co is an AI model on huggingface.co that provides wavlm-large-narrow-accent's model effect (), which can be used instantly with this tiantiaf wavlm-large-narrow-accent model. huggingface.co supports a free trial of the wavlm-large-narrow-accent model, and also provides paid use of the wavlm-large-narrow-accent. Support call wavlm-large-narrow-accent model through api, including Node.js, Python, http.
wavlm-large-narrow-accent huggingface.co is an online trial and call api platform, which integrates wavlm-large-narrow-accent's modeling effects, including api services, and provides a free online trial of wavlm-large-narrow-accent, you can try wavlm-large-narrow-accent online for free by clicking the link below.
tiantiaf wavlm-large-narrow-accent online free url in huggingface.co:
wavlm-large-narrow-accent is an open source model from GitHub that offers a free installation service, and any user can find wavlm-large-narrow-accent on GitHub to install. At the same time, huggingface.co provides the effect of wavlm-large-narrow-accent install, users can directly use wavlm-large-narrow-accent installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
wavlm-large-narrow-accent install url in huggingface.co: