Ears and Eyes on a Phone: Voice and Vision in Atlas

November 2026 · 13 min read

In July, Atlas could read. It searched your notes, calendar and documents and answered from them with a small model on the phone. Between August and November it learned to listen and to see: a Transcribe tab that writes down a meeting as people talk and labels who said what, a chat that answers questions about a photo, and a camera mode called Look that watches a spot for you. All of it runs on the device.

The features were the easy part. A phone running two neural networks at once fails in ways Swift never gets to see, and several bugs in this post left no crash report, error or log line behind. The app was simply gone. So this is the story of those four months told mostly through the bugs, because that's where I learned the most.

Atlas series

  1. Fitting a Second Brain Into 8,192 Tokens (the July original)
  2. Taming Small Models That Don't Speak Your Tool Protocol
  3. Retrieve, Then Generate: Closing the Speed Gap on a Phone
  4. Letting the Network In Without Letting the Data Out
  5. Ears and Eyes on a Phone: Voice and Vision in Atlas
  6. The Experiments I Didn't Ship
  7. Atlas, July to November

First, a transcript you record and then read

The first version, in early August, was deliberately boring. You tapped record, Atlas wrote a WAV file to a temporary folder, and when you stopped, WhisperKit transcribed it with Whisper running on Core ML. The transcript became an ordinary document in the knowledge base, so "what did we decide about the launch?" could find it later in chat like any note.

A phone can't comfortably hold a chat model and a speech model at the same time, so the chat model is suspended for the length of a transcription job and warmed again afterwards. Hold on to that idea, because in September it turned out to be a lie.

The first device bug set the tone for the autumn. The Transcribe tab said "not available in this build" on real iPhones and worked on my Mac. The deepest of its three causes was in model loading: when WhisperKit can't find tokenizer.json locally, it quietly falls back to fetching it from Hugging Face. I had pointed it at the model folder but never at a tokenizer folder, so an "offline" load was never offline. On a Mac with a network you'd never notice.

Going live: from a spike to Parakeet

On 1 September I started a throwaway spike: swap Whisper for NVIDIA's Parakeet running through FluidAudio, with an end-of-utterance streaming model and real-time speaker diarization. Whisper is a batch model; to fake streaming it keeps re-decoding a sliding window of audio and revising what it already said. Parakeet has a real streaming decoder, so text appears as you speak and mostly stays put.

A week later the separate "Live" tab was gone and Transcribe showed text while you talked. It defaulted to Parakeet TDT v3, which covers 25 languages and in my release notes measured roughly 20 times faster than the model the old tab used. Later in September Nemotron Multilingual became the default (low latency, about 40 languages) and NVIDIA's Nemotron 3 speaker model took over diarization, following up to eight speakers.

Two bugs from that first week quietly deleted speech, and both were caught in review.

The repetition guard that ate New York. Parakeet's end-of-utterance model sometimes emits the tail of a phrase twice when it re-decodes an overlap, so I wrote a RepetitionGuard that collapses repeats. Its first rule collapsed any adjacent two-word repeat. "New York New York is a great city" lost half a proper noun, and "did you say that you did you say that you did" lost about half the sentence. The collapsed text is what gets indexed, so that deletion is unrecoverable. The fix sets a five-word floor for a bare double repeat: four still swallows "we have to go we have to go now", and six misses the shortest real artifact the guard must catch, which is itself five words. A structural signal decides the rest. A decoder artifact repeats the tail exactly twice and stops, while periodic speech keeps going, so a double repeat where the phrase keeps going in the words that follow is left alone.

Samples compared to frames. A SilenceSegmenter decides when a pause is long enough to flush an utterance. It compared a counter of raw audio samples (about 48,000 a second) with the diarizer's frame index (one frame per 0.1 seconds). Those numbers are about 4,800 apart in scale, so the "silence" check fired on nearly every audio buffer and tore the transcription engines down and restarted them at buffer cadence. Everything now works in seconds with a 0.75-second threshold, and a test pins zero flushes across five seconds of speech (the old code flushed 50 times) and exactly one on a two-second gap.

