The problem
A useful voice assistant has to do more than transcribe speech. It needs to wait through unfinished sentences, handle interruptions, retrieve relevant evidence, and keep the conversation moving.
One microphone session, a continuous loop
Nexus keeps the browser microphone session open throughout a call. In-browser Silero VAD feeds faster-whisper, with generated tokens returned over NDJSON and spoken through streaming text-to-speech. Keeping the session alive removes repeated microphone setup between turns.
Endpointing that considers the sentence
A fixed silence timer cannot distinguish a pause from the end of a thought. The endpointer combines English/Hindi grammar rules with pitch tracking, reusing frames produced by the VAD. Barge-in and echo suppression let a user interrupt without the assistant responding to its own voice.
Debugging citations at the retrieval layer
Unrelated search results were returning successful HTTP responses and reaching the model as evidence. I traced fabricated citations to that search tier and added a word-overlap filter to scraped results. Tool routing chooses between user documents and live web retrieval.
Authentication and isolation
Supabase JWKS verifies authentication server-side. Bring-your-own provider keys are not stored or logged, and are isolated from the shared model-client cache. The project includes 17 regression tests.
Built with React, TypeScript, FastAPI, LangChain, Qdrant, faster-whisper, ONNX.