Downloads · 30 days
89
6% of all-time downloads
BSC-LT/whisper-large-v3-LoS
whisper-large-v3-LoS is a automatic speech recognition model from BSC-LT. Use it when you need speech turned into text. It is set up for transformers. The card lists the license as apache-2.0.
<details <summaryClick to expand</summary
Downloads · 30 days
89
6% of all-time downloads
All-time downloads
1.6K
Public
Repo size
23.5 GB
Likes
2
Public
Click a slice to open those files.
.bin6.2 GB · 100%
From the Hugging Face model README
The LoS Whisper-large-v3 model is a multilingual automatic speech recognition (ASR) system designed to transcribe speech in Spanish, Catalan, Galician, and Euskera (LoS, Languages of Spain). It is the result of fine-tuning the model openai/whisper-large-v3 on a combination of public and institutional datasets.
The model was trained on meticulously on 8,110 hours of preprocessed data. This ensures high-quality, readable transcriptions while preserving linguistic consistency. The training hours were equalized across the four languages to ensure comparable performance. Speed Perturbation (0.9× and 1.1×) was applied to every Basque training audio file, with a total duration of 2027h 56m 11s, which then served as the reference for balancing the remaining languages.
This model can be used for automatic speech recognition in the four languages mentioned.
Limitations: Speakers’ demographic information is not available; biases may exist due to institutional content.
To see a functional version of this code, please check our Notebook and, in order to invoke this model, just substitute the instances of "projecte-aina/whisper-large-v3-ca-3catparla" with "BSC-LT/whisper-large-v3-LoS".
To use this model, you may install datasets and transformers:
Create a virtual environment:
python -m venv /path/to/venv
Activate the environment:
source /path/to/venv/bin/activate
Install the modules:
pip install datasets transformers
To transcribe an audio using this model, you can follow this example:
#Install Prerequisites
pip install torch
pip install datasets
pip install 'transformers[torch]'
pip install evaluate
pip install jiwer
#This code works with a GPU
#Notice that: load_metric is no longer part of datasets.
# You have to remove it and use evaluate's load instead.
#(Note from November 2024)
import torch
from transformers import WhisperForConditionalGeneration, WhisperProcessor
#Load the processor and model.
MODEL_NAME="BSC-LT/whisper-large-v3-LoS"
processor = WhisperProcessor.from_pretrained(MODEL_NAME)
model = WhisperForConditionalGeneration.from_pretrained(MODEL_NAME).to("cuda")
#Load the dataset
from datasets import load_dataset, load_metric, Audio
ds=load_dataset("projecte-aina/parlament_parla",split='test')
#Downsample to 16kHz
ds = ds.cast_column("audio", Audio(sampling_rate=16_000))
#Process the dataset
def map_to_pred(batch):
audio = batch["audio"]
input_features = processor(audio["array"], sampling_rate=audio["sampling_rate"], return_tensors="pt").input_features
batch["reference"] = processor.tokenizer._normalize(batch['normalized_text'])
with torch.no_grad():
predicted_ids = model.generate(input_features.to("cuda"))[0]
transcription = processor.decode(predicted_ids)
batch["prediction"] = processor.tokenizer._normalize(transcription)
return batch
#Do the evaluation
result = ds.map(map_to_pred)
#Compute the overall WER now.
from evaluate import load
wer = load("wer")
WER=100 * wer.compute(references=result["reference"], predictions=result["prediction"])
print(WER)
<!--
**Test Result**: 0.96
-->
The specific datasets used to create the model are: In Catalan:
In Spanish:
In Galician:
In Euskera:
This model is the result of fine-tuning the model "openai/whisper-large-v3" by following this tutorial provided by Hugging Face.
If this model contributes to your research, please cite the work:
@misc{LoS_Whisper2025,
title={Acoustic Model in Language of Spain: whisper-large-v3-LoS.},
author={Hernandez Mena, Carlos Daniel; Messaoudi, Abir; Solito, Sarah; España-Bonet, Cristina},
organization={Barcelona Supercomputing Center},
url={https://huggingface.co/BSC-LT/whisper-large-v3-LoS},
year={2025}
}
The fine-tuning process was performed during November (2025) in the Language Technologies Laboratory of the Barcelona Supercomputing Center.
For further information, please email [email protected].
Copyright(c) 2025 by Language Technologies Laboratory, Barcelona Supercomputing Center.
This work is funded by the Ministerio para la Transformación Digital y de la Función Pública - Funded by EU – NextGenerationEU within the framework of the project ILENIA with reference 2022/TL22/00215337.
This work was supported by the Generalitat de Catalunya (Aina project). Reference: SDD001/22/000005. Project(s): PN040300.
The training of the model was possible thanks to the computing time provided by Barcelona Supercomputing Center through MareNostrum 5.