Skip to content

Whisper Speech Recognition

Transcribes a reference audio sample with a Whisper model and measures latency, real-time factor, and accuracy (word and character error rate) across model sizes, backends, and devices.

Test suite test_whisper (src/esq/suites/ai/audio/test_whisper.py)
Integration type Type 1: generic suite. The model size, backend, and audio come from the profile.
Key metric latency_ms (ms, lower is better), with rtf (ratio), wer and cer (%)
Devices CPU, iGPU, dGPU, NPU (OpenVINO backend), CPU, iGPU, dGPU (PyTorch backend)

How It Works

  1. Download the Whisper model and, for the OpenVINO backend, export it to OpenVINO IR. Download the reference audio sample.
  2. Build and start the container of the selected backend (openvino or pytorch).
  3. Run warmup_runs transcriptions, then num_runs measured ones.
  4. Report the average latency, the real-time factor, and the error rates against reference_transcript.

Parameters

Parameter Default Description
model_size tiny Whisper model size: tiny, base, small, medium, large, or turbo
backend openvino openvino or pytorch
devices [cpu] Device categories to test
model_id, model_dir unset Use another Hugging Face model or a local model directory
wav_file_path, reference_transcript LibriSpeech sample and its transcript 16 kHz WAV file to transcribe and its expected text
warmup_runs, num_runs 1, 5 Unmeasured and measured transcriptions
timeout, download_timeout, export_timeout, inference_timeout 300, 3600, 1800, 900 Time limits in seconds
kpi_refs, kpi_validation_mode [], all KPIs to validate

Profiles

Profile Type Test cases
profile.horizontal.ai.audio-whisper Horizontal 42

Expand a profile to see the test cases it runs with this suite.

profile.horizontal.ai.audio-whisper
Test ID Test case
AUD-WOV-001 Whisper Benchmark - tiny model on OpenVINO (CPU)
AUD-WOV-002 Whisper Benchmark - tiny model on OpenVINO (iGPU)
AUD-WOV-003 Whisper Benchmark - tiny model on OpenVINO (dGPU)
AUD-WOV-004 Whisper Benchmark - tiny model on OpenVINO (NPU)
AUD-WOV-005 Whisper Benchmark - base model on OpenVINO (CPU)
AUD-WOV-006 Whisper Benchmark - base model on OpenVINO (iGPU)
AUD-WOV-007 Whisper Benchmark - base model on OpenVINO (dGPU)
AUD-WOV-008 Whisper Benchmark - base model on OpenVINO (NPU)
AUD-WOV-009 Whisper Benchmark - small model on OpenVINO (CPU)
AUD-WOV-010 Whisper Benchmark - small model on OpenVINO (iGPU)
AUD-WOV-011 Whisper Benchmark - small model on OpenVINO (dGPU)
AUD-WOV-012 Whisper Benchmark - small model on OpenVINO (NPU)
AUD-WOV-013 Whisper Benchmark - medium model on OpenVINO (CPU)
AUD-WOV-014 Whisper Benchmark - medium model on OpenVINO (iGPU)
AUD-WOV-015 Whisper Benchmark - medium model on OpenVINO (dGPU)
AUD-WOV-016 Whisper Benchmark - medium model on OpenVINO (NPU)
AUD-WOV-017 Whisper Benchmark - large model on OpenVINO (CPU)
AUD-WOV-018 Whisper Benchmark - large model on OpenVINO (iGPU)
AUD-WOV-019 Whisper Benchmark - large model on OpenVINO (dGPU)
AUD-WOV-020 Whisper Benchmark - large model on OpenVINO (NPU)
AUD-WOV-021 Whisper Benchmark - turbo model on OpenVINO (CPU)
AUD-WOV-022 Whisper Benchmark - turbo model on OpenVINO (iGPU)
AUD-WOV-023 Whisper Benchmark - turbo model on OpenVINO (dGPU)
AUD-WOV-024 Whisper Benchmark - turbo model on OpenVINO (NPU)
AUD-WPT-001 Whisper Benchmark - tiny model on PyTorch (CPU)
AUD-WPT-002 Whisper Benchmark - tiny model on PyTorch (iGPU)
AUD-WPT-003 Whisper Benchmark - tiny model on PyTorch (dGPU)
AUD-WPT-004 Whisper Benchmark - base model on PyTorch (CPU)
AUD-WPT-005 Whisper Benchmark - base model on PyTorch (iGPU)
AUD-WPT-006 Whisper Benchmark - base model on PyTorch (dGPU)
AUD-WPT-007 Whisper Benchmark - small model on PyTorch (CPU)
AUD-WPT-008 Whisper Benchmark - small model on PyTorch (iGPU)
AUD-WPT-009 Whisper Benchmark - small model on PyTorch (dGPU)
AUD-WPT-010 Whisper Benchmark - medium model on PyTorch (CPU)
AUD-WPT-011 Whisper Benchmark - medium model on PyTorch (iGPU)
AUD-WPT-012 Whisper Benchmark - medium model on PyTorch (dGPU)
AUD-WPT-013 Whisper Benchmark - large model on PyTorch (CPU)
AUD-WPT-014 Whisper Benchmark - large model on PyTorch (iGPU)
AUD-WPT-015 Whisper Benchmark - large model on PyTorch (dGPU)
AUD-WPT-016 Whisper Benchmark - turbo model on PyTorch (CPU)
AUD-WPT-017 Whisper Benchmark - turbo model on PyTorch (iGPU)
AUD-WPT-018 Whisper Benchmark - turbo model on PyTorch (dGPU)

Run

esq run --profile profile.horizontal.ai.audio-whisper --filter test_id=AUD-WOV-001