LA24AI

Content creation

Run Whisper for Arabic on Windows: Transcribe, Check WER and Review Critical Errors

A reader-run Windows workflow for local Arabic speech transcription with Whisper, FFmpeg, reference transcripts and explicit checks for names, numbers and dates.

Run Whisper for Arabic on Windows: Transcribe, Check WER and Review Critical Errors

Record a reference clip before evaluating any model

Record a short Arabic practice clip you own, about 20–30 seconds, including a date, a name and a pause. For a five-word example use “زار أحمد بغداد يوم الأحد”. Write the reference transcript by listening before seeing any model output; otherwise the model can contaminate the answer key.

The task here is speech-to-text in Arabic, not English translation. Whisper supports multilingual recognition, but support is not a claim of equal accuracy on dialects or noisy recordings. Only test recordings you have the right to process.

Keep audio-original separate from transcript-test. Record the clip filename, duration and reference text. If a reference mismatches what the person actually said, correct it by replaying the recording before scoring results.

Install the local runtime in an isolated Windows environment

Use compatible Python and FFmpeg versions from their official instructions. Check the Whisper repository for currently supported Python/runtime versions rather than assuming every interpreter version is compatible. In a Windows PowerShell test folder run python -m venv .venv and then .\.venv\Scripts\python.exe -m pip install -U openai-whisper.

Run ffmpeg -version. If Windows cannot find the command, install FFmpeg from a trustworthy distribution and ensure the correct executable directory is on PATH, then restart the shell. Do not upload private recordings to an unknown site as a workaround.

The first model download needs internet and local disk space. If installation fails, record the Python version, FFmpeg version and specific error before changing packages. This is a published test procedure, not a claimed benchmark on your hardware.

A concrete examplepython
reference = "وصل علي الساعة الثالثة".split()
hypothesis = "وصل علي الساعة الرابعة".split()
row = list(range(len(hypothesis) + 1))
for i, word in enumerate(reference, 1):
    next_row = [i]
    for j, other in enumerate(hypothesis, 1):
        next_row.append(min(next_row[-1] + 1, row[j] + 1,
                            row[j - 1] + (word != other)))
    row = next_row
print(f"WER: {row[-1] / len(reference):.0%}")

The synthetic pair has one substitution across four reference words: 25%. It is not a Whisper performance measurement.

Download example text ↓

Transcribe without overwriting the source audio

Copy sample.wav into the test directory. Run .\.venv\Scripts\whisper.exe sample.wav --language Arabic --task transcribe --model small --output_dir transcript-test --output_format txt. If whisper.exe is missing, inspect the virtual environment Scripts folder and package installation rather than silently using another Python installation.

Open the resulting TXT and replay the source audio. If your Arabic clip produces an English translation, recheck --task transcribe and the language option. Keep the runtime settings alongside your review notes.

For an audio-cleanup comparison, preserve the original and use a separately named processed copy. Test both with the same model/settings against the same reference; a quieter clip does not necessarily yield more accurate recognition.

Calculate WER and flag consequential mistakes

Word error rate is (substitutions + deletions + insertions) divided by reference word count. Fictional five-token example: reference “زار أحمد بغداد يوم الأحد” versus hypothesis “زار أحمد بغداد يوم الاثنين”. One substitution yields WER = 1/5 = 20%.

This is arithmetic using invented text, not an observed model score. Decide how to handle diacritics, Arabic letter normalization and numbers before comparing. Keep the verbatim transcript and both exact and normalized scores; do not change rules halfway through a model comparison.

Also flag high-consequence mistakes separately: Sunday becoming Monday, invoice ID 0017 becoming 17, or a missing negation. Empty-reference silence cannot be scored by division by zero; record generated words in silence as a separate failure type.

Synthetic WER example, not a measured model result
ReferenceHypothetical resultErrorReview decision
زار أحمد بغداد يوم الأحدزار أحمد بغداد يوم الاثنين1 substitution / 5 = 20% WERReplay the weekday
Order ID 0017Order ID 17Leading zeros lostCritical ID review
SilenceExtra generated wordWER denominator is zeroReview silence and trimming

Approve a transcript only after listening-based review

Replay timestamps containing dates, names and amounts before publishing a quote. If making SRT captions, audit timing separately: correct words can still be associated with the wrong moment in the video.

Keep a small acceptance register with recording ID, model/settings, reference, critical errors and outcome (correct before publishing, record again, or acceptable). WER on one synthetic sample is not evidence of overall dialect performance.

A draft transcript can save effort even when it needs human corrections. Publish based on fidelity to the recording and reader utility, not an implication that Whisper has no errors. Review official CLI documentation if options or installation requirements change.

Sources & further reading

Sources support concepts and features; proposed trials are educational examples.

Prepared with AI assistance. Educational examples are not product tests; actual measurements identify their method and scope. Editorial approach ↗

NEXT

One idea leads to another

3 min read

Check overlapping cues, reading load and mixed numerals, preserving sentence meaning while splitting text instead of pasting an AI transcript into a video.

3 min read

Choosing AI for translation, customer support or document extraction? Use 12 Arabic examples with known answers to catch meaning and number errors before using it at work.