Downloads · 30 days
73
6% of all-time downloads
SiangLao/xls-r-lao-asr
xls-r-lao-asr is a automatic speech recognition model from SiangLao. Use it when you need speech turned into text. It is set up for transformers. The card lists the license as apache-2.0.
Fine-tuned XLS-R-300M model for Lao automatic speech recognition, achieving 15.14% CER on test data.
Downloads · 30 days
73
6% of all-time downloads
All-time downloads
1.3K
Public
Parameters
315M
1.3 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.3 GB · 100%
From the Hugging Face model README
Fine-tuned XLS-R-300M model for Lao automatic speech recognition, achieving 15.14% CER on test data.
This model is fine-tuned from facebook/wav2vec2-xls-r-300m using the SiangLao/lao-asr-thesis-dataset.
| Split | CER |
|---|---|
| Validation | 13.67% |
| Test | 15.14% |
from transformers import Wav2Vec2ForCTC, Wav2Vec2Processor
import torch
import librosa
# Load model and processor
model = Wav2Vec2ForCTC.from_pretrained("SiangLao/xls-r-lao-asr")
processor = Wav2Vec2Processor.from_pretrained("SiangLao/xls-r-lao-asr")
# Load audio
audio, sr = librosa.load("audio.wav", sr=16000)
# Process audio
inputs = processor(audio, sampling_rate=16000, return_tensors="pt")
# Generate prediction
with torch.no_grad():
logits = model(**inputs).logits
predicted_ids = torch.argmax(logits, dim=-1)
transcription = processor.batch_decode(predicted_ids)[0]
# Clean transcription
transcription = transcription.replace("<unk>", " ").strip()
print(transcription)
@thesis{naovalath2025lao,
title={Lao Automatic Speech Recognition using Transfer Learning},
author={Souphaxay Naovalath and Sounmy Chanthavong},
advisor={Dr. Somsack Inthasone},
school={National University of Laos, Faculty of Natural Sciences, Computer Science Department},
year={2025}
}