Audio Classification
speechbrain
PyTorch
embeddings
Language
Identification
ECAPA-TDNN
TDNN
CommonLanguage
Run this model with HF Jobs
Run speechbrain/lang-id-commonlanguage_ecapa on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/speechbrain/lang-id-commonlanguage_ecapa. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/speechbrain/lang-id-commonlanguage_ecapa on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use speechbrain/lang-id-commonlanguage_ecapa with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- speechbrain
How to use speechbrain/lang-id-commonlanguage_ecapa with speechbrain:
from speechbrain.pretrained import EncoderClassifier model = EncoderClassifier.from_hparams( "speechbrain/lang-id-commonlanguage_ecapa" ) model.classify_file("file.wav") - Notebooks
- Google Colab
- Kaggle
Commit ·
e8ff4dd
1
Parent(s): 2b8af03
typos
Browse files72 unmodified lines737475767778798081828384855 unmodified lines9192939495969729 unmodified lines12712812913013113213372 unmodified lines# Language Identification from Speech Recordings with ECAPA embeddings on CommonLanguageThis repository provides all the necessary tools to perform language identification from speeech recordinfs with SpeechBrain.The system uses a model pretrained on the CommonLanguage dataset (45 languages).You can download the dataset [here](https://zenodo.org/record/5036977#.YNzDbXVKg5k)The provided system can recognize the following 45 languages from short speech recordings:```Arabic, Basque, Breton, Catalan, Chinese_China, Chinese_Hongkong, Chinese_Taiwan, Chuvash, Czech, Dhivehi, Dutch, English, Esperanto, Estonian, French, Frisian, Georgian, German, Greek, Hakha_Chin, Indonesian, Interlingua, Italian, Japanese, Kabyle, Kinyarwanda, Kyrgyz, Latvian, Maltese, Mangolian, Persian, Polish, Portuguese, Romanian, Romansh_Sursilvan, Russian, Sakha, Slovenian, Spanish, Swedish, Tamil, Tatar, Turkish, Ukranian, Welsh```For a better experience, we encourage you to learn more about5 unmodified lines## Pipeline descriptionThis system is composed of a 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*.29 unmodified lines### TrainingThe model was trained with SpeechBrain (a02f860e).To train it from scratch follows these steps:1. Clone SpeechBrain:```bashgit clone https://github.com/speechbrain/speechbrain/72 unmodified lines737475767778798081828384855 unmodified lines9192939495969729 unmodified lines12712812913013113213372 unmodified lines# Language Identification from Speech Recordings with ECAPA embeddings on CommonLanguageThis repository provides all the necessary tools to perform language identification from speech recordings with SpeechBrain.The system uses a model pretrained on the CommonLanguage dataset (45 languages).You can download the dataset [here](https://zenodo.org/record/5036977#.YNzDbXVKg5k)The provided system can recognize the following 45 languages from short speech recordings:```Arabic, Basque, Breton, Catalan, Chinese_China, Chinese_Hongkong, Chinese_Taiwan, Chuvash, Czech, Dhivehi, Dutch, English, Esperanto, Estonian, French, Frisian, Georgian, German, Greek, Hakha_Chin, Indonesian, Interlingua, Italian, Japanese, Kabyle, Kinyarwanda, Kyrgyz, Latvian, Maltese, Mongolian, Persian, Polish, Portuguese, Romanian, Romansh_Sursilvan, Russian, Sakha, Slovenian, Spanish, Swedish, Tamil, Tatar, Turkish, Ukrainian, Welsh```For a better experience, we encourage you to learn more about5 unmodified lines## Pipeline descriptionThis 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*.29 unmodified lines### TrainingThe model was trained with SpeechBrain (a02f860e).To train it from scratch follow these steps:1. Clone SpeechBrain:```bashgit clone https://github.com/speechbrain/speechbrain/
README.md+4-4