Downloads · 30 days
269
10% of all-time downloads
Macedonian-ASR/wav2vec2-aed-macedonian-asr
wav2vec2-aed-macedonian-asr is a automatic speech recognition model from Macedonian-ASR. Use it when you need speech turned into text. It is set up for speechbrain. The card lists the license as apache-2.0.
Authors: 1. Dejan Porjazovski 2. Ilina Jakimovska 3. Ordan Chukaliev 4. Nikola Stikov
Downloads · 30 days
269
10% of all-time downloads
All-time downloads
2.7K
Public
Repo size
19.1 GB
Likes
0
Public
Click a slice to open those files.
.ckpt4.2 GB · 100%
From the Hugging Face model README
Authors:
This collaboration is part of the activities of the Center for Advanced Interdisciplinary Research (CAIR) at UKIM.
This is an older version (Buki 1.0). It is recommended to use the latest version, trained with much more data: Macedonian-ASR/buki-wav2vec2-2.0
The model is trained on around 60 hours of Macedonian speech.
In training of the model, we used the following data sources:
This model is an attention-based encoder-decoder (AED). The encoder is a Wav2vec2 model and the decoder is RNN-based.
The results are reported on all the test sets combined and without an external language model.
WER: 13.77
CER: 5.03
The model is developed using the SpeechBrain toolkit. To use it, you need to install SpeechBrain with:
pip install speechbrain
SpeechBrain relies on the Transformers library, therefore you need install it:
pip install transformers
An external py_module_file=custom_interface.py is used as an external Predictor class into this HF repos. We use the foreign_class function from speechbrain.pretrained.interfaces that allows you to load your custom model.
from speechbrain.inference.interfaces import foreign_class
device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
asr_classifier = foreign_class(source="Macedonian-ASR/wav2vec2-aed-macedonian-asr", pymodule_file="custom_interface.py", classname="ASR")
asr_classifier = asr_classifier.to(device)
predictions = asr_classifier.classify_file("audio_file.wav", device)
print(predictions)
To fine-tune this model, you need to run:
python train.py hyperparams.yaml
train.py file contains the functions necessary for training the model and hyperparams.yaml contains the hyperparameters. For more details about training the model, refer to the SpeechBrain documentation.