Deep dive · Latency
Why SolveWatch doesn't wait for you to finish talking
SolveWatch listens through OpenAI's Realtime API — audio goes straight to the model over a persistent connection. There's no separate transcription service to wait on, no hand-off between a speech-to-text engine and a language model, and no fallback chain to race through.
1. Streaming-first: you read while the model writes
SolveWatch never waits for the full AI response. The moment the first token arrives it is forwarded over Socket.IO to the Electron HUD and rendered immediately — no buffering, no waiting for a complete sentence.
The screenshot flow streams tokens from OpenAI with stream: true. The listening flow streams text deltas directly off the Realtime session (response.output_text.delta) as the model writes them.
2. One connection, no hand-off
Most voice assistants run speech-to-text and the language model as two separate steps: transcribe the audio, then send the transcript to an LLM, then wait for that response. Every hop adds latency and gives the pipeline more places to fall behind a live conversation.
SolveWatch's listening flow skips that entirely. Raw microphone audio streams straight into a single persistent connection to OpenAI's gpt-realtimefamily of models. The same call that transcribes what you said is the call that decides whether it's a complete question and, if so, answers it — there's no intermediate transcript to hand off.
3. The model decides when you're done talking
Instead of a fixed silence timer guessing when an utterance has ended, OpenAI's Realtime API runs server-side voice activity detection on the audio itself, tuned via REALTIME_SILENCE_MS. When it detects a pause, it triggers a response — and if you keep talking while one is still being generated, the in-flight response is automatically interrupted rather than left to finish answering a half-formed thought.
SolveWatch layers a simple tagging protocol on top: the model prefixes every response with [WAIT] (not a complete question yet — say nothing), [NEW] (a fresh, independently-askable question), or [APPEND](a continuation of the question it just answered). That means a follow-up like "...and what are its advantages" appends new bullet points onto the existing answer card instead of regenerating the whole thing from scratch.
4. Real conversation memory, not a re-sent prompt
The Realtime API keeps the whole conversation server-side for the length of the session — SolveWatch doesn't need to re-inject a summary of prior questions and answers into every request the way a stateless chat-completion call would. The model genuinely remembers what it already told you, which is also what keeps [APPEND] responses from repeating themselves.