🚀 Whisper-Large v3 用於窄口音分類
本模型用於實現窄口音分類,可有效解決對不同英語口音進行精準分類的問題,為語音識別和分析領域提供了有力支持。
🚀 快速開始
下載倉庫
git clone git@github.com:tiantiaf0627/vox-profile-release.git
安裝包
conda create -n vox_profile python=3.8
cd vox-profile-release
pip install -e .
加載模型
import torch
import torch.nn.functional as F
from src.model.accent.whisper_accent import WhisperWrapper
device = torch.device("cuda") if torch.cuda.is_available() else "cpu"
model = WhisperWrapper.from_pretrained("tiantiaf/whisper-large-v3-narrow-accent").to(device)
model.eval()
預測
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'
]
max_audio_length = 15 * 16000
data = torch.zeros([1, 16000]).float().to(device)[:, :max_audio_length]
logits, embeddings = model(data, return_feature=True)
accent_prob = F.softmax(logits, dim=1)
print(english_accent_list[torch.argmax(accent_prob).detach().cpu().item()])
✨ 主要特性
本模型包含了在《Vox-Profile: A Speech Foundation Model Benchmark for Characterizing Diverse Speaker and Speech Traits》(https://arxiv.org/pdf/2505.14648) 中描述的窄口音分類的實現。包含的英語口音有:
[
'East Asia', 'English', 'Germanic', 'Irish',
'North America', 'Northern Irish', 'Oceania',
'Other', 'Romance', 'Scottish', 'Semitic', 'Slavic',
'South African', 'Southeast Asia', 'South Asia', 'Welsh'
]
模型的一些觀察結果(隨著觀察增加會持續補充):
- 文本轉語音(TTS)樣本更傾向於被識別為日耳曼口音。
- 相關庫:https://github.com/tiantiaf0627/vox-profile-release
📚 詳細文檔
引用信息
如果您使用了我們的模型或發現它在您的工作中很有用,請引用我們的論文:
@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}
}
📄 許可證
本模型採用 BSD 3 條款許可證(bsd-3-clause)。
📦 模型信息
屬性 |
詳情 |
模型類型 |
音頻分類 |
基礎模型 |
openai/whisper-large-v3 |
訓練數據集 |
mozilla-foundation/common_voice_11_0 |
評估指標 |
準確率 |
語言 |
英語 |
標籤 |
model_hub_mixin, pytorch_model_hub_mixin, speaker_accent_classification |