When Whisper fails on a noisy segment, raising the sampling temperature and trying again can rescue it. whisper.cpp supports this with –temperature, which sets the starting temperature, and –temperature-inc, which sets how much it rises on each retry. This guide sets both and checks a noisy clip.
Before you start
- whisper.cpp built, with whisper-cli on your PATH, and a model file such as ggml-base.en.bin.
- An audio clip with a noisy or mumbled passage.
- A terminal.
Prepare the clip
Save the clip as clip.wav in 16 kHz mono WAV format. Mark the noisy passage and write down what you think was said, so you can judge whether the retry helped.
Set the temperature steps
Run with a starting temperature of 0 and an increment of 0.2:
./build/bin/whisper-cli -m models/ggml-base.en.bin -f clip.wav --temperature 0 --temperature-inc 0.2
The default temperature is 0 and the default increment is 0.2, so this call makes the behaviour explicit rather than changing it. To try a warmer start, use –temperature 0.2.
Compare with a fixed temperature
Run the same clip with fallback disabled by setting the increment to 0, and compare the noisy passage in both transcripts. The fallback run should have fewer garbled words in the noisy passage, because the retries gave the model more chances to decode it.
Worked example
Worked example: a 90-second clip where a speaker mumbles a street name. With a fixed temperature of 0, the name may come out as a garbled guess; with the fallback from 0 rising by 0.2, the retry may produce the correct name. Count the wrong words in the noisy passage for each run.
Expected result
UNTESTED in this guide: no transcription was run while writing it. The expected result is that the fallback run has fewer garbled words in the noisy passage than the fixed-temperature run.
Limitations
Temperature fallback only retries segments that fail the quality checks, so clean audio is unaffected. A high starting temperature makes the output more random, so keep the start at 0 and let the fallback do the work.
