GGUF quantizations of the CED family (Consistent Ensemble Distillation, Xiaomi) - SOTA-tier audio-tagging models that classify everyday sounds (baby cry, footsteps, glass breaking, alarms, dog bark,...) into the 527-class AudioSet ontology. These files run with ced.cpp, a standalone C++/ggml port (no Python, no PyTorch at inference), and with LocalAI via the ced backend. Converted from the mispeech/ced- checkpoints (Apache-2.0). CED is a plain AST/DeiT Vision Transformer over a log-mel spectrogram; the port is numerically equal to the PyTorch reference. One self-contained GGUF per size + quant (config, 527 labels, and the mel filterbank/window are all embedded). Pick by your accuracy/size…
Open-weight model · Audio classification
accent-id-commonaccent_ecapa
by Juan Pablo Zuluaga Jzuluaga/accent-id-commonaccent_ecapa
Abstract: The recognition of accented speech still remains a dominant problem in Automatic Speech Recognition (ASR) systems.
Model Card
By Juan Pablo Zuluaga, published under mit, revision 14bebf44b7e7.
Abstract: The recognition of accented speech still remains a dominant problem in Automatic Speech Recognition (ASR) systems. We approach the classification of accented English speech through the Emphasized Channel Attention, Propagation and Aggregation Time Delay Neural Network (ECAPA-TDNN) architecture which has been shown to perform well on a variety of speech tasks. Three models are proposed: one trained from scratch, another two models (one using data augmentation and a baseline model) fine-tuned from the checkpoints of speechbrain/spkrec-ecapa-voxceleb (VoxCeleb). Our results show that the model fine-tuned with data augmentation yield the best results. Most of the misclassifications…
Read Juan Pablo Zuluaga's full model card
Accent Identification from Speech Recordings with ECAPA-TDNN embeddings on CommonAccent
Abstract: The recognition of accented speech still remains a dominant problem in Automatic Speech Recognition (ASR) systems. We approach the classification of accented English speech through the Emphasized Channel Attention, Propagation and Aggregation Time Delay Neural Network (ECAPA-TDNN) architecture which has been shown to perform well on a variety of speech tasks. Three models are proposed: one trained from scratch, another two models (one using data augmentation and a baseline model) fine-tuned from the checkpoints of speechbrain/spkrec-ecapa-voxceleb (VoxCeleb). Our results show that the model fine-tuned with data augmentation yield the best results. Most of the misclassifications were structured and expected due to accent similarities, such as the American and Canadian accents. We also explored the internal categorization of embeddings through t-SNE, a dimensionality reduction technique, and found that there was a level of clustering based on phonological similarity. For future work, we would like to explore the implementation of this accent classification system in our suggested framework to improve ASR performance by making it more inclusive to accented speech.
This repository provides all the necessary tools to perform accent identification from speech recordings with SpeechBrain. The system uses a model pretrained on the CommonAccent dataset in English (16 accents). This system is based on the CommonLanguage Recipe located here: https://github.com/speechbrain/speechbrain/tree/develop/recipes/CommonLanguage
The provided system can recognize the following 16 accents from short speech recordings in English (EN):
african
australia
bermuda
canada
england
hongkong
indian
ireland
malaysia
newzealand
philippines
scotland
singapore
southatlandtic
us
wales
Github repository link: https://github.com/JuanPZuluaga/accent-recog-slt2022
For a better experience, we encourage you to learn more about SpeechBrain. The given model performance on the test set is:
| Release (dd/mm/yyyy) | Accuracy (%) |
|---|---|
| 01-08-2023 (this model) | 87 |
| 01-08-2023 (this model trained without data augmentation) | 85 |
| 01-08-2023 (this model trained from scratch, no paremeter transfer) | 82 |
Pipeline description
This system is composed of an ECAPA model coupled with statistical pooling. A classifier, trained with Categorical Cross-Entropy Loss, is applied on top of that.
The system is trained with recordings sampled at 16kHz (single channel). The code will automatically normalize your audio (i.e., resampling + mono channel selection) when calling classify_file if needed. Make sure your input tensor is compliant with the expected sampling rate if you use encode_batch and classify_batch.
Install SpeechBrain
First of all, please install SpeechBrain with the following command:
pip install speechbrain
Please notice that we encourage you to read our tutorials and learn more about SpeechBrain.
Perform Accent Identification from Speech Recordings
import torchaudio
from speechbrain.pretrained import EncoderClassifier
classifier = EncoderClassifier.from_hparams(source="Jzuluaga/accent-id-commonaccent_ecapa", savedir="pretrained_models/accent-id-commonaccent_ecapa")
# Irish Example
out_prob, score, index, text_lab = classifier.classify_file('Jzuluaga/accent-id-commonaccent_ecapa/data/ireland_1.wav')
print(text_lab)
# Malaysia Example
out_prob, score, index, text_lab = classifier.classify_file('Jzuluaga/accent-id-commonaccent_ecapa/data/malaysia_1.wav')
print(text_lab)
Inference on GPU
To perform inference on the GPU, add run_opts={"device":"cuda"} when calling the from_hparams method.
Training
The model was trained with SpeechBrain.
To train it from scratch follow these steps:
- Clone SpeechBrain:
git clone https://github.com/speechbrain/speechbrain/
- Install it:
cd speechbrain
pip install -r requirements.txt
pip install -e .
- Clone our repository in https://github.com/JuanPZuluaga/accent-recog-slt2022:
git clone https://github.com/JuanPZuluaga/accent-recog-slt2022
cd CommonAccent/accent_id
python train.py hparams/train_ecapa_tdnn.yaml
You can find our training results (models, logs, etc) in this repository's Files and versions page.
Limitations
The SpeechBrain team does not provide any warranty on the performance achieved by this model when used on other datasets.
Cite our work: CommonAccent
If you find useful this work, please cite our work as:
@article{zuluaga2023commonaccent,
title={CommonAccent: Exploring Large Acoustic Pretrained Models for Accent Classification Based on Common Voice},
author={Zuluaga-Gomez, Juan and Ahmed, Sara and Visockas, Danielius and Subakan, Cem},
journal={Interspeech 2023},
url={https://arxiv.org/abs/2305.18283},
year={2023}
}
Cite ECAPA-TDNN model
```@inproceedings{DBLP:conf/interspeech/DesplanquesTD20, author = {Brecht Desplanques and Jenthe Thienpondt and Kris Demuynck}, editor = {Helen Meng and Bo Xu and Thomas Fang Zheng}, title = {{ECAPA-TDNN:} Emphasized Channel Attention, Propagation and Aggregation in {TDNN} Based Speaker Verification}, booktitle = {Interspeech 2020}, pages = {3830--3834}, publisher = {{ISCA}}, year = {2020}, }
# **Cite SpeechBrain**
Please, cite SpeechBrain if you use it for your research or business.
```bibtex
@misc{speechbrain,
title={{SpeechBrain}: A General-Purpose Speech Toolkit},
author={Mirco Ravanelli and Titouan Parcollet and Peter Plantinga and Aku Rouhe and Samuele Cornell and Loren Lugosch and Cem Subakan and Nauman Dawalatabad and Abdelwahab Heba and Jianyuan Zhong and Ju-Chieh Chou and Sung-Lin Yeh and Szu-Wei Fu and Chien-Feng Liao and Elena Rastorgueva and François Grondin and William Aris and Hwidong Na and Yan Gao and Renato De Mori and Yoshua Bengio},
year={2021},
eprint={2106.04624},
archivePrefix={arXiv},
primaryClass={eess.AS},
note={arXiv:2106.04624}
}
Identity and Version
- Repository
- Jzuluaga/accent-id-commonaccent_ecapa
- Publisher
- Juan Pablo Zuluaga
- Task
- Audio classification
- Modality
- Audio
- Library
- speechbrain
- Parameters
- Not stated by the source
- Languages
- en
- Revision
- 14bebf44b7e7a34204d0acc2c897935945fb5c51
- First published
- 2023-01-08
- Last updated
- 2023-07-22
Files and Weights
22 files, 85.2 MB in total. The weights are 3 files totalling 83.3 MB in ckpt.
Every file
| File | Type | Size | SHA-256 |
|---|---|---|---|
| classifier.ckpt | Weights | 13.2 KB | 146a2c6cb236 |
| embedding_model.ckpt | Weights | 83.3 MB | 7ffa5ac9c0ec |
| normalizer_input.ckpt | Weights | 1.2 KB | 7f39c561f5e6 |
| config.json | Configuration | 50 B | — |
| hyperparams.yaml | Configuration | 1.8 KB | — |
| README.md | Documentation | 7.9 KB | — |
| accent_encoder.txt | Other | 297 B | — |
| data/african_1.wav | Other | 92.2 KB | — |
| data/australia_1.wav | Other | 97.6 KB | — |
| data/canada_1.wav | Other | 165.9 KB | — |
| data/england_1.wav | Other | 96.8 KB | — |
| data/indian_1.wav | Other | 169.0 KB | — |
| data/ireland_1.wav | Other | 206.6 KB | — |
| data/malaysia_1.wav | Other | 234.3 KB | — |
| data/newzealand_1.wav | Other | 69.2 KB | — |
| data/philippines_1.wav | Other | 184.4 KB | — |
| data/scotland_1.wav | Other | 94.5 KB | — |
| data/southatlantic_1.wav | Other | 159.8 KB | — |
| data/us_1.wav | Other | 98.3 KB | — |
| data/wales_1.wav | Other | 175.1 KB | — |
| .gitattributes | Repository | 1.5 KB | — |
| data/.dummy | Repository | — |
License and Download
- License
- mit
- Access
- Open weights, no gate
- Download size
- 83.3 MB
Released by Juan Pablo Zuluaga through its official repository on Hugging Face. Read the license.
Built From
- Described by arXiv:2106.04624
- Described by arXiv:2305.18283
- Trained on (disclosed) CommonVoice
Memory Requirements
| Precision | Weights in memory |
|---|---|
| As published | 83.3 MB |
Weights only, from the published parameter count; the key-value cache and runtime add to this.
Questions About accent-id-commonaccent_ecapa
Can I use accent-id-commonaccent_ecapa commercially?
Yes. accent-id-commonaccent_ecapa is released under MIT License. The MIT License is a short permissive license. It permits commercial use, modification and redistribution, provided the copyright notice and permission notice are included.
Similar Models
This is a spoken language recognition model trained on the VoxLingua107 dataset using SpeechBrain. The model uses the ECAPA-TDNN architecture that has previously been used for speaker recognition. However, it uses more fully connected hidden layers after the embedding layer, and cross-entropy loss was used for training. We observed that this improved the performance of extracted utterance embeddings for downstream tasks. The system is trained with recordings sampled at 16kHz (single channel). The code will automatically normalize your audio (i.e., resampling + mono channel selection) when calling classifyfile if needed. The model can classify a speech utterance according to the language…
The development log of our Music Audio Pre-training (m-a-p) model family: - 02/06/2023: arxiv pre-print and training codes released. - 17/03/2023: we release two advanced music understanding models, MERT-v1-95M and MERT-v1-330M, trained with new paradigm and dataset. They outperform the previous models and can better generalize to more tasks. - 14/03/2023: we retrained the MERT-v0 model with open-source-only music dataset MERT-v0-public - 29/12/2022: a music understanding model MERT-v0 trained with MLM paradigm, which performs better at downstream tasks. - 29/10/2022: a pre-trained MIR model music2vec trained with BYOL paradigm. Here is a table for quick model pick-up: The m-a-p models…
The development log of our Music Audio Pre-training (m-a-p) model family: - 02/06/2023: arxiv pre-print and training codes released. - 17/03/2023: we release two advanced music understanding models, MERT-v1-95M and MERT-v1-330M, trained with new paradigm and dataset. They outperform the previous models and can better generalize to more tasks. - 14/03/2023: we retrained the MERT-v0 model with open-source-only music dataset MERT-v0-public - 29/12/2022: a music understanding model MERT-v0 trained with MLM paradigm, which performs better at downstream tasks. - 29/10/2022: a pre-trained MIR model music2vec trained with BYOL paradigm. Here is a table for quick model pick-up: The m-a-p models…
This model combines the SpeechBrain ECAPA-TDNN speaker embedding model with an SVM classifier to predict speaker gender from audio input. The model was trained and evaluated on the VoxCeleb2, Mozilla Common Voice v10.0, and TIMIT datasets - Mozilla Common Voice v10.0 English validated test set: 92.3% accuracy The model was trained on VoxCeleb2 dataset: - Converted to WAV format, single channel, 16kHz sampling rate, 256 kp/s bitrate - Applied SileroVAD for voice activity detection, taking the first voiced segment You can install the package directly from GitHub: - Model was trained on celebrity voices from YouTube interviews - Performance may vary on different audio qualities or recording…
This is a ported version of The base model is wav2vec2-base, which is pretrained on 16kHz sampled speech audio. When using the model make sure that your speech input is also sampled at 16Khz. For more information refer to SUPERB: Speech processing Universal PERformance Benchmark Emotion Recognition (ER) predicts an emotion class for each utterance. The most widely used ER dataset IEMOCAP is adopted, and we follow the conventional evaluation protocol: we drop the unbalanced emotion classes to leave the final four classes with a similar amount of data points and cross-validate on five folds of the standard splits. For the original model's training and evaluation instructions refer to the You…