The transcript that kept rewriting itself

In mid-September someone told me Whisper's live transcript "flickered and rewrote itself constantly". My first assumption was that Whisper's sliding window was simply like that, but the bug turned out to be mine.

WhisperKit's streaming transcriber exposes two plausible sources for the text it hasn't confirmed yet. unconfirmedText is an array that accumulates: each time a decode comes back shorter than the last, the whole previous text gets appended to it. currentText is rebuilt token by token. Then the transcriber resets both to empty and re-decodes the window. I was displaying unconfirmedText joined with currentText, so the line grew, reshuffled, duplicated itself and snapped back on every callback. The right source was unconfirmedSegments, which is replaced wholesale on every decode pass.

Two smaller things were hiding in the same spot. WhisperKit's state is a struct whose didSet fires a callback on every field change, including the audio energy level, which updates once per buffer, roughly 50 to 100 times a second. And WhisperKit writes the literal string "Waiting for speech..." into currentText, which is UI chrome that must never land in a transcript. Here's the difference, slowed down:

Whisper live transcript: accumulating source versus wholesale segments Two panels play the same audio. On the left, the displayed text built from unconfirmedText plus currentText grows, duplicates and resets, and a callback counter climbs quickly. On the right, text built from unconfirmedSegments grows steadily and only updates once per decode pass. Before unconfirmedText + [currentText] After unconfirmedSegments 0 UI callbacks (every state field) 0 UI updates (once per decode pass) rewrites: 0 rewrites: 0
Same audio, same decodes. Only the source of the in-flight text differs.
The accumulating array duplicates text and resets on each re-decode; wholesale segments only ever replace themselves. Timing is slowed down for reading.

The fix is a small Foundation-only helper with unit tests in the app's test bundle. It's pinned by tests, but I haven't yet watched it against a live Whisper model on a phone.

The crash that wasn't a crash

The worst bug of the autumn looked like this: on a 6 GB iPhone 14 Pro, starting a transcription while a chat model was loaded made Atlas vanish. No crash report in Xcode, no Swift error, nothing in my logs. The evidence turned up in a different place, the device's JetsamEvent files. iOS had killed the process for using too much memory, once at its per-process-limit of 3,072 MB and once at a highwater of 3,080 MB. A jetsam kill writes no normal crash report and nothing in the process can catch it.

The humbling part is that the guard was already there: LiveSession.start() always called suspendLLM() first, and the speech model's RAM floor assumed the chat model was gone. suspendLLM() swapped in a placeholder and dropped its reference to the chat model, but the MLX backend is a Swift actor without a deinit (an actor's deinit can't await), and MLX's buffer cache is a process-global pool anyway. Dropping the reference reclaimed nothing.

Memory on a 6 GB iPhone during a transcription start Two stacked bars against a dashed 3,072 MB per-process limit. Before: suspendLLM drops a reference but the 1,580 MB chat model stays resident; adding the 632 MB speech model and at least 860 MB of everything else reaches the limit and iOS kills the app. After: an explicit unload clears the MLX cache, the chat model block leaves, and the speech model plus the rest stays far below the limit. 0 1,000 2,000 3,000 MB per-process limit, 3,072 MB chat model (MLX) 1,580 MB speech model 632 MB everything else ≥ 860 MB suspendLLM() drops the reference chat model (MLX) 1,580 MB speech model 632 MB everything else ≥ 860 MB unload() + MLX.Memory.clearCache() Before After jetsam: app killed, no crash log fits, with room to spare
Figures from the September jetsam record and the fix's own arithmetic.
Dropping a reference to an actor that owns a process-global cache frees nothing. Only an explicit unload makes room for the speech model.

The fix came in three parts. The first is an explicit unload() seam on every model backend, awaited before the reference is dropped. MLX implements it by dropping its context and conversations and emptying the global pool, while LiteRT keeps a no-op because of its own strict teardown order (a native session destroyed after its engine segfaults). The second removed a probe that loaded a second copy of the Whisper model whenever its weights were already on disk, doubling the peak at the tightest moment. The third replaced the speech model's floor with a co-residency check.

