how we made heytappr fast
ask our assistant the same question twice and it took 3.6 seconds both times. we fixed that. then we found it was just as slow to hear you. this is what we did about both, with the numbers, including the ones that went the wrong way.
- published
- read time
- 11 min

tl;dr (too long, didn't read)
a repeat answer now takes 0.18 seconds instead of 3.6. we didn't make the AI call faster. we stopped making it: the phone remembers, the server keeps an exact key, and only brand-new questions reach a model.
hearing you dropped from about 3 seconds to about 0.3, by streaming audio while you're still talking instead of uploading the clip after.
a finished task costs $0.0073 instead of $0.020, mostly because repeat questions stopped calling a model at all.
the same question, the same 3.6 seconds
this is what bugged us first.
someone asks how to do something. the assistant looks at the screen, thinks, and points at the right button. 3.6 seconds. a minute later someone else asks the exact same question on the exact same screen. 3.6 seconds again. same screenshot upload, same model call, same answer, same bill.
when a person answers the same question twice, the second answer is faster. ours wasn't.
the idea we care about most is that heytappr should learn. the first person to ask pays for the thinking. everyone after them should get the answer instantly, and almost free. so this was the thing to fix.
0.18 s
ask to pointer, second time, from the phone's memory
0.3 s
last spoken word to text, streaming
97%
of steps where the voice starts within 125 ms of the pointer
$0.0073
per finished task, down from $0.020
we didn't trust our first result
our first suite had four goals, asked three times each. the new version finished 12 of 12. that made us suspicious. we'd stared at those four goals all week, so 12 of 12 mostly measured how well we had learned them.
so we wrote six goals the system had never seen and froze the code before running them. they found a real bug. fixing it turned them into practice questions too, so we wrote six more and froze again. that last set is the honest test.
| version | finished | 95% interval | AI calls | cost per finished task |
|---|---|---|---|---|
| shipped | 6 of 12 | 25 to 75% | 51 | $0.042 |
| new | 12 of 12 | 76 to 100% | 42 | $0.020 |
| two days later, plus two changes | 6 of 11 | 28 to 79% | 24 | $0.028 |
| one of those changes fixed | 9 of 12 | 47 to 91% | 36 | $0.025 |
twelve runs isn't many, so every success rate gets its 95% interval. read the interval, not the point. 47 to 91 overlaps 76 to 100. one perfect run is one draw.
the shipped version had a simple ceiling: three of the six goals lived under a tab it never reached, so it could finish at most half. it did. the drop two days later is our fault, and it's further down.
don't make the call
here's where the old 3.6 seconds went. for every question the phone uploaded a screenshot. a model picked which saved walkthrough fit, which took 1.5 to 3 seconds. if none fit, a vision model drew a new one. a question answered a minute ago still paid for a model call just to be matched to its own answer.
the obvious fix was to make that call faster. we dropped the screenshot and turned the reasoning down. 1.81 seconds became 1.65. basically nothing.
the lesson took us a day to accept. you don't get speed by making the call faster. you get it by not making the call.
so now there are three layers, cheapest first.
- the phone remembers the answer for this question on this screen, and shows it without touching the network.
- the server keeps an exact key for every question it has answered, so a match needs no model.
- only a question nobody has asked reaches a model. and the draft starts at the same time as the match, not after it.
multi-screen goals go one step further. once a route has been walked to the end, the phone replays the next screen's step itself, with no request at all.
this is that ladder on our Hearth test app, the same question asked twice from a fresh install:
| step | first time | second time | how the second was answered |
|---|---|---|---|
| Lists: open the list | 2.4 s | 0.18 s | phone memory, no network |
| the list: tap Share list | 2.1 s | 0.31 s | server question key, no model |
| Share: pick Rohan, Share | 3.0 s | 0 s | route replayed on the phone, no request |

first time: 2.4 s to this pointer.

second time: 0.18 s. no network.
we built the layers in stages and measured each one on the original four-goal suite, three asks each, from a clean start.
| A | B | C | D | E | |
|---|---|---|---|---|---|
| finished | 9 of 12 | 9 of 12 | 9 of 12 | 9 of 12 | 12 of 12 |
| ask to pointer, median | 3.61 s | 3.47 s | 0.47 s | 0.29 s | 0.17 s |
| ask to pointer, slowest 10% | 6.34 s | 4.39 s | 3.42 s | 3.11 s | 5.55 s |
| each later step, median | 4.46 s | 3.45 s | 0.93 s | 0.41 s | 0.41 s |
| steps with no model call | 0% | 0% | 22% | 22% | 29% |
| AI calls, all 12 tasks | 43 | 40 | 19 | 19 | 17 |
| voice within 125 ms of pointer | 3% | 74% | 74% | 96% | 97% |
| longest silence, worst task | 9.9 s | 8.3 s | 5.8 s | 5.5 s | 4.7 s |
| cost per finished task | $0.020 | $0.020 | $0.0097 | $0.011 | $0.0073 |
three things surprised us. the new server alone (B) barely moved anything. almost all the speed arrived in C, when the phone started remembering. the fastest network call is the one you never make, and only the phone can skip the network.
the slowest 10% got worse in E. but E is also the first column that finished a goal it couldn't do before, and a first-time answer to a new goal takes extra steps.
and D cost more than C with the same 19 AI calls. the same calls just got longer. we still don't know why. we'd never have noticed without a column per change.
making memory safe to trust
a remembered answer is a box drawn on an old screenshot. if the app changed since, the box points at whatever's there now. a confident wrong pointer is worse than a slow right one.
so when a step is first shown, the phone saves a 64-bit fingerprint of exactly the pixels under the box. (a difference hash: shrink to 9 by 8 grey pixels, record whether each is brighter than its neighbour.) before replaying from memory, it fingerprints the same spot again. too many bits differ, and it asks the server instead.
our own benchmark found a hole in that. we removed a button and asked for it, and memory still pointed at the empty spot, because two blank patches of background have nearly the same fingerprint. now a spot that has gone flat means the control is gone.
when a tap does nothing, and when to give up
asked "how do I sign out", the assistant guessed the settings gear. in that app the gear does nothing. the person tapped it, nothing opened, the assistant drew the gear again, and then decided the goal was done.
now, if a step promised a new screen and the phone is still on the same screen, that step is a dead end. the next draft hears about it before it starts, and the dead walkthrough is unlearned for that question.
then we overcorrected. we added a rule: if the control that did nothing is itself the thing asked for, stay put and say so. on the rerun it fired where it shouldn't. asked to give someone access, it tapped the gear, nothing opened, and it told the person there was no other way to do it.
the right tab was at the bottom of the screen the whole time. that rule is most of the drop from 12 of 12 to 6 of 11. now it only applies when the dead control's own label names the thing asked for, and before saying there's no other way, the model has to read every tab in the bottom bar.
saying "it's not here", quickly
we built a version of the app without the "+" button and asked for it anyway. the shipped version pointed at something every time. the new one pointed at nothing in 4 of 4 runs and said so, in a median 3.3 seconds. asked again, 0.45 seconds, because we cache the absence too: this question, on a screen that looks like this, has no control. if the screen changes, it looks again.
it costs a third as much
a finished task cost $0.020 in AI and voice. now it costs $0.0073.
nothing got cheaper per call. the calls just stopped happening: 43 became 17. that changed the shape of the bill. voice went from 21% of the cost to 38%. so the next win was in the voice.
hearing you in a third of a second
the assistant's replies already landed with the pointer. 97% of steps now start speaking within 125 ms of the pointer, the bar broadcasters use for lip sync (ITU-R BT.1359), up from 3%. a voice cache did most of that, then streaming raw audio instead of an MP3, then holding the pointer back (at most 0.7 seconds) until its line can start.
the slow part was the other direction: hearing you. our first privacy build recorded your question, then sent the whole clip to Whisper. Whisper can only start once you've stopped talking. a tester put it plainly: "the listening is really slow".
now the phone opens one upload when the microphone opens and streams audio while you're still speaking. our server pipes each chunk straight into Cloudflare's streaming speech-to-text (Deepgram Nova-3 on Workers AI). when you stop, only the last fraction of a second is left to send. nothing is stored, on the phone or the server.
| median | range | measured | |
|---|---|---|---|
| Whisper, whole clip after you stop | 2.5 to 3.4 s | 1.8 to 5.4 s | laptop, 5 spoken questions |
| Nova-3, streamed while you speak | 0.33 to 0.58 s | 0.21 to 1.1 s | laptop, same questions |
| Nova-3, a person talking to the phone | 0.25 s | 0.22 to 0.28 s | OnePlus, 4 of 4 questions |
| the phone's own recognizer | about 5.5 s, then "no match" | OnePlus, 3 tries |
we tried the phone's own recognizer first
it sounds ideal. free, and no audio ever leaves the phone. on our OnePlus it ran Google's offline model, waited about 5.5 seconds after the speech ended, then returned "no match" on all three tries. (we played the question from a laptop speaker, so a person in a quiet room may do better.)
the deeper problem is that it's whatever each phone maker ships. some phones have none. languages vary. you can't tell it which words to expect. an SDK that ships inside other companies' apps needs every phone to hear the same way. so streaming is the default, and the phone's recognizer is a one-line opt-in (more on that in the privacy post).
| speech to text | per audio minute | per question | wait after you stop |
|---|---|---|---|
| phone's own recognizer | $0 | $0 | about 5.5 s on our phone |
| Whisper (fallback) | $0.0005 | about $0.00005 | about 3.4 s |
| Nova-3 streaming (default) | $0.0092 | about $0.0005 | about 0.3 s |
| for scale: the AI answer itself | $0.004 to $0.006 |
streaming adds about a tenth to the cost of a question. three seconds of waiting is worth more than that.
three ways it broke on a real phone
it cut people off. one tester paused mid-sentence and the phone heard only the first half of the question. it decided the question was over after 0.56 seconds of quiet, and people pause when they talk. it now waits a full second.
it sometimes never answered. twice the upload stalled and the panel sat on "listening" until the tester gave up and closed it. the timeout covered waiting for the reply, not sending the audio. now, if the words aren't back 6 seconds after you stop, the phone sends the clip to Whisper instead. we forced a stall to test it: the fallback fired at 6.0 seconds and Whisper heard all 8 words, 12.6 seconds after the clip ended. slow. but never stuck.
streaming can come back empty. one of our five laptop clips, "my email is rohan at gmail dot com", got no final words from Nova-3 and fell back to Whisper at 6.6 seconds. we don't know why yet.
all the numbers
| on the phone | before | now |
|---|---|---|
| fresh questions finished (held out) | 6 of 12 | 12 of 12, then 9 of 12 on a rerun |
| ask to pointer, repeat, median | 3.6 s | 0.17 s (0.18 s on Hearth) |
| each later step, median | 4.5 s | 0.41 s |
| voice within 125 ms of the pointer | 3% | 97% |
| last spoken word to text | 2.5 to 3.4 s (whole clip) | 0.25 s on the phone |
| worst case when streaming stalls | stuck on "listening" | 12.6 s, never stuck |
| AI calls for 12 tasks | 43 | 17 |
| cost per finished task (practice / held out) | $0.020 / $0.042 | $0.0073 / $0.020 |
| button removed: pointed at nothing | 0 of 4 | 4 of 4 |
| right button, 96 crowded screens | 71% | 92 to 94% |
| longest silence in a task, worst case | 9.9 s | 12.2 s on cold multi-screen goals |
if you missed part one: how heytappr keeps screens private, on how private words stay on the phone.
see it on your app
Pick one feature users skip. We'll show you heytappr walking them through it.
questions people ask
How fast is heytappr?
On our test phone, a question someone has asked before gets a pointer in about 0.18 seconds, straight from the phone's memory. A brand-new question takes 2 to 6 seconds a screen while a model draws the step, once.
What does a heytappr walkthrough cost to run?
In our tests a finished task cost $0.0073 in AI and voice, down from $0.020, mostly because repeat questions no longer call a model at all.
Can heytappr point at a button that's off screen?
Not yet. It can't scroll, so a row below the fold can't be pointed at.
keep reading
spotted something out of date? tell us and it gets fixed.