File size: 4,835 Bytes
68be921
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
---
language:
- ar
task_categories:
- automatic-speech-recognition
tags:
- whisper
- arabic
- dialect
- speech
- asr
pretty_name: Arabic Whisper Multi-Dialect Dataset
size_categories:
- 100K<n<1M
---

# Arabic Whisper Multi-Dialect ASR Dataset

A comprehensive multi-dialect Arabic speech recognition dataset prepared for Whisper model fine-tuning.

## Dataset Description

This dataset combines high-quality Arabic speech data from multiple dialects, specifically curated for fine-tuning OpenAI's Whisper models on Arabic speech recognition tasks.

### Dialects Included

- **Modern Standard Arabic (MSA)** - Formal Arabic used in media and formal contexts
- **Egyptian Arabic (EGY)** - The most widely understood Arabic dialect
- **Gulf Arabic (GULF)** - Arabic dialects from the Gulf region

### Dataset Statistics

- **Total Samples**: ~105,000 audio-text pairs
- **Train Split**: ~94,500 samples (90%)
- **Validation Split**: ~5,250 samples (5%)
- **Test Split**: ~5,250 samples (5%)
- **Audio Format**: 16kHz, mono
- **Text**: Normalized Arabic script

### Source Datasets

This dataset is a combination of the following sources:

1. **MightyStudent/Egyptian-ASR-MGB-3** - Egyptian dialect broadcast data
2. **MAdel121/arabic-egy-cleaned** - Cleaned Egyptian Arabic speech
3. **Nourhann/filtered_common_voices_16khz** - Modern Standard Arabic
4. **badrex/arabic-speech-SADA22-Khaliji** - Gulf dialect speech (30% sample)

## Dataset Structure
```python
DatasetDict({
    train: Dataset({
        features: ['audio', 'sentence'],
        num_rows: ~94500
    })
    validation: Dataset({
        features: ['audio', 'sentence'],
        num_rows: ~5250
    })
    test: Dataset({
        features: ['audio', 'sentence'],
        num_rows: ~5250
    })
})
```

### Data Fields

- `audio`: Audio file (16kHz sampling rate)
- `sentence`: Transcription text in Arabic
- `dialect`: Dialect label ('msa', 'egy', or 'gulf')

## Usage

### Loading the Dataset
```python
from datasets import load_dataset

dataset = load_dataset("MadLook/arabic-whisper-multidialect")

print(dataset)
# Access splits
train_data = dataset['train']
val_data = dataset['validation']
test_data = dataset['test']
```

### Fine-tuning Whisper
```python
from transformers import WhisperProcessor, WhisperForConditionalGeneration

# Load model and processor
processor = WhisperProcessor.from_pretrained("openai/whisper-small", language="Arabic", task="transcribe")
model = WhisperForConditionalGeneration.from_pretrained("openai/whisper-small")

# Prepare dataset
def prepare_dataset(batch):
    audio = batch["audio"]
    batch["input_features"] = processor.feature_extractor(audio["array"], sampling_rate=audio["sampling_rate"]).input_features[0]
    batch["labels"] = processor.tokenizer(batch["sentence"]).input_ids
    return batch

dataset = dataset.map(prepare_dataset)

# Continue with training...
```

## Data Processing

The dataset has been processed with the following steps:

1. **Audio normalization**: All audio resampled to 16kHz mono
2. **Text normalization**: Arabic text normalized (diacritics removed, Alef forms unified)
3. **Dialect balancing**: Datasets sampled to ensure balanced representation
4. **Quality filtering**: Low-quality samples removed
5. **Train/Val/Test split**: 90/5/5 split with shuffling

## Intended Use

### Primary Use Cases

- Fine-tuning Whisper models for Arabic ASR
- Multi-dialect Arabic speech recognition research
- Arabic speech technology development
- Dialect-aware speech recognition systems

### Considerations

- This dataset combines multiple dialects; consider dialect-specific fine-tuning if needed
- Text is normalized and may not preserve dialectal spelling variations
- Dataset is balanced across dialects but individual dialect performance may vary

## Limitations

- Gulf dialect representation is lower (30% of original dataset)
- No code-switching samples included
- Limited to broadcast and read speech domains
- May not generalize well to conversational or noisy speech

## Citation

If you use this dataset, please cite the original source datasets:
```bibtex
@dataset{arabic_whisper_multidialect,
  title={Arabic Whisper Multi-Dialect Dataset},
  author={MadLook},
  year={2025},
  publisher={Hugging Face},
  howpublished={\url{https://huggingface.co/datasets/MadLook/arabic-whisper-multidialect}}
}
```

## License

This dataset combines data from multiple sources. Please refer to the original datasets for their respective licenses:
- MightyStudent/Egyptian-ASR-MGB-3
- MAdel121/arabic-egy-cleaned
- Nourhann/filtered_common_voices_16khz
- badrex/arabic-speech-SADA22-Khaliji

## Acknowledgments

This dataset builds upon the excellent work of the Arabic NLP and speech recognition community. Special thanks to the creators of the source datasets for making their data publicly available.