DEV Community

Cover image for Windows ML 2.9.42 Experimental Drops DX CGC MLIR Backend — GPU Inference for Whisper Still Hits the WASAPI Capture Wall
devs
devs

Posted on

Windows ML 2.9.42 Experimental Drops DX CGC MLIR Backend — GPU Inference for Whisper Still Hits the WASAPI Capture Wall

On 20 November 2026 Microsoft shipped Windows ML 2.9.42 Experimental. The release expands the Windows ML Runtime API with the first support for the DirectX Compute Graph Compiler (DX CGC), an MLIR-based backend developed with AMD, Intel, NVIDIA, and Qualcomm. You convert a model once to Compute Graph IR (CGIR) and the compiler lowers it to Direct3D 12 targets with vendor-specific backends plus shader fallbacks. Task APIs sit on top and already list speech recognition models (Whisper tiny, Whisper Medium, Nemotron ASR) and several small LLMs that can run through the same path.

That is useful if you are shipping a local overlay that needs on-device STT or a short suggestion model during a call. The new path is still experimental, GPU-only for CGC right now, and the capture side of the pipeline has not moved.

Waveforms

What the backend actually gives you

Previously Windows ML leaned on ONNX Runtime plus vendor execution providers. The Runtime API + CGC route is a separate Windows-native surface. You can:

  • Feed tensors with zero-copy paths for audio, images, or text.
  • Chain stages into a pipeline.
  • Let the Task APIs handle the transcription loop, streaming output, and cancellation for ASR models.
  • Convert via the Windows ML CLI or let the runtime JIT/AOT compile to CGIR.

Recommended models for the speech Task path include Whisper variants and Nemotron. GGUF and SafeTensors are supported through the Task layer. Hardware acceleration is GPU-first; NPU support is listed as in progress. Drivers that implement the CGC interfaces get the optimized path; everything else falls back to shaders.

For a developer who already has a dual-track capture stack this means you can drop a local Whisper tiny or Medium onto the GPU without shipping a separate ONNX Runtime tree or fighting EP registration. The first partials can stay on-device, which removes one network hop and keeps the audio off the wire.

The capture path is still the dominant term

None of that changes the Windows Audio Engine. A usable bilingual overlay for interviews or sales calls needs two clean PCM streams:

  1. Local microphone.
  2. Loopback of the render endpoint (Teams/Zoom/Meet/browser).

Both must stay in shared mode so the call client keeps the endpoint. Exclusive mode breaks the call. The engine (audiodg.exe + audioeng.dll) mixes, applies communications enhancements, spatial audio, and vendor APOs. Typical shared-mode period is 10 ms. IAudioClient3 can request a smaller period; the engine frequently ignores it or falls back under load. Bluetooth (even LE Audio with the new 48 kHz stereo option from Build 26340.10032) adds its own buffering and profile overhead.

Practical end-to-end stack:

  • Endpoint → WASAPI shared-mode client (10–20 ms buffer).
  • Audio engine mixing + enhancements.
  • Capture callback (copy into lock-free SPSC ring, return immediately).
  • Framing + lightweight VAD + resample to 16 kHz mono.
  • Local STT via Windows ML Task API / CGC on GPU (or remote if you prefer).
  • Small local model for translation polish or short suggestion.
  • Overlay paint on a dedicated thread (<16 ms).

Measured partial latency for a dual-track overlay still lands in the 80–200 ms range on typical hardware once you add framing and the first usable partial, even when the STT model itself is local and fast. The 10–40+ ms the engine can insert before any sample reaches your process does not disappear because the inference backend got better.

Spectrogram

Tradeoffs that actually matter

Shared mode is non-negotiable if you want the call client to keep working. That locks you into the engine period and any OEM enhancements that happen to be enabled. Turning communications enhancements off helps, but it is not a contract; the next Windows Update or driver can re-enable them.

Local STT via the new path reduces network RTT and keeps data on the device, which is the right default for an interview overlay. It does not shrink the capture buffer. A Whisper tiny running on a modern NVIDIA GPU through CGC can return partials in tens of milliseconds once the samples arrive; the samples still arrive after the engine period plus Bluetooth or USB buffering.

If you are already doing dual-track capture for speaker identity and barge-in detection, the new backend is an incremental win on the inference side. Mixing the two tracks early still destroys the ability to attribute who said what, so keep the rings separate until after STT.

For pure local suggestion generation after the transcript is ready, a small GGUF through the Task API on the same GPU is now easier to wire in. The latency floor remains the audio engine.

Practical notes from the docs

The CGC backend is experimental and not supported for production. Models outside the recommended list can fail with ERROR_NOT_SUPPORTED or produce different results. NVIDIA GPUs with recent drivers are the best-validated target right now. The Windows ML CLI can convert to CGIR ahead of time; runtime conversion is also available for supported formats.

If your overlay already uses WASAPI loopback + capture clients, the integration point is after the ring: hand the framed 16 kHz mono buffers to the Task API speech session. Keep the audio callback empty. Do the resampling and VAD off the callback thread.

That is the same architecture that has worked for years. The new MLIR path just makes the local model half of it less painful to ship.

I'm building Talkaside, a Windows app for job interviews and calls in another language.
Drafted with AI assistance from this project's code and logs.

Top comments (0)