My first attempt at that check used half of RAM with 600 MB of headroom, and a test showed it still admitted the configuration that died. So I worked backwards from the kill record: the process passed 3,072 MB with 1,580 MB of chat model and 632 MB of speech model resident, so at least 860 MB was unaccounted for, and that figure is a lower bound because jetsam fires the moment the limit is crossed. Hence a 1 GB reserve and a budget of 0.45 times physical memory. A few days later every model load, chat or speech, moved onto one shared DeviceMemoryBudget that either succeeds or refuses with a reason, with os_proc_available_memory() as a last-moment veto. It also produced my favorite testing lesson of the year: a bug made it refuse every model in the manifest and all the refusal tests stayed green, because refusing everything passes every refusal test. A counterweight test now asserts that every manifest model fits on the hardware it claims to support.

When a guard exists and the symptom persists, check the guard's premise before you add another guard.

iOS 27 and the compile that never finished

At the end of September, Record on an iPhone running iOS 27 took minutes to start. The answer was in the app's cache folder, which I pulled off the phone with devicectl. Core ML compiles a model for the Neural Engine ahead of time and caches the result as a bundle. Atlas's cache held only bundles named <hash>.tmp.<pid>, compiles that had never been renamed into place, for the Parakeet encoder, the Nemotron 3 diarizer and the MiniLM embedder. Each attempt cost about 100 seconds of the compiler service's CPU, and every Record paid it again.

A live session is foreground-only, where the GPU is available, so the speech and speaker models now use .cpuAndGPU on iOS. MiniLM embeds in the background, where iOS refuses GPU work, so it runs on the CPU. A sweeper clears the abandoned bundles, which freed up to a couple of gigabytes on affected phones, and ATLAS_LIVE_ANE=1 puts the Neural Engine back the day Apple fixes it.

The same week brought a real crash, a segfault inside Core ML's on-device ahead-of-time compiler, whenever a Nemotron Multilingual session started on iOS 26.4 or later. My theory that it collided with the embedder's compile died when a build with a serializing load gate crashed exactly the same way. The same build ran fine on an iPad on iPadOS 18 and on macOS 27. I can't fix a crash inside the OS from Swift, so Nemotron Multilingual is switched off on iOS 26.4 and later, and those devices use Parakeet Ultra, which makes about a fifth fewer mistakes than TDT v3 across its 25 languages, Dutch included.

One more iOS-only puzzle: speaker labels worked on the Mac and never appeared on an iPad. Nemotron 3's mel front end does no normalization, and iOS microphone audio arriving through a .measurement session has no system gain, so the speech probabilities never crossed the model's 0.6 onset. A boost-only level normalizer on the diarizer's input (bit-identical on loud audio, and only on that feed, so the transcript audio is untouched) shipped in 1.5.0. The diarizer's errors had also been swallowed by try? and are now logged, so the next time labels go missing I'll have a line to read instead of a theory.

Two smaller changes did more for the feel than any model swap. Recording now starts at the tap: the microphone opens while the models load and the audio queues until the transcriber catches up, so nothing you say while the screen shows "Listening…" is lost. And names get corrected without a model call. A word close to the name of a meeting attendee on your calendar (matched loosely) or a full name in your contacts (matched strictly) gets replaced, so "Zebia" becomes "Xebia". I haven't tuned those thresholds on real transcripts yet.

Eyes: a photo is 256 tokens

Vision arrived in September through MLX with LFM2.5-VL 1.6B: attach a photo and the model answers about it on the GPU, through its own code path. Atlas reuses the KV cache by comparing token IDs, and an image contributes embeddings that no token prefix describes. A warm cache could look like it "strictly extends" on IDs while its contents had actually diverged, which would be silent corruption. So a vision turn always prefills cold instead of reusing the warm cache, and it runs without tools.

The same week I found the worst possible shape of wrong answer. The streaming chat path's default implementation quietly dropped an attached image and forwarded the turn to the text-only path, so a model that couldn't see answered confidently about a photo it never received, and the answer read like a perfectly normal description. Now a turn that carries an image fails with an error on any backend that can't see it.

At the end of October Liquid's LFM3 family came to the LiteRT runtime: LFM3-VL reads photos, LFM3-Audio listens, and LFM3 Omni does both. The engine needs its vision or audio encoder when it is created, which the manifest now declares per model, or the first photo fails with "Vision executor should not be null". A photo costs a fixed 256 tokens, charged against the turn's budget like everything else. And the smallest exports have a 2,048-token window, so they keep it, run without tools, and reserve 768 tokens for the answer.

The audio models changed dictation. With a model that hears selected, the chat microphone records up to 30 seconds of 16 kHz mono and the chat model writes down what you said itself, in English or Dutch, with no separate speech model. It does that in a one-off conversation, so the chat's warm KV cache is left intact, and a test pins exactly that. Every other model, and always a cloud model, falls back to Apple's on-device recognizer. In the other direction, Atlas reads answers aloud. An LLM-free SpokenReply turns the Markdown answer into speakable prose, dropping code, tables, diagrams, math and citation markers and reading links as their text, and speaks in the language of the reply.

Look: a camera that only asks when something changes

The last piece, at the start of November, is Look, a private camera for the assistant with three modes. Ask sends the current frame into the chat as a photo turn. Remember saves the frame and its description as a visual memory, so "where did I leave my keys?" finds it later. Observe watches a spot and reports when something meaningful changes, and its design is the July post's rule one applied to a camera: the model is the last resort.

flowchart LR
    CAM["camera<br/>1 frame a second"] --> FP["SceneChangeDetector<br/>fingerprint, no model"]
    FP -->|"same scene"| DROP["skip"]
    FP -->|"new scene settles"| GATE{"cool enough?<br/>no chat turn?<br/>under 20 min?"}
    GATE -->|no| WAIT["pause"]
    GATE -->|yes| DESC["AgentLoop.describe<br/>one-off, tool-less,<br/>on-device only"]
    DESC --> CARD["answer card<br/>people = 'a person'"]
    MIC["optional mic"] --> SEG["UtteranceSegmenter<br/>no model"] --> ASR["LFM3 Omni hears it,<br/>or Apple's recognizer"] --> DESC
  

Observe samples the camera once a second and fingerprints each frame without any model. Only when a new scene has settled does it ask the vision model to describe it in a tool-less one-off conversation. It pauses when the phone gets warm or a chat turn is running, and it stops on its own after 20 minutes. Frames never leave the device, never reach a cloud model even when one is enabled, and people are only ever described as "a person". Visual memories share the trust boundary of health and location data, so they stay out of the knowledge graph and the Mac's MCP server.

With Ask by voice on, an LLM-free segmenter cuts each spoken question out of the live audio, the answer about the current frame gets read aloud, and the microphone pauses while Atlas answers and speaks, so it never hears itself. Hold to talk keeps the microphone off until you press. There's also an AtlasCLI look <image> "<question>" command that runs the exact same path headlessly, so I can test camera answers on photos from my desk.

What four months of sensors taught me

The text-only Atlas failed loudly, with a wrong answer or a red test. Audio and vision failed silently in places Swift can't observe: a jetsam kill, a compile that never finishes and looks like a slow button, a diarizer that quietly produces no labels. The evidence was always on the device, in a jetsam record or a cache folder, and almost never on my Mac, which can't reproduce a 6 GB phone's memory limit.

So the working rules changed. Memory constants come from kill records. Every silent try? on a sensor path now logs its first failure. Anything I haven't confirmed on a physical device is written down as unverified in the commit, which is why several fixes above carry that label. And the July rule held up: the scene detector, silence detector, name corrector, spoken-reply formatter and utterance segmenter all run without a model, and the LLM is only called once deterministic code decides there's something worth describing.

Try Atlas

Get Atlas for iPhone & iPad or get Atlas for Mac on the App Store.

References