You have a working voice-enhancement model on a PC. Now you need it inside a product that ships on a Cortex-M-class MCU with tens of kilobytes of RAM, no GPU, no NPU, and an audio path that cannot tolerate buffering a whole sentence. This is the gap where many promising speech models die. The difference between a demo and a shipping feature is almost never the network architecture — it is the deployment engineering around it.
The three budgets, again
An embedded voice feature is constrained on three fronts at once, and a model that is "lightweight" on a server can still break all three on an MCU:
- Compute — measured in MMAC/s (millions of multiply-accumulates per second). Your audio feature competes with the rest of the firmware for every cycle.
- Memory — RAM for activations, state and buffers; Flash for weights and code. Both are often budgeted in kilobytes.
- Latency and causality — a live call needs the algorithmic delay in the tens of milliseconds, and processing must be frame-online and causal. You cannot wait for the full utterance.
There is a fourth, easily forgotten constraint: the inference runtime itself.
The hidden cost of an inference library
Most research models ship with a PyTorch or ONNX inference path. Porting that to a microcontroller can mean dragging in a runtime — TensorFlow Lite Micro, an ONNX runtime, CMSIS-NN glue, an interpreter — plus its own RAM, Flash and integration footprint. On a part with 90 KB of Flash to spare for the whole feature, the runtime can cost as much as the model. It also adds a build dependency, a version to maintain, and a porting surface for each target toolchain.
The plain-C advantage. An engine delivered as plain C with no inference-library dependency compiles straight into your existing firmware toolchain. No runtime to port, no interpreter overhead, no extra Flash tax — the model weights and the code are the footprint. This is the single biggest reason an embedded team can integrate a speech model in days rather than weeks.
What a frame-online, plain-C engine looks like
FlyDenoise is built for exactly this. It runs a frame-online, GTCRN-based graph that masks in the spectral domain and reasons causally per frame. Concretely, on a 16 kHz mono input:
- Frame size: a 512-point window with a 256-point hop at 16 kHz — a 32 ms window and a 16 ms hop.
- State between frames: only six small tensors, which is what keeps the RAM figure low and makes it genuinely streamable.
- No inference library: plain C, drops into an existing firmware build.
- Predictable latency: strictly per-frame causal processing, suitable for a real-time full-duplex voice path.
For comparison, the official GTCRN research implementation reports 48.2K parameters and 33.0 MMAC/s (the ICASSP 2024 paper states 23.7K / 39.6 MMAC/s; the repository later updated these). FlyDenoise's 25.1 MMAC/s is an engineering-trimmed build on that family of architecture — about 24% below the official baseline figure — specialised for the plain-C embedded target. The RNNoise vs GTCRN comparison covers how it relates to other lightweight models.
Integration: the steps that actually matter
- Lock the audio format. Feed 16 kHz mono. Resample and downmix upstream if your codec runs at another rate; the engine processes 16 kHz mono and returns plain 16 kHz WAV with no EQ, compression or gain applied, so it compares fairly against the original.
- Wire the frame loop. Call the process function once per 256-sample hop (16 ms). Keep the six state tensors alive across frames — do not reinitialise per frame.
- Budget the buffers. Account for the window, overlap and state in your RAM map, not just the model weights.
- Measure on the real clock. Per-frame time depends on the exact MCU and clock; profile on target, not on a dev board with a different core.
- Validate non-stationary noise on-site. Fans are easy; horns, wind and machine impacts are what separate engines. Test with your real acoustic environment.
- Plan for full-duplex. If the mic also hears a loudspeaker, noise suppression alone will not remove that echo — see why AEC needs a far-end reference.
Hear it on real scenes
These are recorded scenes at 16 kHz — a moving train and a lawn mower. Compare the noisy capture with the processed output; this is the kind of non-stationary sound a statistical suppressor struggles with:
Moving train
Lawn mower
A note on fairness. Our measured quality figures (mean PESQ 1.19 → 1.76, DNSMOS BAK 1.79 → 3.65, background noise in speech pauses down 17–24 dB) come from our own ten-scene set at 16 kHz mono. They are vendor-reported numbers on our test set — ask us for the conditions, and judge the audio with your own recordings.
From demo to shipping feature
The pattern that works on constrained hardware is consistent: a causal, frame-online model; a tiny, bounded state; plain-C code with no runtime to port; and honest, on-target profiling. Get those right and voice enhancement stops being a research demo and becomes a line item in your firmware. If your BOM locks you to a Cortex-M-class part and you need non-stationary noise handled in real time, that is the problem FlyDenoise is built around.
Evaluate it on your target MCU
Hear the ten real-scene demos, then contact us for an evaluation build and platform-specific MMAC, RAM, Flash and per-frame timing figures for your chip.
Hear the demos Request an evaluationCommon questions
Why can't I just port a PyTorch or ONNX model to an MCU?
The runtime itself — an interpreter or inference library plus its glue — consumes RAM and Flash, adds a build dependency and a porting surface per toolchain. On a part with only tens of kilobytes free, the runtime can cost as much as the model.
What does 'plain C, no inference library' actually give me?
The engine compiles into your existing firmware build with no runtime to port or maintain. The footprint is essentially the model weights plus the code — which is why integration can take days instead of weeks.
What are FlyDenoise's embedded figures?
25.1 MMAC/s, under 100 KB RAM, under 90 KB Flash, plain C, runnable on Cortex-M0-class parts. It uses a 512-point window with a 256-point hop at 16 kHz (32 ms window, 16 ms hop) and keeps only six small state tensors between frames.
What audio format should I feed it?
16 kHz mono. Resample and downmix upstream if your codec runs at another rate. The output is plain 16 kHz mono WAV with no EQ, compression or gain applied, so it compares fairly against the original.
Will noise suppression remove loudspeaker echo?
No. Echo needs a far-end reference and acoustic echo cancellation. If your mic hears a speaker, use a joint AEC engine such as FlyAec; FlyDenoise targets a single stream with no reference.