Downloads · 30 days
27
4% of all-time downloads
OctaSpace/wav2vec2-bert-fongbe
wav2vec2-bert-fongbe is a automatic speech recognition model from OctaSpace. Use it when you need speech turned into text. It is set up for transformers.
This model is a fine-tuned version of facebook/w2v-bert-2.0. This has a WER of 24.20 on Aloresb dataset, fongbe language.
Downloads · 30 days
27
4% of all-time downloads
All-time downloads
607
Public
Parameters
606M
2.4 GB on disk
Likes
2
Public
Click a slice to open those files.
.safetensors2.4 GB · 100%
From the Hugging Face model README
This model is a fine-tuned version of facebook/w2v-bert-2.0. This has a WER of 24.20 on Aloresb dataset, fongbe language.
This model is a fine-tuned version of the wav2vec2-BERT architecture on the AlorésB dataset for the Fongbe language. Fongbe, a Gbe language, is predominantly spoken in the southern region of Benin. The model has been fine-tuned specifically for Automatic Speech Recognition (ASR) tasks in this language. It can be useful for transcription services, research, and linguistic studies involving Fongbe.
import torch
import soundfile as sf
from transformers import AutoModelForCTC, Wav2Vec2BertProcessor
model_name = "OctaSpace/wav2vec2-bert-fongbe"
asr_model = AutoModelForCTC.from_pretrained(model_name).to(device)
processor = Wav2Vec2BertProcessor.from_pretrained(model_name)
audio_input, _ = sf.read(file)
inputs = processor([audio_input], sampling_rate=16_000).input_features
features = torch.tensor(inputs)
with torch.no_grad():
logits = asr_model(features).logits
predicted_ids = torch.argmax(logits, dim=-1)
predictions = processor.batch_decode(predicted_ids, skip_special_tokens=True)
The model was fine-tuned on the Aloresb dataset, which contains audio recordings and transcriptions in Fongbe.
Optimizer: AdamW Learning Rate: 3e-5 Batch Size: 3 Epochs: 3 Evaluation Results The model was evaluated using the Word Error Rate (WER) metric on a test set. Here are the results:
WER: 24.20%