Downloads · 30 days
457
20% of all-time downloads
IbrahimAmin/code-switched-egyptian-arabic-whisper-small
code-switched-egyptian-arabic-whisper-small is a automatic speech recognition model from IbrahimAmin. Use it when you need speech turned into text. It is set up for transformers. The card lists the license as apache-2.0.
Model ID: IbrahimAmin/code-switched-egyptian-arabic-whisper-small \ Base Model: openai/whisper-small \ Languages: Egyptian Arabic, English (code-switched) \ Author: Ibrahim Amin
Downloads · 30 days
457
20% of all-time downloads
All-time downloads
2.3K
Public
Parameters
242M
967 MB on disk
Likes
5
Public
Click a slice to open those files.
.safetensors967 MB · 100%
From the Hugging Face model README
Model ID: IbrahimAmin/code-switched-egyptian-arabic-whisper-small
Base Model: openai/whisper-small
Languages: Egyptian Arabic, English (code-switched)
Author: Ibrahim Amin
This model is a fine-tuned version of OpenAI's Whisper Small, optimized for Automatic Speech Recognition (ASR) on code-switched Egyptian Arabic-English audio. It is designed to accurately transcribe speech that alternates between Egyptian Arabic and English, a common occurrence in informal conversations, media, and social platforms within Egypt.
The model was trained on a diverse set of datasets to capture the nuances of code-switching:
ar_eg train subset was utilized to incorporate Egyptian Arabic speech patterns.To utilize this model for transcription tasks:
import torch
from transformers import pipeline
# Config
model_name = "IbrahimAmin/code-switched-egyptian-arabic-whisper-small"
torch_dtype = torch.float16
device = "cuda" if torch.cuda.is_available() else "cpu"
# Load the pipeline
asr = pipeline(task='automatic-speech-recognition',
model=model_name, torch_dtype=torch_dtype, device=device)
path = "path_to_audio_file.wav"
# Inference
result = asr(path, return_timestamps=False, chunk_length_s=30,
generate_kwargs={"task": "transcribe", "language": "<|ar|>", "num_beams": 5})
print(result['text'])
The model's performance was evaluated using Word Error Rate (WER) across multiple test sets:
These results indicate the model's effectiveness in handling code-switched speech, particularly in the context of Egyptian Arabic.
| 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.If you utilize this model in your research or applications, please cite it as follows:
@misc{amin2025whispercodeswitch,
author = {Ibrahim Amin},
title = {Whisper Small – Code-Switched Egyptian Arabic-English ASR},
year = {2025},
publisher = {Hugging Face},
howpublished = {\url{https://huggingface.co/IbrahimAmin/code-switched-egyptian-arabic-whisper-small}}
}