A fine-tuned version of
openai/whisper-large-v3 for Swiss German (Schweizerdeutsch) automatic speech recognition. The model transcribes Swiss German dialect speech into grammatically correct Standard German text.
1from transformers import WhisperForConditionalGeneration, WhisperProcessor
2import torch
3
4model_id = "Flix-AI/flix-swissgerman-full"
5
6processor = WhisperProcessor.from_pretrained(model_id)
7model = WhisperForConditionalGeneration.from_pretrained(
8 model_id, torch_dtype=torch.bfloat16, device_map="auto"
9)
10
11# Transcribe Swiss German audio
12audio_array = ... # numpy array, 16kHz mono
13input_features = processor(
14 audio_array, sampling_rate=16000, return_tensors="pt"
15).input_features.to(model.device, dtype=torch.bfloat16)
16
17predicted_ids = model.generate(input_features, language="de", task="transcribe")
18transcription = processor.batch_decode(predicted_ids, skip_special_tokens=True)[0]
19print(transcription)
No training data is redistributed with this model. The model was trained under the Swiss text and data mining research exception (Art. 24d URG).
1@article{akeret2026whisper-swiss-german,
2 title={Subtitle-Aligned Fine-Tuning of Whisper for Swiss German ASR: Benchmark Contamination, Convention Mismatch, and an Honest Baseline at 25.6\% WER (13.8\% cWER)},
3 author={Akeret, Felix},
4 year={2026},
5 url={https://arxiv.org/abs/2606.07608},
6 eprint={2606.07608},
7 archivePrefix={arXiv},
8 primaryClass={cs.CL}
9}