Transcription loops on non-English (Italian) audio — Greedy best_of=1 causes repetition
Bug
When processing Italian audio files via minutes process, the transcription falls into a repetition loop, producing gibberish like:
[0:00] "H Damn ya 18 Anno!"
[0:03] "...H- Hug o F- Ok預備 le Macedi diesel Only tr cloudy"
[0:31] *Risate* "H- Hug o F- Ok, bebe le Macedi diesel Only tr cloudy"
[0:55] *Risate* "H- Hug o F- Ok, bebe le Macedi diesel Only tr cloudy"
...
The same audio file transcribes perfectly with whisper-cli (the whisper.cpp CLI) using the same ggml-small.bin model:
[00:00:00.000 --> 00:00:06.160] Sì, è che avrà molto spesso di essere incastrato.
[00:00:06.160 --> 00:00:11.840] Bene, allora ho sentito Giuseppe che mi ha detto che aveva un problema...
Environment
- minutes 0.7.3 (built from source with
--features metal) - macOS 15, Apple M4
- Model:
ggml-small.bin(466MB) - Config:
language = "it"in[transcription] - Audio: 30-minute Italian meeting recording (.m4a, 30MB)
Root cause
transcribe.rs line 91 uses:
let mut params =
whisper_rs::FullParams::new(whisper_rs::SamplingStrategy::Greedy { best_of: 1 });
The whisper.cpp CLI defaults are best_of=5, beam_size=5, entropy_thold=2.4, logprob_thold=-1.0, temperature=0.0, temperature_inc=0.2. These defaults exist specifically to prevent decoder loops: when a segment's entropy exceeds the threshold, whisper.cpp retries at a higher temperature, breaking the repetition cycle.
With Greedy { best_of: 1 } and no entropy/logprob thresholds, the decoder gets stuck on a low-confidence segment and repeats it for the rest of the audio.
What I tried
I tested three patches locally:
Greedy { best_of: 5 }+ entropy/logprob thresholds +set_temperature(0.0)+set_temperature_inc(0.2)→ Still loops (different pattern: "Ok, bene, vedi?" repeated)BeamSearch { beam_size: 5, patience: 1.0 }+ same thresholds → Still loops (pattern: "Morso" repeated)Greedy { best_of: 5 }alone → Still loops (original pattern)
All three produced loops, while whisper-cli -l it -f same_audio.wav with the same model works perfectly.
Likely missing piece
The whisper.cpp CLI does WAV pre-processing (resampling to 16kHz mono via ffmpeg/libsndfile) before passing samples to the whisper engine. Minutes uses symphonia for decoding, which may produce slightly different sample values or handle silence differently.
Additionally, whisper-cli has implicit silence handling that prevents the decoder from hallucinating during quiet segments. Minutes passes all samples (including silence) directly to whisper-rs, which can trigger the repetition loop.
Suggested fix
One or more of:
- Match whisper.cpp CLI defaults in
transcribe.rs:best_of=5,entropy_thold=2.4,logprob_thold=-1.0,temperature_inc=0.2 - Add a VAD (Voice Activity Detection) pre-filter to skip silence chunks before passing to whisper — this is likely the key difference vs whisper-cli
- Add
suppress_blank = trueto prevent blank/repeated token hallucinations - Segment long audio into chunks (e.g. 30s) with overlap, transcribe each chunk separately, then merge — this prevents the decoder from accumulating errors over long sessions
Workaround
Use whisper-cli directly for transcription (especially for non-English audio), then use Minutes for search/list/MCP features on the resulting markdown files.
Hey @magno73, thanks for opening this! 👋
Minutes is actively maintained and we read every issue. If you're interested in tackling this yourself, check out CONTRIBUTING.md to get started.
We'll take a look soon.
Hey @magno73, thanks for the thorough analysis — this was a great bug report.
We shipped a fix in 78cf549 that matches the whisper.cpp CLI decoding defaults:
Greedy { best_of: 5 }(wasbest_of: 1)entropy_thold = 2.4,logprob_thold = -1.0— flags high-entropy / low-confidence segmentstemperature_inc = 0.2— retries at higher temperature when a segment looks stuckno_speech_thold = 0.6— silence detectionsuppress_blank = true— suppresses blank/repeated token hallucinations
We also added a separate streaming_whisper_params() for latency-sensitive dictation that keeps best_of=1 but still sets the thresholds.
That said — I saw in your report that you tried similar parameter changes and still hit loops, which points to the audio preprocessing path (symphonia resampling vs whisper-cli's ffmpeg pipeline) as a possible remaining factor. If the parameter fix alone doesn't resolve it for your recording, the next steps would be investigating the resampling quality and potentially adding a VAD pre-filter as you suggested.
Could you test with the latest main and let us know if this helps with your Italian audio? Building from source:
git pull origin main
cargo build --release --features metal
If you're still seeing loops, sharing a short (30s) sample clip that reproduces the issue would help us debug the preprocessing path.
Thanks for the quick fix @silverstein! Unfortunately the parameter changes alone don't resolve it for this recording.
I just tested with the latest main (commit after 78cf549) built with --features metal on the same Italian .m4a file:
[0:00] "Tempo a me"
[0:30] "Tempo a me"
[1:00] "Tempo a me"
...
Still looping, just a different pattern (was "bebe le Macedi diesel", now "Tempo a me"). 1020 words output for a 60-minute recording that produces ~5900 words with whisper-cli -l it.
This confirms the issue is in the audio preprocessing path (symphonia decoding) rather than the whisper parameters. The same ggml-small.bin model with whisper-cli (which uses ffmpeg for resampling to 16kHz mono WAV) works perfectly on the exact same file.
I'll try to isolate this further:
- Pre-convert to WAV with ffmpeg, then feed the WAV to
minutes process— if this works, it confirms symphonia's m4a decoder is the issue - Compare the raw PCM sample values between symphonia and ffmpeg outputs
Happy to share a 30s clip that reproduces the issue if that helps. The recording is a multi-speaker Italian phone call recorded on iPhone (m4a/AAC).
Update: confirmed — it's the symphonia m4a decoder, not the whisper parameters.
I pre-converted the same .m4a file to 16kHz mono WAV with ffmpeg before feeding it to minutes process:
ffmpeg -i "Zhou Diego 2.m4a" -ar 16000 -ac 1 preconverted.wav -y
minutes process preconverted.wav --content-type meeting
Result: 5734 words, perfect Italian transcription:
[0:00] Sì, erica, avrà molto spesso di essere incastrato.
[0:06] Bene, allora ho sentito Giuseppe che mi ha detto che aveva un problema...
[0:37] Parto al personale. Allora ti confermo intanto che il pasticciere signor...
vs the same file processed directly as .m4a: 1020 words, "Tempo a me" loop.
Same model, same whisper params, same binary. The only difference is symphonia's AAC/m4a decoding vs ffmpeg's.
Suggested fix: For non-WAV inputs, shell out to ffmpeg for resampling (if available on PATH) and fall back to symphonia only when ffmpeg is not installed. This is what whisper-cli does and it's rock solid for all codecs/languages.
Alternatively, adding an ffmpeg pre-conversion step in the load_audio_samples() function for m4a/mp3/ogg would be a minimal change.
Update: We've shipped a deeper fix targeting the remaining root causes you identified. This will be in the next release.
What's new (on top of the parameter fix in 78cf549):
1. Silero VAD integration — minutes now uses whisper.cpp's built-in ML-based Voice Activity Detection (the same one whisper-cli uses internally). This was the key missing piece — our previous energy-based silence detection was too crude and could miss silence segments that trigger hallucination loops. The Silero VAD model (~2MB) is auto-downloaded during minutes setup.
2. Post-transcription repetition detection — Safety net: if 3+ consecutive segments have >80% text similarity, they're collapsed to a single occurrence. This catches any loops that slip through VAD.
3. no_speech probability filtering — Segments where whisper reports >80% "no speech" probability are now filtered out before they reach the transcript.
All three layers work together — VAD prevents most loops at the input level, no_speech filtering catches bad segments at the output level, and dedup is the final safety net.
To test from source:
git pull origin main
cargo build --release --features metal
minutes setup --model small # Also downloads Silero VAD model now
minutes process your_italian_audio.m4a --language it
@magno73 — would love to know if this resolves the issue with your Italian recordings. If you can share a short sample clip that reproduces the problem, that would also help us add a regression test.
Tested with latest main (f19c71a — VAD silence stripping + sinc resampler). Still getting 1020 words / "Tempo a me" loop on the m4a.
The commit f19c71a title mentions "VAD silence stripping and sinc resampler" but I don't see Silero VAD integration in the built binary — minutes setup --model small only downloads the whisper model, no separate VAD model. Maybe the Silero integration mentioned in your comment isn't on main yet?
For reference, the pre-converted WAV test still works perfectly (5734 words) on this same build. So the symphonia m4a decoding path is definitely the bottleneck.
Happy to test again when the deeper fix lands on main!
Sorry, on it, going to take another pass at this!
Didn't commit all the changes I had made. Wrapping up in a few.
Here's a 30-second sample clip that reproduces the issue:
Repo with sample: https://github.com/magno73/minutes-issue-21-sample
Direct download: sample-30s-italian.m4a (493 KB)
Multi-speaker Italian phone call recorded on iPhone (m4a/AAC).
minutes process (m4a → symphonia):
[0:00] tui mamma!
[0:12] beh, da me lo sapevo di già, perché vado a te l'unco...
[0:29] per aver visto un'altra casa, per aver visto un'altra casa, per aver visto un'altra casa...
whisper-cli (same model, same file pre-converted to WAV with ffmpeg):
[00:00:00 --> 00:00:06] Sì, è che avrà molto spesso di essere incastrato.
[00:00:06 --> 00:00:11] Bene, allora ho sentito Giuseppe che mi ha detto che aveva un problema...
Verified fix with your sample clip — the ffmpeg decoder path resolves the issue completely.
Tested sample-30s-italian.m4a from your repo with the latest main (b6f51e5):
[0:00] Molto, si, erica, verrà molto spesso di essere incastrato.
[0:06] Bene, allora ho sentito Giuseppe che mi ha detto che aveva un problema eccetera eccetera,
[0:12] poi lo sento giovedì su altre cose.
[0:14] Io allora vado a luci un po' di temi, non chiamo la torre capa perché in realtà non
[0:19] ho molto tempo, te lo mandrò dopo, però vado su un po' di temi che mi sono segnata, così
[0:23] almeno hai un po' di aggiornamenti.
[0:25] Poi appliceremo delle multe.
[0:27] [Musica]
8 segments, 87 words, proper Italian. No loops. Auto-detected it with p = 0.994.
What's on main now:
-
ffmpeg preferred decoder — For non-WAV formats (m4a, mp3, ogg),
minutesnow shells out toffmpegfor decoding when available. Falls back to symphonia if ffmpeg isn't installed. This was the root cause — symphonia's AAC decoder produces subtly different samples that trigger whisper hallucination loops. -
Silero VAD integration — When the VAD model is downloaded (
minutes setupdoes this automatically), whisper.cpp's built-in ML-based VAD skips silence segments during transcription. -
Post-transcription dedup — Safety net that collapses 3+ consecutive near-identical segments.
-
no_speech probability filtering — Skips segments where whisper reports >80% "no speech" confidence.
To test:
git pull origin main
cargo build --release --features metal
minutes setup --model small # Downloads whisper + VAD models
minutes process your_italian_audio.m4a -t memo
Requires ffmpeg on PATH for the m4a fix (most systems: brew install ffmpeg / apt install ffmpeg). Without it, symphonia is still used as fallback with the other three layers of protection.
Thanks for the thorough debugging and the sample clip @magno73 — that made it possible to verify the fix!
Feel free to reopen if this doesn't work though! Super appreciate the feedback and help!
Just tested with latest main (b6f51e5) — works perfectly! 🎉
5734 words, proper Italian, no loops, direct m4a processing:
decoded audio with ffmpeg (16kHz mono WAV)
transcription complete — segments=820, words=5734
[0:00] Sì, erica, avrà molto spesso di essere incastrato.
[0:06] Bene, allora ho sentito Giuseppe che mi ha detto che aveva un problema...
[0:37] Parto al personale. Allora ti confermo intanto che il pasticciere signor...
67 seconds for 30 minutes of audio on Apple M4 with Metal. Incredible turnaround on this fix — from report to verified resolution in under 3 hours. Thanks @silverstein! 🙏
One minor note: the Silero VAD model download returns a 404 from HuggingFace (https://huggingface.co/ggerganov/whisper.cpp/resolve/main/ggml-silero-vad.bin), but the ffmpeg decoder path makes it work regardless.
Good catch on the VAD model URL — you're right, that file never actually existed in the ggerganov/whisper.cpp HuggingFace repo. The ggml-converted Silero VAD models live in a separate repo.
Fixed in 4146677:
- Download URL: now points to
ggml-org/whisper-vad(the official repo) and pullsggml-silero-v6.2.0.bin(~885 KB) - Backward compat: if anyone manually placed a
ggml-silero-vad.bin, it still resolves - Health check:
minutes healthnow reports the correct path
After updating, run minutes setup again and the VAD model will download successfully. With Silero VAD enabled, whisper skips silence segments natively — so you'll get even cleaner output on that Italian audio (no energy-based pre-processing needed).
No npm update required — this is purely in the Rust CLI/core.