Views
No views yet
openai/whisper-mediumMAdel121/arabic-egy-cleaned (approx. 72 hours)transformers library and the pipeline interface for ease of use.1from transformers import pipeline
2import torch
3
4device = "cuda:0" if torch.cuda.is_available() else "cpu"
5
6pipe = pipeline(
7 "automatic-speech-recognition",
8 model="YOUR_HF_USERNAME/whisper-medium-egy", # Replace YOUR_HF_USERNAME with your Hugging Face username
9 device=device
10)
11
12# Example with a local audio file
13# audio_file = "path/to/your/egyptian_arabic_audio.wav"
14# transcription = pipe(audio_file, generate_kwargs={"language": "arabic"})["text"]
15# print(transcription)
16
17# Example with a Hugging Face dataset audio sample
18# from datasets import load_dataset
19# ds = load_dataset("MAdel121/arabic-egy-cleaned", "ar", split="validation") # Or your test split
20# sample = ds[0]["audio"] # Make sure your dataset has an "audio" column
21# result = pipe(sample.copy(), generate_kwargs={"language": "arabic"})
22# print(result["text"])"YOUR_HF_USERNAME/whisper-medium-egy" with the actual model ID after uploading. The generate_kwargs={"language": "arabic"} is important for Whisper models to ensure correct tokenization and transcription for the target language.MAdel121/arabic-egy-cleaned dataset available on the Hugging Face Hub. This dataset contains approximately 72 hours of Egyptian Arabic audio paired with transcripts.transformers library. The fine-tuning process involved the following key hyperparameters:openai/whisper-mediumuse_drop_freq: trueuse_drop_chunk: trueuse_drop_bit_resolution: trueuse_add_noise, use_speed_perturb, use_pitch_shift, use_add_reverb, use_codec_augment, use_gain were set to falsewhisper-medium-egyptian-arabic with resume ID r3sz4v27.validation split of the MAdel121/arabic-egy-cleaned dataset.1@misc{madel_2025_whisper_medium_egy,
2 author = Madel
3 title = {Whisper Medium Fine-tuned for Egyptian Arabic},
4 year = {2025},
5 publisher = {Hugging Face},
6 journal = {Hugging Face Hub},
7 howpublished = {\\url{https://huggingface.co/MAdel121/whisper-medium-egy}} // Replace with actual URL
8}