CoolFace
Modelpublic

HiTZ/whisper-large-es

sourceHugging Faceapache-2.0updated 9mo agoView on Hugging Face
0likes24downloads
Model Card

Whisper Large Spanish

Model summary

Whisper Large Spanish is a high-accuracy automatic speech recognition (ASR) model for Spanish (es), fine-tuned from [openai/whisper-large] on the Spanish subset of Mozilla Common Voice 13.0. It achieves a Word Error Rate (WER) of 5.1265% on the evaluation set.

This model is designed for applications that require near state-of-the-art transcription accuracy in Spanish, such as transcription of lectures, podcasts, and other high-quality recordings.


Model description

  • —Architecture: Transformer-based encoder–decoder (Whisper Large)
  • —Base model: openai/whisper-large
  • —Language: Spanish (es)
  • —Task: Automatic Speech Recognition (ASR)
  • —Output: Text transcription in Spanish
  • —Decoding: Autoregressive sequence-to-sequence decoding

Large model offers very high accuracy at the cost of higher computational requirements compared to Medium or Small variants.


Intended use

Primary use cases

  • —High-accuracy Spanish speech transcription
  • —Applications requiring transcription of long-form audio
  • —Research in Spanish ASR performance and benchmarking

Limitations

  • —May underperform in extremely noisy audio or with strong regional accents not well represented in the Common Voice dataset
  • —High computational cost for real-time inference
  • —Not suitable for legal, medical, or safety-critical applications without human review

Training and evaluation data

  • —Dataset: Mozilla Common Voice 13.0 (Spanish subset)
  • —Data type: Crowd-sourced read speech
  • —Preprocessing:
  • —Audio resampled to 16 kHz
  • —Text tokenized using Whisper tokenizer
  • —Removal of invalid or corrupted samples
  • —Evaluation metric: Word Error Rate (WER) on held-out evaluation set

Evaluation results

MetricValue
WER (eval)5.1265%

Training procedure

Training hyperparameters

  • —Learning rate: 1e-5
  • —Optimizer: Adam (β1=0.9, β2=0.999, ε=1e-8)
  • —LR scheduler: Linear
  • —Warmup steps: 500
  • —Training steps: 20000
  • —Train batch size: 32 (gradient accumulation 2 → effective batch size 64)
  • —Eval batch size: 16
  • —Seed: 42

Training results (summary)

Training LossEpochStepValidation LossWER
0.08342.010000.18626.3852
0.08714.020000.17775.9175
0.0396.030000.17805.7423
0.02658.040000.21215.7744
0.005910.050000.22195.8097
0.085512.0160000.18395.9778
0.003714.0170000.22735.8565
0.029316.0180000.19655.8078
0.117418.0190000.19845.8893
0.035520.01100000.21365.8662
0.027922.01110000.18825.4960
0.004324.01120000.24445.3356
0.030226.01130000.22235.4620
0.001128.01140000.26035.5608
0.00130.01150000.24525.3087
0.000332.01160000.25735.3523
0.000434.02170000.26905.2952
0.001336.02180000.23735.1438
0.000438.02190000.26185.1361
0.000440.02200000.26635.1265

Framework versions

  • —Transformers 4.33.0.dev0
  • —PyTorch 2.0.1+cu117
  • —Datasets 2.14.4
  • —Tokenizers 0.13.3

Example usage

python
from transformers import pipeline

hf_model = "HiTZ/whisper-large-es"  # replace with actual repo ID
device = 0  # -1 for CPU

pipe = pipeline(
    task="automatic-speech-recognition",
    model=hf_model,
    device=device
)

result = pipe("audio.wav")
print(result["text"])

Ethical considerations and risks

  • —This model transcribes speech and may process personal data.
  • —Users should ensure compliance with applicable data protection laws (e.g., GDPR).
  • —The model should not be used for surveillance or non-consensual audio processing.

Citation

If you use this model in your research, please cite:

bibtex
@misc{dezuazo2025whisperlmimprovingasrmodels,
  title={Whisper-LM: Improving ASR Models with Language Models for Low-Resource Languages},
  author={Xabier de Zuazo and Eva Navas and Ibon Saratxaga and Inma Hernáez Rioja},
  year={2025},
  eprint={2503.23542},
  archivePrefix={arXiv},
  primaryClass={cs.CL}
}

Please, check the related paper preprint in arXiv:2503.23542 for more details.


License

This model is available under the Apache-2.0 License. You are free to use, modify, and distribute this model as long as you credit the original creators.


Contact and attribution

  • —Fine-tuning and evaluation: HiTZ/Aholab - Basque Center for Language Technology
  • —Base model: OpenAI Whisper
  • —Dataset: Mozilla Common Voice

For questions or issues, please open an issue in the model repository.