LLM Hub Studio · Blog

Speech Recognition Without the Cloud: Whisper On-Device in Production

How on-device Whisper transcription works in production: accuracy, latency, privacy and battery trade-offs for speech recognition that never leaves the phone.

Speech Recognition Without the Cloud: Whisper On-Device in Production

Speech recognition used to mean sending audio to a server and waiting for text to come back. That model works, but it has obvious costs: it needs a connection, it sends a recording of someone's voice to a third party, and every minute of audio adds to a server bill. For many apps, none of that is necessary any more. A modern phone can turn speech into text entirely on-device, and the most widely known model for doing it is Whisper.

This guide explains what on-device Whisper transcription involves in production: how it works, where accuracy comes from, what it costs in battery and latency, and the mistakes that turn a promising demo into an app users delete.

What "on-device" actually means

On-device speech recognition means the audio is processed by a model that lives inside the app, on the user's own phone. The recording is captured by the microphone, converted into text by the model, and the result is shown or stored locally. No audio file is uploaded, no transcript is fetched from an API, and the feature keeps working with no signal at all.

That is a stronger claim than it sounds. Many apps describe themselves as private while still sending audio to a cloud service for transcription or analytics. If the audio leaves the device for any reason, the privacy story changes. True on-device transcription keeps the raw audio on the phone from capture to transcript.

LLM Hub, the studio's own app, takes this approach across the board: it runs AI models entirely on the phone, with no sign-in, no accounts, and no tracking, so prompts, images, and outputs never leave the device. Its transcriber, powered by Whisper, is one example of that philosophy in a single feature: voice in, text out, nothing uploaded.

How Whisper-style transcription works

Whisper-style models do not listen for individual words the way older systems did. They work in a pipeline that looks roughly like this:

First, the app captures audio and cleans it up. Raw microphone audio is messy: background noise, room echo, volume changes, and long silences. A production app usually applies voice activity detection first, detecting when someone is actually speaking and skipping the silences, which can cut processing time dramatically.

Next, the audio is converted into a spectrogram, a representation of sound over time showing which frequencies are present at each moment. The model reads that representation rather than the raw waveform, which makes it more robust to different microphones and recording conditions.

Then the model itself runs: an encoder reads the spectrogram and builds an understanding of the sounds, and a decoder turns that understanding into text, one piece at a time. It predicts the most likely next word given everything it has heard so far, which is why it handles natural sentences and context better than older keyword-based systems. It can also detect the language being spoken.

Finally, the app post-processes the text: punctuation, sentence breaks, and readable handling of numbers and names. Raw model output is often usable but rough; the polish that makes a transcript pleasant to read happens here. None of this requires a server. The whole pipeline runs on the phone's processor, increasingly with help from its neural engine.

Model size is the central trade-off

Whisper-style models come in a range of sizes, from very small models that run fast on almost any phone to much larger models that are more accurate but far heavier. Choosing between them is the single most important production decision, and there is no universally right answer.

Smaller models are fast, use less memory, and barely touch the battery. They are a good fit for short voice notes, voice commands, and live captions where speed matters more than perfect accuracy. Their weakness shows up on difficult audio: strong accents, overlapping speakers, heavy background noise, or specialist vocabulary can all push their error rate up noticeably.

Larger models handle those hard cases better. They recognise more words correctly, cope better with noise, and make fewer strange substitutions. But they need more memory, take longer to load, process audio more slowly, and generate more heat on long recordings. On an older or budget phone, a large model may be unusable in practice, even if it looks better in a demo on a flagship device.

Most production apps solve this by offering a choice rather than picking one model for everyone: a small model as the default, with a larger model as an optional download for users who want better accuracy and have a capable phone. The download itself deserves thought, too. A speech model is a large app asset, so shipping it as an optional, clearly explained download, with progress shown and the ability to delete it later, is far better than bundling it silently into the initial install.

Streaming versus file transcription

There are two different ways to ship on-device transcription, and they suit different products.

File transcription processes a finished recording: a voice memo, an interview, a lecture, a meeting note. The app can take its time, process the audio in chunks, and optimise for accuracy rather than speed. This is the easier mode to ship well, and it is where on-device transcription shines first, because the user is not waiting on a live result.

Streaming transcription, sometimes called live transcription, converts speech to text as the person speaks, for captions or live notes. This is harder. The app must process audio in near real time, show partial results that may be corrected as more context arrives, and keep latency low enough that the text feels connected to the speech. A delay of a second or two is acceptable for captions; much more than that feels broken.

Streaming also changes the battery equation, because the model runs continuously rather than in bursts. Apps offering live captions need an easy way to pause or stop, rather than transcribing silently in the background. For a first version, file transcription is almost always the right starting point: it lets a team validate accuracy, model choice, and the interface before taking on the harder real-time problem.

Accuracy in the real world

Demo accuracy and real-world accuracy are different things. A model tested on clean, studio-recorded speech will look impressive; the same model handed a phone recording from a cafe, a car, or a windy street will make more mistakes, and users judge the feature on those hard recordings.

The factors that matter most are predictable. Background noise comes first: music, traffic, other conversations, and wind all compete with the speaker's voice. Distance from the microphone is second: a phone held at arm's length captures far worse audio than one held close. Accents and speaking speed are third, and smaller models struggle most with fast, mumbled, or heavily accented speech. Finally, vocabulary matters: medical terms, legal language, product names, and proper nouns are all harder than everyday words.

None of this means on-device transcription is unreliable. It means expectations need to be set honestly, and the product needs to help the user get a good result: prompting the user to hold the phone closer, showing a live audio level, warning when background noise is high, and making it easy to edit a transcript after the fact. A transcript that is mostly correct and easy to fix is far more useful than one that claims perfection and hides its errors. Language support needs the same real-world testing: accuracy varies by language, so a target language should be tested on real recordings from real users, not assumed from a model card.

Privacy is the reason many teams choose on-device

For a growing number of products, privacy is not a bonus feature; it is the reason to build the feature at all. Doctors dictating notes, lawyers recording client conversations, journalists interviewing sources, and employees capturing internal meetings all have good reason not to upload audio to a third party.

On-device transcription answers that concern directly, but only if the whole product honours it. If the transcript is later synced to a cloud backup, shared with an analytics service, or sent to a server for "improvement," the privacy benefit is gone, even though the transcription itself ran locally. Teams that market privacy need to audit the full data path, not just the model.

There is also a simpler trust benefit. Users increasingly assume that anything uploaded may be retained or reviewed. An app that can truthfully say "your voice never leaves your phone" removes that worry entirely. OpenSleep, another app from the same studio, applies the same principle to sleep data: it tracks sleep on the phone itself, with no wearable and no server. Keep sensitive data on the device, and the product does not need to ask users to trust a server at all.

Battery, heat, and real-device testing

The hardest production problems with on-device speech recognition are not about the model. They are about the phone in someone's pocket.

A model that runs beautifully on a new flagship may crawl on a three-year-old budget phone, and may overheat on a long recording even on a good device. Heat is the silent killer: a hot phone slows its processor down to protect itself, which makes transcription slower and the session longer, generating more heat. Testing only on the developer's own phone hides all of this.

Good production practice means testing on a range of real devices, not just emulators: old and new, high-end and budget. It means testing long recordings, not just thirty-second clips, and measuring battery use over a full session, with safeguards such as pausing when the phone gets hot and offering the smaller model automatically when the device struggles. Android phones in particular vary enormously in processor and memory, so device-aware defaults beat one fixed configuration.

When cloud transcription still makes sense

Honesty requires saying when on-device is not the best choice. Cloud transcription still wins in a few clear cases.

If the audio is extremely difficult — multiple overlapping speakers, very noisy environments, or rare specialist vocabulary — a large cloud model will usually be more accurate. If the app needs to transcribe many hours of audio quickly, in parallel, a server farm will beat a phone. And if the target audience uses very old devices that cannot run a local model at all, cloud may be the only viable option.

Some teams ship a hybrid: on-device by default, with an optional cloud mode the user explicitly enables for difficult recordings. What matters is that the choice is explicit and the user understands what changes when they switch.

A production checklist

For teams planning to ship on-device speech recognition, the checklist that matters most is short:

Choose the model size for the real use case, not the demo, and offer a larger model as an optional download. Add voice activity detection so silences are not processed. Design for noisy, real-world audio, and make transcripts easy to edit. Test on a range of real devices, including older and budget phones, over long recordings. Audit the full data path so a privacy claim about transcription is true of the whole product. And be honest about the trade-offs in the product itself: speed, accuracy, battery, and privacy cannot all be maximised at once.

Speech recognition without the cloud is no longer a research demo. It is a shipping feature, running on phones people already own. Teams that get the trade-offs right — model size, real-world accuracy, battery, and honest privacy — will ship a feature users trust enough to use every day.

If you are building an app with speech, transcription, or any on-device AI feature, LLM Hub Studio can help. We are an Australian software studio specialising in on-device AI app development: private, offline-first AI that runs on phones, laptops, browsers, and edge hardware. You can reach us at timmy@llmhub.com.au or visit https://www.llmhub.com.au to see our work, including LLM Hub and OpenSleep.

on-device AIspeech recognitionWhisperoffline AIAI app development

Questions

Can speech recognition really run entirely on a phone?

Yes. Modern phones can run a speech recognition model locally, turning recorded audio into text without sending anything to a server. The phone needs to download the model once, after which transcription works offline, including in airplane mode or places with no signal.

Is on-device transcription as accurate as cloud transcription?

For clear, everyday speech it is close, and for many uses it is more than good enough. Cloud services still have an edge on very noisy audio, heavy accents, or specialist vocabulary, because they can run much larger models. On-device accuracy depends heavily on the model size you choose and how well you handle noise and pauses in the audio.

Does on-device speech recognition protect privacy?

It removes the biggest privacy risk: the audio never leaves the device, so there is no recording stored on a server, no transcript sent over a network, and no third party that could retain or review it. That matters for medical notes, legal conversations, interviews, and any recording a user would not want uploaded.

Why does on-device transcription drain battery or heat up a phone?

Transcription is continuous computation. The model processes audio in small chunks, and on a long recording that work adds up, warming the processor and using battery. Good production apps manage this with smaller models for long sessions, pauses when nobody is speaking, and background limits that keep the phone usable.

When should an app still use cloud speech recognition?

Cloud recognition still makes sense when accuracy on difficult audio matters more than privacy or offline use, when the app needs real-time captions for many speakers at once, or when the target devices are too old or low-powered to run a local model well. Many teams ship both: on-device by default, with cloud as an opt-in fallback.