Skip to content
Sign in

/docs · VoiceLab · Practical

Test a noise filter before speech-to-text

Does noise suppression help your transcripts or hurt them? An A/B on your own calls in five steps: free filters (RNNoise, DeepFilterNet, ffmpeg), what the filter did to the audio, and the word error rate of your own STT.

Updated Nov 5, 2026

View as Markdown


A noise filter in front of speech-to-text sounds like a free win. It is not always one. A filter that empties the pauses also touches the speech, and a recogniser trained on noisy audio may do better with the noise than with what the filter leaves behind. Whether it helps is a question about your calls and your recogniser, and it takes an afternoon to answer.

This page is the method. We have tested one free filter ourselves, once, on 15 October 2026: RNNoise (model “bd”, through ffmpeg’s arnndn) in front of Whisper small and Whisper large-v3-turbo, on 24 read English sentences per condition with recorded street or restaurant noise, or a second voice, mixed in. It did no harm on clean audio or on the telephone band. Where we expected it to help, street noise as loud as the speech, it did not: the word error rate of Whisper small rose by 3.7 points (95 percent interval 1.4 to 6.6), and turbo showed no clear change. With restaurant noise 5 dB below the speech it made both worse, by 8.9 points for small (4.3 to 14.5) and 5.3 for turbo (1.4 to 11.6). With a second voice there was no clear difference. It did not clearly help anywhere. With 24 sentences per condition the intervals are wide, and we chose the conditions after a trial run with Whisper small. That is one filter, two sizes of one recogniser and read speech, not calls: it says nothing about DeepFilterNet, a paid filter or a recogniser with its own noise handling, which is why the A/B below runs on your own calls.

A second data point is about the recogniser alone: in a test of 1,248 transcriptions, Whisper held up in noise better than most people expect. Whisper large-v3-turbo got the location in a spoken message right on 71 to 85 percent of recordings with street noise or babble at 10 and 5 dB, against 81 percent on clean ones (Whisper small: 58 to 67, against 69). The full test has the setup and its limits.

What you need

  • 20 to 50 of your own calls, the kind your agent really gets, with what was said written out (a reference transcript). Calls with background noise matter most; add a few clean ones to see whether the filter costs you anything where there was nothing to fix.
  • Your own STT, the one you use in production. A filter that helps one recogniser can hurt another.
  • Python 3.9 or newer, ffmpeg, and two packages: pip install audiolabtools jiwer.
  • An AudioLab key for step 3, free with no card on /account. The first call works without one.

Recordings of calls usually contain personal data. Step 3 sends each file to the AudioLab API (hosted in the EU, only numbers come back); read /privacy first, or start with calls you are free to share.

1. Lay out the files

One folder per version, the same file name in each, and the reference text next to the original:

raw/call01.wav        refs/call01.txt
raw/call02.wav        refs/call02.txt
rnnoise/call01.wav    deepfilter/call01.wav

2. Make the filtered versions

All three are free. Use any of them, or your paid filter, as long as the output lands in its own folder.

# RNNoise, through ffmpeg's arnndn filter. It needs a model file (.rnnn), for example from the rnnoise-models repository.
mkdir -p rnnoise
for f in raw/*.wav; do ffmpeg -loglevel error -i "$f" -af "arnndn=m=sh.rnnn" "rnnoise/$(basename "$f")"; done

# ffmpeg's own FFT denoiser, nothing to download.
mkdir -p afftdn
for f in raw/*.wav; do ffmpeg -loglevel error -i "$f" -af "afftdn" "afftdn/$(basename "$f")"; done

# DeepFilterNet (MIT or Apache 2.0). Install torch first, then the package.
pip install deepfilternet
for f in raw/*.wav; do deepFilter "$f" --output-dir deepfilter; done

Check the names of what comes out: if a tool adds a suffix to the file name, rename the files so each version has the same names as raw/. DeepFilterNet works at 48 kHz. On 8 or 16 kHz telephone audio, check the sample rate of what comes out and convert it back to what your STT expects, so the comparison is about the filter and not about the rate.

3. See what the filter did to the audio

Before any transcript, measure each version. This is a measurement of the signal, not an AI judgement of it, and it tells you what kind of filter you have:

from audiolabtools import AudioLab

lab = AudioLab()  # reads AUDIOLAB_KEY
FIELDS = ["noiseFloorDb", "signalToNoiseDb", "speechRatio", "bandwidthHz", "clipping"]
for version in ("raw", "rnnoise", "deepfilter"):
    numbers = lab.ten_numbers(f"{version}/call01.wav", only=FIELDS)
    print(version, {f: numbers[f].value for f in FIELDS})

How to read it:

  • The noise floor drops and the signal-to-noise rises. That is what a filter is for, and every filter will win here, because it empties the pauses. So this number alone never decides: a filter that wins on signal-to-noise can still lose on the transcript.
  • The speech ratio drops. The filter is cutting into speech, often the soft starts and ends of words. That is the first thing to check against the transcripts. It is a proxy (an approximation), so treat a small change as a hint.
  • The bandwidth drops. The filter removes high frequencies along with the noise. Consonants like s, f and t live there.
  • Clipping appears where there was none. The filter raised the level. Fix that before you compare anything.

The five numbers cost two calls per file (the voice call and the signal call). Three versions of 50 calls is 300 calls, well inside the free 1,000 a month.

4. Transcribe every version and score it

Run every version through your own STT and compare each transcript with the reference. The word error rate (WER) counts the words that were wrong, missing or added, divided by the words in the reference:

import csv, re
from pathlib import Path

import jiwer
from audiolabtools import AudioLab

VERSIONS = ["raw", "rnnoise", "deepfilter"]
FIELDS = ["noiseFloorDb", "signalToNoiseDb", "speechRatio", "bandwidthHz", "clipping"]


def transcribe(path: Path) -> str:
    """Your own STT, the one you run in production. Return the text."""
    raise NotImplementedError


def words(text: str) -> str:
    # Score words, not punctuation or capitals: "Main St." and "main st" are the same answer.
    return re.sub(r"[^\w\s']", " ", text.lower()).strip()


lab = AudioLab()
rows = []
for ref in sorted(Path("refs").glob("*.txt")):
    reference = words(ref.read_text(encoding="utf-8"))
    for version in VERSIONS:
        audio = Path(version) / f"{ref.stem}.wav"
        if not audio.exists():
            continue
        numbers = lab.ten_numbers(audio, only=FIELDS)
        rows.append({
            "call": ref.stem,
            "version": version,
            "wer": round(jiwer.wer(reference, words(transcribe(audio))), 3),
            **{f: numbers[f].value for f in FIELDS},
        })

with open("ab_noise_filter.csv", "w", newline="", encoding="utf-8") as f:
    writer = csv.DictWriter(f, fieldnames=list(rows[0]))
    writer.writeheader()
    writer.writerows(rows)

# Paired: the same call with and without the filter, so the call itself is not part of the difference.
raw = {r["call"]: r["wer"] for r in rows if r["version"] == "raw"}
for version in VERSIONS[1:]:
    pairs = [(raw[r["call"]], r["wer"]) for r in rows if r["version"] == version and r["call"] in raw]
    if not pairs:
        continue
    better = sum(after < before for before, after in pairs)
    worse = sum(after > before for before, after in pairs)
    mean = sum(after - before for before, after in pairs) / len(pairs)
    print(f"{version}: {len(pairs)} calls, {better} better, {worse} worse, WER {mean:+.3f} on average")

5. Decide

  • Keep a filter only if it wins on the transcripts, not on signal-to-noise. Look at the noisy calls and the clean calls separately: a filter that helps in a busy street and costs you words in a quiet office may still be the wrong default.
  • Count the calls, not only the average. “31 better, 4 worse” says more than a mean that one bad call can move. Listen to the calls that got worse: that is where the filter’s habits show.
  • Mind the size of your test. In our own test, 48 recordings per condition gave a margin of about 13 points on a percentage. A difference of a few points between two filters on 30 calls is a hint, not a result. Pairing the same calls helps; more calls help more.
  • Test again when something changes: a new STT model, a new codec in the call path, a new kind of caller.

What this page does not do

  • It has no verdict on your filter or your calls. Our one filter test, above, used read English sentences and Whisper only; when we run this A/B on real calls, the result goes on the studies page with its criteria set first.
  • AudioLab does not transcribe and does not predict transcription errors. In our own test, signal-to-noise and the scene measures did not predict which recordings Whisper got wrong. The transcript is the judge here; the measurements say what the filter did to the signal.
  • The Whisper numbers in the third paragraph are from synthetic voices, Dutch text and Whisper only; the filter numbers in the second are from read English sentences with noise mixed in, and Whisper only. Your recogniser, your language and your callers may behave differently, which is the reason for doing this on your own calls.

Related: Read the audio before you transcribe · Compare voice-agent and TTS vendors · Check audio quality in CI

Next in VoiceLab docs

Let your Pipecat agent know when the call broke up →

A pass-through processor for Pipecat that measures the caller and the bot while they talk: dropouts, clipping, level drops, dead air and hum. Turn an event into a note in the LLM context, so the bot asks the caller to repeat instead of answering half a sentence. The audio stays on your machine.

More in VoiceLab docs