Saksham Kanojia.
All projectsVOICE AI · OPEN SOURCE

Nexus

A voice assistant that knows when to listen.

Real-time voice, grounded retrieval, and a continuous conversation loop. Built for the pauses, interruptions, and messy edges of human speech.

  • ~0.6s speech to transcript
  • ~1s time to first token
  • 17 regression tests

Latency measured on a 4 GB laptop GPU; results depend on hardware and workload.

Nexus

A conversation that keeps moving

  1. Voice input
  2. VAD + endpointing
  3. Speech to text
  4. Tools + retrieval
  5. Streamed response
React / TypeScript / FastAPI
System overview

At a glance

The engineering behind it.

My contribution
Built the continuous voice loop, sentence-aware endpointing, retrieval routing, and streamed responses.
Key decision
Use speech and sentence signals to handle pauses and interruptions instead of relying on a fixed silence timer.
Results & evidence
17 regression tests, with latency measured on a 4 GB laptop GPU. Hardware and workload affect the result.

How it fits together

  1. Voice input
  2. VAD + endpointing
  3. Speech to text
  4. Tools + retrieval
  5. Streamed response

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.