The "langtech-veu/whisper-bsc-large-v3-cat" is an acoustic model suitable for Automatic Speech Recognition in Catalan. It is the result of finetuning the model
"openai/whisper-large-v3"
with 4700 hours of Catalan data released by the
Projecte AINA
from Barcelona, Spain.
Intended Uses and Limitations
This model can be used for Automatic Speech Recognition (ASR) in Catalan. The model intends to transcribe Catalan audio files to plain text without punctuation.
#This code works with 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="langtech-veu/whisper-bsc-large-v3-cat"
processor = WhisperProcessor.from_pretrained(MODEL_NAME)
model = WhisperForConditionalGeneration.from_pretrained(MODEL_NAME).to("cuda")
#Load the datasetfrom datasets import load_dataset, load_metric, Audio
ds=load_dataset("projecte-aina/parlament_parla",split='test')
#Downsample to 16 kHz
ds = ds.cast_column("audio", Audio(sampling_rate=16_000))
#Process the datasetdefmap_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)
Training Details
Training data
The specific datasets used to create the model are:
If this model contributes to your research, please cite the work:
@misc{takanori2025whisperbsclarge3cat,
title={Acoustic Model in Catalan: Whisper_bsc_large_v3_cat.},
author={Sanchez Shiromizu, Lucas Takanori; Hernandez Mena, Carlos Daniel; Messaoudi, Abir; España i Bonet, Cristina; Cortada Garcia, Marti},
organization={Barcelona Supercomputing Center},
url={https://huggingface.co/langtech-veu/whisper-bsc-large-v3-cat},
year={2025}
}
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.
The training of the model was possible thanks to the computing time provided by
Barcelona Supercomputing Center
through MareNostrum 5.
Runs of BSC-LT whisper-bsc-large-v3-cat on huggingface.co
117
Total runs
4
24-hour runs
8
3-day runs
11
7-day runs
-103
30-day runs
More Information About whisper-bsc-large-v3-cat huggingface.co Model
whisper-bsc-large-v3-cat huggingface.co is an AI model on huggingface.co that provides whisper-bsc-large-v3-cat's model effect (), which can be used instantly with this BSC-LT whisper-bsc-large-v3-cat model. huggingface.co supports a free trial of the whisper-bsc-large-v3-cat model, and also provides paid use of the whisper-bsc-large-v3-cat. Support call whisper-bsc-large-v3-cat model through api, including Node.js, Python, http.
whisper-bsc-large-v3-cat huggingface.co is an online trial and call api platform, which integrates whisper-bsc-large-v3-cat's modeling effects, including api services, and provides a free online trial of whisper-bsc-large-v3-cat, you can try whisper-bsc-large-v3-cat online for free by clicking the link below.
BSC-LT whisper-bsc-large-v3-cat online free url in huggingface.co:
whisper-bsc-large-v3-cat is an open source model from GitHub that offers a free installation service, and any user can find whisper-bsc-large-v3-cat on GitHub to install. At the same time, huggingface.co provides the effect of whisper-bsc-large-v3-cat install, users can directly use whisper-bsc-large-v3-cat installed effect in huggingface.co for debugging and trial. It also supports api for free installation.
whisper-bsc-large-v3-cat install url in huggingface.co: