<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Vishwjeet Singh Vilkhu</title>
    <description>The latest articles on DEV Community by Vishwjeet Singh Vilkhu (@vishwjeet).</description>
    <link>https://dev.to/vishwjeet</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2392857%2Ffa52800c-2476-4bc0-a569-46fa71c292bc.jpg</url>
      <title>DEV Community: Vishwjeet Singh Vilkhu</title>
      <link>https://dev.to/vishwjeet</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/vishwjeet"/>
    <language>en</language>
    <item>
      <title>How I Built an Ultra-Low Latency, Local-First Interview Copilot with Electron, React 19, and Groq Whisper Turbo</title>
      <dc:creator>Vishwjeet Singh Vilkhu</dc:creator>
      <pubDate>Sat, 05 Sep 2026 20:56:06 +0000</pubDate>
      <link>https://dev.to/vishwjeet/how-i-built-an-ultra-low-latency-local-first-interview-copilot-with-electron-react-19-and-groq-4pbg</link>
      <guid>https://dev.to/vishwjeet/how-i-built-an-ultra-low-latency-local-first-interview-copilot-with-electron-react-19-and-groq-4pbg</guid>
      <description>&lt;p&gt;Most conversational AI speech assistants have a fatal flaw: &lt;strong&gt;crippling latency&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;You ask a question, an audio buffer accumulates, an upload takes 2 seconds, speech-to-text takes another 3 seconds, and the LLM takes 4 seconds to respond. By the time an answer arrives, 8–10 seconds of awkward silence have passed. &lt;/p&gt;

&lt;p&gt;In a high-stakes interview or live presentation, that delay is unacceptable.&lt;/p&gt;

&lt;p&gt;Furthermore, most commercial interview tools force candidates to stream their raw voice audio, private resumes, and confidential credentials to opaque third-party cloud servers.&lt;/p&gt;

&lt;p&gt;Over the past few weeks, I set out to solve this from scratch. &lt;/p&gt;

&lt;p&gt;Today, I’m open-sourcing &lt;strong&gt;&lt;a href="https://github.com/vishwjeet27/wishpilot" rel="noopener noreferrer"&gt;WishPilot&lt;/a&gt;&lt;/strong&gt; — a universal, local-first stealth interview copilot and real-time speech intelligence engine built under the &lt;strong&gt;GNU General Public License (GPL v3)&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;In this article, I want to share the architectural decisions, low-level audio engineering, and streaming pipelines that make sub-second speech intelligence possible on the desktop.&lt;/p&gt;




&lt;h2&gt;
  
  
  The Architecture at a Glance
&lt;/h2&gt;

&lt;p&gt;WishPilot is built on a high-speed desktop stack:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Desktop Runtime&lt;/strong&gt;: Electron v44 with isolated context bridges&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Frontend Architecture&lt;/strong&gt;: React 19 + Vite 8&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Speech Intelligence&lt;/strong&gt;: Groq Whisper Large v3 Turbo (~180ms - 350ms STT)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Inference Gateway&lt;/strong&gt;: Unified BYOK streaming supporting 9 providers (Cerebras, Groq, Together AI, Fireworks, NVIDIA NIM, OpenAI, Gemini)&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Display Layer&lt;/strong&gt;: Native Win32 &lt;code&gt;WDA_EXCLUDEFROMCAPTURE&lt;/code&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Here is how the data flows from raw sound waves to a floating heads-up display:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;[ Microphone Signal ] 
       │ 
       ▼
[ Web Audio API / AudioWorkletNode (16kHz PCM) ]
       │  (&amp;lt; 20ms processing)
       ▼
[ Groq Whisper Large v3 Turbo ]  &amp;lt;-- ~250ms STT
       │
       ▼
[ Context Synthesizer (Resume + Category Domain + Vision Context) ]
       │
       ▼
[ Unified AI Streaming Engine (BYOK Direct HTTPS) ]  &amp;lt;-- Up to 1,800 tps
       │
       ▼
