WhatAreYouSaying, or WAYS, is an open-source explainable AI tool for speech recognition (ASR). It is not built around one model. For every token a speech-to-text model writes, it tells you which 100 ms of audio in which frequency band the model leaned on, and whether that audio was clean or degraded. It needs no training and no labels. It is MIT-licensed, written in Python, and looking for contributors.
When a speech model gets a word wrong, or right against the odds, the usual question is what it was listening to. Attention maps and gradients answer that loosely. In an earlier study, gradient times input on whisper-tiny kept 92 % of its ranking after the decoder was re-initialised, so it was mostly reflecting the loudness of the input and not the model. WAYS answers by removing audio and watching what changes.
How it works
WAYS cuts the spectrogram into a grid of 100 ms steps and 8 frequency bands from 0 to 8 kHz. It erases one patch, turns the result back into a waveform, and asks the model to score its own transcript again. If a word becomes less likely, that patch supported it. Repeat for every patch and each word gets a map over time and frequency.
This is representation erasure, the method Li, Monroe and Jurafsky described in 2016 for text models, applied to audio. Each word and patch gets three scores from the same forward pass: how much more surprised the model became (in nats), the relative change, and whether its top choice for that word flipped.
The second half is audio quality. AADD by Arina Gertel says what is wrong with a recording and where, every 20 ms: noise, reverb, clipping and more. WAYS puts the two together as a noise-focus ratio per word, which compares how much of the word's evidence sits on audio AADD flags as degraded against how much of the clip is flagged. A ratio of 1 means no preference, above 1 means the word leans on degraded audio.
The cost is one teacher-forced forward pass per patch, batched 64 at a time: 4.3 s per clip for moonshine-base, 5.5 s for whisper-tiny and 9.8 s for whisper-base on an RTX 4000 Ada.
Which models it works with
WAYS erases audio before any model sees it. Each erased waveform then goes through the model's own front end, so the same test serves a model that reads log-mel spectrograms, like Whisper, and one that reads the raw waveform, like Moonshine. That is what makes WAYS model-agnostic.
It reaches models in two ways:
- Local weights. Whisper and Moonshine checkpoints run in process through transformers. You get the full scores, and the encoder tools (
aud-camandcross-check) can look inside the model. - Any OpenAI-compatible speech server. Point it at vLLM, llama.cpp or another server that speaks
/v1/audio/transcriptionsor/v1/chat/completionswith audio, and whichever ASR model it serves gets a word-change map: which words change when each patch is erased. This route needs no access to the weights, so it also covers models you can't load yourself.
The figure code is one file with only numpy and matplotlib, and it takes your own audio, your own quality detector and your own attribution method. So you can draw WAYS figures for a model WAYS doesn't run.
What has been tested so far is narrower: whisper-tiny, whisper-base and moonshine-base on local weights, and the server route against a mock server that answers with whisper-tiny.
What the first results show
The project's README reports three experiments on three small models (whisper-tiny, whisper-base and moonshine-base), 260 clips in all, with 95 % bootstrap intervals.
- The maps are concentrated. A word's single most important patch carries 26 to 31 % of its evidence, out of about 700 patches per clip.
- Evidence sits mostly in the low bands. All three models put a quarter of each word's evidence in the 0.4 to 0.7 kHz band and 14 to 16 % above 3.6 kHz.
- Damage pulls evidence in. On 60 LibriSpeech clips with one 2 s stretch of known damage, the share of an in-window word's evidence inside the damaged window rose from 0.73 to 0.82 for whisper-base. The damaged stretch is where the transcript is fragile, so that is where the evidence concentrates.
- Evidence follows the word. On 100 VoiceBank-DEMAND sentences with real noise switched on and off, 78 to 79 % of words drew their evidence from the same kind of audio they were spoken on, against 52 % by chance.
The README has every table, figure and the scripts that made them.
Try it
You need Python 3.12. A GPU is optional for one clip.
git clone https://github.com/AlveeeRahman/WhatAreYouSaying && cd WhatAreYouSaying
python -m venv .venv && . .venv/bin/activate
pip install --extra-index-url https://download.pytorch.org/whl/cu128 -r requirements.txt # or /cpu
pip install --no-deps -e .
pytest tests -q
ways explain clip.wav --backend hf-whisper --model openai/whisper-base --aadd --figure --out out/
The first run downloads the model from the Hugging Face Hub and, with --aadd, the AADD checkpoint. To explain a model behind a server instead, use --backend openai-compat with the server's --base-url and --model.
Three tools ship on a plug-in registry. ways sound-token answers which audio each word used and whether it was clean. ways aud-cam shows what degraded audio does inside the encoder, layer by layer. ways cross-check puts the erasure reading and the encoder's gradient reading of every word side by side, so you can see where the two agree. Another Python package can register its own tool and it appears in ways tools.
What it does not do yet
- The erasure is not a hard zero. The erased patch drops 33 to 36 dB on average, 17 dB in the worst case.
- It scores the model's own transcript, so it says what a patch supported, not what the model should have written.
- AADD is a detector, not ground truth, which is why the main claims rest on the two datasets with known damage.
- Only three small English models have been tested, and the vLLM and llama.cpp route has only run against a mock server.
Help build WAYS
WAYS is at version 0.4.1 and I would like more people working on it. The open work is concrete, and the help-wanted page has the details:
- Continuous integration. The commands are fixed (
make testandmake lint). It needs a GitHub Actions workflow. - A live server run. Point the
openai-compatbackend at a real vLLM or llama.cpp server and report what it finds. - A larger model. Run whisper-large-v3 or another big model on the same clips and compare.
- Other languages. Every dataset so far is English.
- New tools. A tool is one question about one clip. Write a
runfunction, describe its arguments as a JSON schema, and register it. - Reproduce a result. Run an experiment on your own hardware and send the
provenance.jsonit writes.
Start with CONTRIBUTING.md, which covers setup, tests and how to add a tool, then open an issue on GitHub for anything bigger than a fix. If you use Whisper or another open ASR model for transcription, the open-source speech to text guide compares the apps built on it. WAYS is one of Mr Pirate's tools.
Sources
- WhatAreYouSaying README, version 0.4.1, read on 29 November 2026.
- J. Li, W. Monroe and D. Jurafsky, "Understanding neural networks through representation erasure", arXiv:1612.08220, 2016.
- A. Gertel, AADD: Automatic Audio Degradation Detection, version 3.1.0, 2026.
