Cactus Compute's Whistle Squeezes 7-Language Speech Recognition Into 16.9 MB
Cactus Compute's Whistle squeezes multilingual speech-to-text into a 16.9 MB CPU file that reportedly beats Whisper base with 9x less size and 6x speed.
Takeaways
- Whistle is a 16.9 MB on-device speech-to-text model from Cactus Compute, Apache 2.0 licensed.
- Supports English, German, French, Spanish, Italian, Dutch, Polish; up to 30 seconds of 16 kHz mono per pass.
- Claims it beats Whisper base on WER with roughly 9x smaller file and 6x speed on CPU.
- Shares the Needle C++ engine, so one binary turns audio into tool calls in a single call.
- Ships word timestamps, keyword biasing via Aho-Corasick, and speech embeddings from the encoder.
- Runs on 17 platforms including iOS, Android, WebAssembly, RISC-V and microcontrollers;
pip install cactus-needle.
Cactus Compute has released Whistle, an Apache 2.0 speech-recognition model designed to run entirely on a CPU. The 16.9 MB model transcribes English, German, French, Spanish, Italian, Dutch, and Polish, with automatic language detection and support for audio windows up to 30 seconds.
Because Whistle uses the same C++ engine and .cact container as Cactus Compute’s Needle language model, an application can add speech recognition without embedding another inference runtime. Cactus also reports lower word error rates than Whisper base on most of its listed tests, a model file roughly one-ninth the size, and six times the decoding speed in its Apple M4 Pro test. Those results are vendor-reported and use mixed runtimes and numerical precision.
Three outputs from one model
| Capability | Details |
|---|---|
| Transcription | Up to 30 seconds of 16 kHz mono audio per pass, with automatic or fixed language selection. |
| Word timestamps | Start time, end time, and probability for each word, derived from the decoder’s audio alignment. |
| Speech embeddings | One encoder vector every 80 milliseconds for matching, classification, or retrieval without generating a transcript. |
| Model format | A single 16.9 MB .cact file using 2-bit to 4-bit Cactus Quants. |
| Runtime | The CPU-focused C++ engine shared with Needle. |
Whistle also supports keyword biasing for names, places, brands, and domain-specific terms. During five-beam decoding, an Aho-Corasick matcher tracks requested keyword sequences and raises their scores. Candidate transcripts are ranked with length-normalized log probability over a vocabulary of 8,192 text pieces plus seven language tokens.
The compression lives in the runtime
Audio enters the model as log-Mel features, a compact representation of frequency and intensity over time. A convolutional stem reduces a full input window to 375 frames, which eight bidirectional Simple Attention blocks process together. Each block uses four hyper-connection residual lanes and Monarch Hadamard feed-forward layers, compact alternatives to conventional transformer components.
The Needle-derived text decoder reads those audio features through gated cross-attention at every layer. Cross-attention connects generated text tokens to relevant audio frames, while the gates control how much audio information enters each decoder layer. The same alignment supplies Whistle’s word timestamps.
Most of the deployment savings come from shared infrastructure. Whistle reuses Needle’s quantization format, SIMD CPU kernels, model container, and key-value cache. Its laddered decoder exposes every depth from two layers upward as a loadable submodel, selected with --audio-depth to trade accuracy for latency and compute.
Benchmarks need their footnotes
| Measure | Cactus result | Test conditions |
|---|---|---|
| Model file | 16.9 MB, compared with roughly 145 MB for Whisper base | Model artifact size rather than total application size or peak memory use |
| Accuracy | Lower word error rate than Whisper base on most listed comparisons | 86,174 utterances scored with Whisper normalizers |
| Speed | About six times Whisper base | Ten seconds of audio on an Apple M4 Pro, using each model’s official runtime and default settings |
| Precision | Whistle at 2-bit to 4-bit precision | Compared with Whisper at fp32 and Moonshine at int8 |
Cactus uses Whisper’s text normalizers, which standardize details such as punctuation and casing before calculating word error rate. Its Whistle scores come from the company’s evaluation, while the Whisper and Moonshine accuracy figures come from their respective papers. The mixed precision, hardware, and evaluation sources limit direct model-to-model conclusions. Full tables are available in the company’s benchmark post.
The published constraints shape deployment planning:
- Long recordings require orchestration. Podcasts, meetings, and videos need chunking, overlap handling, and transcript stitching.
- Streaming requires additional work. The default interface processes complete windows rather than exposing native incremental decoding.
- Language coverage is fixed. The release supports seven European languages and provides no English-only variant.
- Target hardware needs testing. The published speed result comes from an Apple M4 Pro and does not establish throughput on lower-power CPUs.
- The file size is only one measurement. Peak RAM, cache use, and total packaged runtime size require profiling in the host application.
A minimal Python path
Installation uses the cactus-needle package:
pip install cactus-needle
A transcription request can enable timestamps and bias decoding toward selected terms:
import needle
result = needle.transcribe(
"clip.wav",
word_timestamps=True,
keywords=["Cactus", "Needle"],
)
print(result["text"])
The result includes the transcript, detected language, time to first token in milliseconds, and decoder throughput in tokens per second. The package fetches the engine and model weights once, then caches them locally. Cactus also supplies a microphone playground and a comparison command for running Whistle, Whisper, and Moonshine on the same clip.
One runtime across CPU targets
Cactus advertises a broad target matrix for the shared engine:
| Category | Targets |
|---|---|
| Desktop and server | macOS; Linux on x86-64, ARM64, ARMv7, RISC-V, and MIPS32; Windows on x64 and ARM |
| Mobile and Apple devices | Android, iOS, watchOS, and tvOS |
| Web and components | Browser-based WebAssembly and a WASI component |
Applications that also load Needle can pass an audio clip and JSON tool definitions to the shared engine, which transcribes the speech, routes the request, and returns tool calls in one JSON response. The single API call wraps speech decoding and language-model routing as sequential work inside the same runtime. Audio can remain on the device throughout inference, while any later network activity depends on the selected tool and application design.
Whistle’s strongest fit is short, local voice interaction where storage, CPU latency, cloud cost, or audio handling constrain the product. Long-form transcription, native streaming, and broad multilingual coverage still require additional infrastructure or a larger model. For existing Needle deployments, the shared binary and model format make Whistle especially practical because speech recognition adds weights and integration code without adding another inference stack.