A fine-tuned
openai/whisper-large-v2 model for Welsh and English automatic speech recognition, with Welsh-to-English speech translation capability.
WER / CER (lower is better) on the held-out benchmark. Average across the 4 transcription test sets: WER 20.29, CER 7.33.
For higher-quality English, transcribe the Welsh audio with this model and translate the resulting Welsh text with a dedicated Welsh→English machine translation model.
The Welsh Common Voice corpus is freely available from Mozilla themselves:
Mozilla Common Voice — Welsh datasets. Releases are distributed through the Mozilla Data Collective, and the
datacollective package offers a programmatic download. With that in hand the rest of this pipeline is reproducible — every other dataset in the table is openly available on the Hugging Face Hub. Our thanks to Mozilla and to the Welsh speakers who contributed their voices.
1from transformers import pipeline
2
3pipe = pipeline(
4 "automatic-speech-recognition",
5 model="techiaith/whisper-large-ft-cy-en",
6)
7
8# Welsh transcription
9result = pipe("welsh_audio.wav", generate_kwargs={"language": "cy", "task": "transcribe"})
10
11# English transcription
12result = pipe("english_audio.wav", generate_kwargs={"language": "en", "task": "transcribe"})
13
14# Welsh to English translation
15result = pipe("welsh_audio.wav", generate_kwargs={"language": "cy", "task": "translate"})
A CTranslate2 (int8 quantised) version is available at
techiaith/whisper-large-ft-cy-en-ct2 for faster inference.
Funded by the Welsh Government.