Views
No views yet
IbrahimAmin/code-switched-egyptian-arabic-whisper-small openai/whisper-small ar_eg train subset was utilized to incorporate Egyptian Arabic speech patterns.1import torch
2from transformers import pipeline
3
4# Config
5model_name = "IbrahimAmin/code-switched-egyptian-arabic-whisper-small"
6torch_dtype = torch.float16
7device = "cuda" if torch.cuda.is_available() else "cpu"
8
9# Load the pipeline
10asr = pipeline(task='automatic-speech-recognition',
11 model=model_name, torch_dtype=torch_dtype, device=device)
12
13path = "path_to_audio_file.wav"
14
15# Inference
16result = asr(path, return_timestamps=False, chunk_length_s=30,
17 generate_kwargs={"task": "transcribe", "language": "<|ar|>", "num_beams": 5})
18
19print(result['text'])| Dataset | Baseline Whisper Small WER (%) | Fine-Tuned Model WER (%) |
|---|---|---|
| FLEURS ar_eg test set (transcription column) | 30.29 | 24.36 |
| ESCWA | 98.15 | 45.12 |
| MGB-3 (dev-test) | 72.67 – 79.84 | 44.29 – 49.00 |
| Common Voice 17.0 Arabic Subset (Test Set) | 74.16 | 69.14 |
beam_size = 5) and evaluated using BasicTextNormalizer with remove_diacritics=False and split_letters=False, applied to both predictions and reference text.1@misc{amin2025whispercodeswitch,
2 author = {Ibrahim Amin},
3 title = {Whisper Small – Code-Switched Egyptian Arabic-English ASR},
4 year = {2025},
5 publisher = {Hugging Face},
6 howpublished = {\url{https://huggingface.co/IbrahimAmin/code-switched-egyptian-arabic-whisper-small}}
7}