Open Source Models
Whisper on iPhone: Testing Offline Transcription
To see whether Whisper suits your iPhone, record a minute of real audio.
What to try
- Transcribe the same clip with two variants and compare against a corrected reference.
- Record total time, missed names and numbers, and whether transcription continues in the conditions you need.
To see whether Whisper suits your iPhone, record a minute of real audio. Noise, names and language often tell you more about the usefulness of the transcript than a speed figure alone.
Whisper Model Architecture: Log-Mel Decomposition and Encoder-Decoder Asymmetry
Deploying Whisper efficiently on mobile hardware requires understanding its two-stage sequence-to-sequence transformer design:
- Acoustic Feature Extraction (Log-Mel Spectrogram): Raw audio sampled at 16,000 Hz is converted into an 80-channel (for Tiny, Base, and Small) or 128-channel (for Large-v3 and Turbo) log-magnitude Mel spectrogram. Using a 25 ms Hann window with a 10 ms hop size, every 30 seconds of audio yields a dense matrix of $80 imes 3,000$ or $128 imes 3,000$ values. On iOS, executing this Fast Fourier Transform (FFT) and Mel filterbank projection through Apple's Accelerate framework (
vDSP) takes less than 4 ms on the CPU before passing pointers to the Metal GPU. - The Audio Encoder Pipeline: The input spectrogram passes through two 1D convolutional layers with a filter width of 3 and a stride of 2, downsampling the temporal dimension by a factor of two into 1,500 feature frames at 50 Hz. Sinusoidal positional embeddings are added before passing the representations through a stack of bidirectional transformer encoder blocks. Because the input sequence length is fixed at 1,500 frames, this stage possesses high arithmetic intensity and static memory dimensions, making it well-suited for parallelized matrix multiplication on Apple Silicon.
- The Autoregressive Text Decoder: Unlike the encoder, the text decoder is an autoregressive causal transformer with cross-attention over the encoder output states. Tokens are generated sequentially: each step consumes the previously emitted token and the cached Key-Value states. At a mobile batch size of one ($B=1$), decoder throughput is strictly bound by DRAM read bandwidth, demanding aggressive weight quantization and efficient KV caching.
To connect Whisper with language models and real-time synthesis, explore the guide to offline voice assistants on iPhone.
Apple Silicon Execution: Audio Encoders on ANE vs Decoders on Metal GPU
A core architectural consideration on iOS is partitioning compute between the Apple Neural Engine (ANE) and the Metal GPU. Apple Silicon SoCs (A17 Pro, A18 Pro, and M-series) provide unified memory, but their compute engines have distinct execution profiles:
- Audio Encoder on ANE via Core ML: The ANE specializes in static tensor topologies and dense convolutions in 16-bit float and 8-bit integer formats. Because the Whisper audio encoder operates on a fixed $80 imes 3,000$ spectrogram chunk, it can be compiled into a static Core ML compute graph that executes entirely on the ANE with negligible GPU or CPU utilization, drawing under 1.2 Watts of power.
- Text Decoder on Metal GPU via Apple MLX: The autoregressive text decoder relies on dynamic token generation lengths, token sampling strategies (temperature, top-p, repetition penalties), and runtime KV cache growth. While dynamic shapes cause compilation stalls and CPU fallback on the ANE, Apple MLX executes the decoder natively on the Metal GPU using customized Metal Performance Shaders (MPS) and
MTLResourceStorageModeShared, achieving maximum memory bandwidth saturation. - Unified Memory Zero-Copy Bridge: Because Apple Silicon shares a single physical LPDDR5/LPDDR5X DRAM bus between the CPU, GPU, and ANE (150 GB/s on A17 Pro and 170 GB/s on A18 Pro), the encoder representations generated by the ANE or GPU remain directly accessible to the decoder without memory copying or PCIe transfer overhead.
Work distribution across accelerators is covered in the comparison of Apple Neural Engine and GPU.
How to test it on your device
Transcribe the same clip with two variants and compare against a corrected reference. Record total time, missed names and numbers, and whether transcription continues in the conditions you need.
To integrate voice transcription with structured summaries and secure storage, see the architecture of offline AI note taking apps on iOS.
Memory Footprints and the iOS Jetsam Boundary in Voice Pipelines
On iOS, the memory budget available to an app depends on the device, OS version and memory pressure. Test on the target device with representative context and attachments.
When engineering an offline conversational assistant, Whisper does not operate in isolation—it coexists with a local Large Language Model (such as SmolLM2 or Qwen 2.5) and audio playback daemons:
- Whisper Tiny & Base (Under 120 MB Dirty RAM): Consuming merely 68 MB to 110 MB of dirty memory, Whisper Tiny and Base leave over 4.3 GB of memory headroom. This makes them the gold standard for full-duplex conversational voice interfaces, easily pairing with Qwen 2.5 1.5B (1.32 GB) or SmolLM2 360M (340 MB) for a total memory footprint under 1.5 GB.
- Whisper Turbo (680 MB Dirty RAM): Whisper Turbo condenses the 32 decoder layers of Large-v3 down to 4 layers while retaining the full 32-layer encoder. In 4-bit precision, it delivers near-Large-v3 accuracy while consuming only 680 MB of dirty memory, leaving 3.82 GB for an accompanying language model.
- Whisper Large-v3 (1.35 GB Dirty RAM): While Large-v3 runs reliably on 8 GB devices in standalone transcription apps, pairing it with a 3B parameter LLM (2.45 GB dirty RAM) drives combined resident memory above 3.8 GB, uncomfortably close to the jetsam eviction boundary during background context switches or camera access.
To understand what changes when conversations are processed on-device, read the analysis of local AI privacy on iPhone.
Engineering Best Practices for Deploying Whisper on iOS
- Implement Voice Activity Detection (VAD) with Sliding Windows: Avoid feeding continuous 30-second silent audio chunks into the encoder. Integrate a lightweight energy-based VAD or a micro-neural VAD to detect speech boundaries, slicing audio into 2- to 5-second segments. This reduces latency from seconds down to sub-400 ms and minimizes thermal load.
- Apply 4-Bit Affine Quantization on the Decoder: The autoregressive decoder is memory-bandwidth bound. Quantizing decoder projection and attention matrices to 4-bit affine format (with group size 64) reduces weight memory transfers by over 60% while maintaining Word Error Rates (WER) within 0.3% of unquantized FP16 baselines.
- Vectorize Mel-Spectrogram Calculation with Accelerate vDSP: Avoid processing audio samples in Swift loops. Leverage
vDSP_create_fftsetupand vectorized dot products from the Accelerate framework to convert 16 kHz PCM buffers directly into log-Mel spectrograms on the CPU before creating Metal buffers. - Drain Metal Autorelease Pools Between Utterances: During extended live transcription sessions, intermediate Metal command buffers and transient activation tensors can accumulate in default thread autorelease pools. Wrap transcription iterations in an explicit
autoreleasepool { ... }block to ensure prompt memory deallocation and avoid triggering kernel jetsam warnings.
To translate offline speech transcripts with on-device language models, explore the guide to offline AI translation on iOS.
If you only need to dictate a message, see dictation in the Lapis composer.
Sources and references
- Robust Speech Recognition via Large-Scale Weak Supervision
Alec Radford, Jong Wook Kim, Tao Xu, Greg Brockman, Christine McLeavey, Ilya Sutskever (OpenAI / arXiv:2212.04356, 2022)
- Quantization for OpenAI's Whisper Models: A Comparative Analysis
Allison Andreyev (arXiv:2503.09905, 2025)
- Deploying Transformers on the Apple Neural Engine
Apple Machine Learning Research (2022)
Local execution with Lapis
Chat with compatible models on iPhone, iPad and Mac. Download them once and use local inference offline; model size depends on your device’s resources.