Svngoku/lingala-asr-dataset
Viewer • Updated • 383 • 27 • 2
How to use Regineforte/whisper-small-lingala with Transformers:
# Use a pipeline as a high-level helper
from transformers import pipeline
pipe = pipeline("automatic-speech-recognition", model="Regineforte/whisper-small-lingala") # Load model directly
from transformers import AutoModel
model = AutoModel.from_pretrained("Regineforte/whisper-small-lingala", dtype="auto")Ce modèle est une version fine-tunée de openai/whisper-small pour la langue Lingala.
Il fait partie du développement du pipeline Speech AI de CONCREE / ADIA.
openai/whisper-smallSources des données utilisées :
| Source | Type voix | Description |
|---|---|---|
| Données internes (Bible Lingala, plusieurs chapitres) | Masculine | passages lus en Lingala, audio propre |
| Dataset externe HF | Féminine | voix différente pour diversifier le modèle |
Total initial : ≈1308 fichiers .wav 16kHz
from transformers import WhisperProcessor, WhisperForConditionalGeneration
import soundfile as sf
import torch
processor = WhisperProcessor.from_pretrained("Regineforte/whisper-small-lingala")
model = WhisperForConditionalGeneration.from_pretrained("Regineforte/whisper-small-lingala").to("cuda")
audio, sr = sf.read("audio.wav")
inputs = processor(audio, sampling_rate=sr, return_tensors="pt").to("cuda")
with torch.no_grad():
ids = model.generate(**inputs)
print(processor.batch_decode(ids, skip_special_tokens=True)[0])
Metric Score
WER ~12.6%
CER ~2.9%
→ seuil professionel atteint (WER < 30%)