[ Candidate Floating HUD / Stealth Notch ]
       │  (Excluded from Zoom/Teams via WDA_EXCLUDEFROMCAPTURE)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;






&lt;h2&gt;
  
  
  1. Sub-Second Audio Pipeline (Web Audio DSP)
&lt;/h2&gt;

&lt;p&gt;To achieve true real-time performance, audio processing cannot happen on the main JavaScript UI thread. &lt;/p&gt;

&lt;p&gt;WishPilot implements a dedicated &lt;code&gt;AudioWorkletNode&lt;/code&gt; that taps into the browser's &lt;code&gt;AudioContext&lt;/code&gt;. The worker:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Captures native microphone signals (typically 44.1kHz or 48kHz).&lt;/li&gt;
&lt;li&gt;Performs low-pass filtering and downsamples the stream directly to single-channel &lt;strong&gt;16,000 Hz 16-bit linear PCM&lt;/strong&gt;.&lt;/li&gt;
&lt;li&gt;Runs client-side &lt;strong&gt;Voice Activity Detection (VAD)&lt;/strong&gt; by monitoring root-mean-square (RMS) speech energy levels.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;When a natural conversational pause is detected, the audio chunk is dispatched immediately to Groq's Whisper Large v3 Turbo endpoint via direct HTTPS. &lt;/p&gt;

&lt;p&gt;The result? The spoken question is transcribed with technical vocabulary accuracy in &lt;strong&gt;under 250 milliseconds&lt;/strong&gt;.&lt;/p&gt;




&lt;h2&gt;
  
  
  2. Zero Telemetry &amp;amp; The BYOK (Bring Your Own Key) Model
&lt;/h2&gt;

&lt;p&gt;Privacy was my non-negotiable requirement. &lt;/p&gt;

&lt;p&gt;WishPilot has &lt;strong&gt;zero central backend servers&lt;/strong&gt;. No telemetry pings, no user tracking, and no database holding interview transcripts.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;API keys are stored locally using encrypted desktop storage.&lt;/li&gt;
&lt;li&gt;All requests flow directly from the user's desktop to the provider's official HTTPS endpoints (Groq, Cerebras, OpenAI, etc.).&lt;/li&gt;
&lt;li&gt;There is zero middleman markup. Users can leverage generous free tiers from providers like Groq and Cerebras without spending a single dollar.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  3. Native Windows Display Protection (&lt;code&gt;WDA_EXCLUDEFROMCAPTURE&lt;/code&gt;)
&lt;/h2&gt;

&lt;p&gt;A major engineering challenge with desktop copilots is preventing overlay windows from interfering with screen shares during mock technical drills or system design presentations.&lt;/p&gt;

&lt;p&gt;WishPilot interfaces with the native Windows DWM compositor through an Electron native bridge:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Native window display affinity hook&lt;/span&gt;
&lt;span class="nx"&gt;mainWindow&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;setContentProtection&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="kc"&gt;true&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Under the hood, Windows sets the window display affinity:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight c"&gt;&lt;code&gt;&lt;span class="n"&gt;SetWindowDisplayAffinity&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="n"&gt;hwnd&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="n"&gt;WDA_EXCLUDEFROMCAPTURE&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;This ensures that while the floating heads-up display is crisp and visible to you on your physical monitor, it is completely excluded from OS-level graphics capture buffers (Zoom, Microsoft Teams, Google Meet, or Discord screen shares).&lt;/p&gt;




&lt;h2&gt;
  
  
  4. Instant Answer Refinement Pills
&lt;/h2&gt;

&lt;p&gt;Interviews are dynamic. Sometimes an answer is too lengthy; other times an interviewer interrupts with: &lt;em&gt;"Can you give me a production example?"&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;WishPilot features four contextual quick-action pills that transform streamed answers with one click:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Make Shorter&lt;/strong&gt;: Compresses the answer into an ultra-punchy 15-20 second spoken elevator pitch.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;More Technical&lt;/strong&gt;: Injects architectural trade-offs, concurrency locks, and Big-O complexity.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Give an Example&lt;/strong&gt;: Weaves a concrete production case study with measurable quantitative outcomes.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Simpler Language&lt;/strong&gt;: Translates the solution into plain English using intuitive analogies.&lt;/li&gt;
&lt;/ul&gt;




