1. Why double-clicking the HTML file asked for permission every few seconds
Root Cause (file:// Origin + Single-Instance Recreation):
When you double-click an HTML file (`file:///C:/...`), Chromium browsers (Edge & Chrome) treat `file://` as an opaque origin that cannot permanently save microphone permissions. Worse, the old script created a brand-new new SpeechRecognition() object every time silence occurred (`onend` at line 1115). Each recreation triggered a fresh permission popup!
How Pro v3 Fixes It:
1) Persistent MediaStream Lock: We acquire a continuous hardware lock via navigator.mediaDevices.getUserMedia() and keep the audio track alive for your entire call.
2) Single-Instance Reuse: We reuse the existing recognizer instance instead of destroying and recreating it on every pause.
2. Why Microsoft Edge showed "Recognizer ended. Reconnectingβ¦" in a loop
Root Cause (Edge vs. Google Speech Backend):
webkitSpeechRecognition in Chromium is hardwired to Google's private Chrome Speech API. Microsoft Edge does not include Google's proprietary speech API keys, so Edge connections immediately drop or throttle after a few seconds.
How Pro v3 Fixes It:
β’ If you use Browser Native mode, open the app in Google Chrome (on Cloudflare Pages HTTPS or localhost) where Google's speech backend is natively authenticated.
β’ To work in Microsoft Edge, Brave, Firefox, or Chrome with 10x higher accuracy, switch the top engine selector to π Groq Whisper Large-v3 Turbo (free/ultra-fast API key from console.groq.com), OpenAI Whisper, or Deepgram Nova-2. These use standard WebAudio + VAD and never drop or ask for repeated permissions in Edge!
3. Why VB-Audio Virtual Cable had wrong / garbled words
Root Cause (WebRTC DSP + Sample Rate Mismatch):
Browsers automatically apply aggressive Echo Cancellation, Noise Suppression, and Auto Gain Control intended for noisy room microphones. When applied to clean digital audio coming from VB-CABLE Output, those filters hollow out voices and clip syllables, causing the speech engine to hallucinate wrong words.
How Pro v3 Fixes It:
β’ VB-CABLE Raw Audio Mode disables `echoCancellation`, `noiseSuppression`, and `autoGainControl` for pristine virtual cable audio.
β’ Even Better β Zero VB-CABLE Needed: Click π₯ Capture Call/Tab Audio in the header! It uses the browser's native `getDisplayMedia` audio pipe to capture your call or system audio directly in pure digital stereo/mono without routing through Windows sound settings.
4. Deploy to Private GitHub Repo + Cloudflare Pages (2 Minutes)
Hosting on Cloudflare Pages gives you a permanent
https://your-app.pages.dev URL where permissions are remembered forever:
- Create a new Private Repository on GitHub and push these project files (`index.html`, `css/style.css`, `js/app.js`, `_headers`).
- Log in to Cloudflare Dashboard β Compute (Workers & Pages) β Create β Pages β Connect to Git.
- Select your private GitHub repository.
- Leave Build command empty and set Build output directory to
/ (root).
- Click Save and Deploy. Open your new `https://....pages.dev` URL, click "Allow microphone while visiting this site" once, and you will never see a permission prompt again!