A Coding Guide to Cactus Whistle: Does a 16.9 MB Speech Model Hold Up Against Whisper Base? Word Error Rate, Speed, Streaming, Timestamps, Keywords, and Speech-to-Tool Calls on a CPU
In this tutorial, we use Whistle, Cactus Compute’s speech-to-text model, a 16.9 MB file that runs on a CPU, transcribes seven languages, and returns word timestamps and probabilities.The model card claims it beats Whisper base on LibriSpeech; we test it on seeded test-clean and test-other samples, comparing Whistle with Whisper tiny and base on identical clips, judged by paired speaker-cluster intervals with Holm correction.
We find a lead over greedy Whisper base on test-other, no significant gap against beam search, and a speed advantage that narrows as clips grow.Beyond the headline, we probe a 30-second window where the pinned engine silently drops the middle of longer audio, plus streaming latency, timestamps, keyword biasing, other languages, noise, embeddings, and speech-to-tool calls.
Our figures are one-run samples from an Apple M4, and published full-split numbers are quoted, not measured.
We install cactus-needle 3.2.0 with its dependencies pinned and turn off its anonymous telemetry.The package downloads Whistle’s weights, its engine and Needle 3’s weights from Hugging Face repositories whose files are replaced in place, so we pin both repositories to fixed revisions and print SHA-256 hashes.
The page() helper reads the datasets-server rows API with rate-limit backoff, and load_audio() resamples clips to 16 kHz.The first test-clean clip, 3.5 s of speech, transcribes in 33 ms of wall time, each word carrying its start, end and probability.
A verdict means little if its rule is set after the final numbers arrive, so we wrote ours into the notebook before the final run, after exploratory probes that touched some of the same clips.We draw a seeded sample of 300 rows per split and drop clips longer than Whistle’s single-pass window, leaving 299 clips in each.
The paired subsets, the first 100 test-other and 60 test-clean clips, go through Whisper, and few speakers make their intervals approximate.A difference counts only when its 95% paired speaker-cluster bootstrap interval excludes zero and its Holm-adjusted p is below 0.05.
Whisper’s default decoder is greedy with temperature fallback.At the same time, the paper’s LibriSpeech numbers come from beam search, and Whistle decodes with a five-beam search, so every comparison must name its baseline.
Scored with one normaliser, Whistle’s WER is 10.47% on the test-other sample, near the published full-split 10.49, which we quote rather than measure.On the paired subset it scores 10.27%, against 12.46% for greedy Whisper base and 10.83% for beam search.
The 2.19-point lead over greedy survives the Holm correction, but the beam gap does not, so the baseline wins.
Speed comparisons fail when engines share a process, since torch threads can slow one.Each engine therefore runs in a fresh process on identical float32 arrays, timed as a median after warm-up.The gap narrows as clips grow, from 7.7 times Whistle’s time at 5 s to 2.8 times at 30 s, partly from Whisper’s fixed padding window.
Peak memory is 124 MB for Whistle and 823 MB for Whisper base.Whistle’s per-clip time differed nearly threefold between the two splits, which clip length does not explain, so treat the ratios as approximate.
Joining one speaker’s utterances gives a long clip with an exact reference, and the README promises windowing beyond the 30 s limit.A shorter cut comes back almost word for word, but the pinned 3.3.0 engine silently drops the middle of the full clip, returning fewer than half its words with no error.
The 3.2.0 engine refuses such audio with a RuntimeError instead, so the two builds disagree and the split is ours to make.Splitting at quiet points scores 3.75% WER against 6.74% for fixed windows, though one clip cannot settle it.
Streaming through stream() re-transcribes recent audio, committing a word once two consecutive passes agree, so waits grow with chunk size.Eight same-speaker sessions, made by joining utterances, stream in one-second chunks at 10.05% WER, against 10.41% when the same utterances are transcribed one at a time, a non-significant difference.
A word is committed a median 1.68 s after it ends, and on two sessions the median rises from 0.78 s at half-second chunks to 3.44 s at two-second chunks.The joins are artificial, so this tests the mechanism, not conversation.
Without gold alignments, we check timings against what they must satisfy.Word times are monotonic on every clip we check, and prepending a two-second silence to twenty clips shifts the first word by a median of 2.000 s.
Cutting at a word’s end should reproduce its prefix, which holds on only a fifth of those twenty clips; this tests stability, not end-time accuracy.Probability is the stronger signal: words rated below one half were wrong 69.2% of the time, against 2.5% at 0.9 or above, and AUROC is 0.916 for wrong words, against 0.509 for duration.
Keyword biasing needs controls, because an oracle that reads the answer looks like a win. The oracle lists the words Whistle got wro