&lt;h2&gt;
  
  
  5. Multi-Industry Category Engine
&lt;/h2&gt;

&lt;p&gt;Most interview tools assume everyone is doing LeetCode. But real-world interviews span diverse domains. &lt;/p&gt;

&lt;p&gt;WishPilot ships with native, domain-specific evaluation frameworks across &lt;strong&gt;9 professional streams&lt;/strong&gt;:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;IT &amp;amp; Software&lt;/strong&gt;: Distributed architectures, LeetCode trade-offs, and CAP theorem.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;BPO &amp;amp; Voice Ops&lt;/strong&gt;: LAST framework (Listen, Apologize, Solve, Thank) with empathy protocols.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Finance &amp;amp; Banking&lt;/strong&gt;: 3-Statement financial modeling, DCF, and WACC calculations.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Sales &amp;amp; BD&lt;/strong&gt;: BANT / SPIN selling frameworks and objection-handling hooks.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;HR &amp;amp; Talent&lt;/strong&gt;: STAR behavioral methodology and labor compliance.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Product Management&lt;/strong&gt;: CIRCLES and RICE prioritization scoring.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Healthcare &amp;amp; Clinical&lt;/strong&gt;: SBAR clinical handoffs and triage protocols.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Core Engineering&lt;/strong&gt;: Root Cause Analysis (5-Whys) and Six Sigma reliability.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Universal&lt;/strong&gt;: Adaptive first-person authentic delivery.&lt;/li&gt;
&lt;/ol&gt;




&lt;h2&gt;
  
  
  Try It Out &amp;amp; Get Involved
&lt;/h2&gt;

&lt;p&gt;WishPilot is 100% free and open-source under the &lt;strong&gt;GNU General Public License v3.0&lt;/strong&gt;.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;⭐ &lt;strong&gt;GitHub Repository&lt;/strong&gt;: &lt;a href="https://github.com/vishwjeet27/wishpilot" rel="noopener noreferrer"&gt;github.com/vishwjeet27/wishpilot&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;💻 &lt;strong&gt;Standalone Windows Installer (.exe)&lt;/strong&gt;: &lt;a href="https://github.com/vishwjeet27/wishpilot/releases" rel="noopener noreferrer"&gt;Releases v1.0.0&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;🌐 &lt;strong&gt;Official Website&lt;/strong&gt;: &lt;a href="https://wishpilot.vercel.app/" rel="noopener noreferrer"&gt;wishpilot.vercel.app&lt;/a&gt;
&lt;/li&gt;
&lt;li&gt;📖 &lt;strong&gt;Documentation Wiki&lt;/strong&gt;: &lt;a href="https://github.com/vishwjeet27/wishpilot/wiki" rel="noopener noreferrer"&gt;github.com/vishwjeet27/wishpilot/wiki&lt;/a&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;As an independent software engineer, building this in the open has been an incredible journey. If you find the project useful or want to support my work, a star on the repo or a cup of coffee on &lt;a href="https://buymeacoffee.com/vishwjeet" rel="noopener noreferrer"&gt;Buy Me a Coffee&lt;/a&gt; or &lt;a href="https://github.com/sponsors/vishwjeet27" rel="noopener noreferrer"&gt;GitHub Sponsors&lt;/a&gt; goes a long way!&lt;/p&gt;

&lt;p&gt;I’d love to hear your thoughts, feedback, and architecture questions in the comments below!&lt;/p&gt;

</description>
      <category>opensource</category>
      <category>ai</category>
      <category>webdev</category>
      <category>javascript</category>
    </item>
  </channel>
</rss>
