Improve question detection, capture stealth, latency; stop tracking model binaries

- Detection: broaden request-starters, handle contractions, allow 1-word '?'
- Audio: PTT pre-roll (no clipped first word), drop Whisper silence hallucinations,
  greedy decoding + domain initial_prompt for faster/cleaner transcription
- AI: cap spoken-answer tokens so replies return at conversational speed
- Overlay: answers persist (no auto-hide); wire Ctrl+Shift+H show/hide toggle
- Screen capture: freeze-frame at hotkey press (immune to focus-blur lockouts),
  hide selector from screen-share (NSWindowSharingNone), higher capture resolution
- Stop tracking models/ and *.zip (large binaries; add to .gitignore)

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Charles Wambua
2026-06-26 14:36:06 +03:00
parent 1dd5b757be
commit dba78a2766
19 changed files with 1767 additions and 154102 deletions

36
run.sh Executable file
View File

@@ -0,0 +1,36 @@
#!/bin/bash
set -e
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
cd "$SCRIPT_DIR"
echo "🎙️ Starting Meeting Assistant..."
# Use the corporate-aware CA bundle (system + corporate + public CAs) so model
# downloads / revalidation work behind SSL-inspecting proxies. See README.
if [ -f "certs/corp_ca_bundle.pem" ]; then
export SSL_CERT_FILE="$SCRIPT_DIR/certs/corp_ca_bundle.pem"
export REQUESTS_CA_BUNDLE="$SSL_CERT_FILE"
export CURL_CA_BUNDLE="$SSL_CERT_FILE"
fi
# hf-xet has been flaky behind proxies; plain HTTPS transfers are more reliable.
export HF_HUB_DISABLE_XET=1
# Activate virtual environment
if [ -d ".venv" ]; then
source .venv/bin/activate
echo "✅ Using virtual environment: .venv"
else
echo "⚠️ No .venv found — using system Python"
echo " Run: python3 -m venv .venv && source .venv/bin/activate && pip install -r requirements.txt"
fi
# Install PortAudio if needed (macOS)
if [[ "$OSTYPE" == "darwin"* ]]; then
if command -v brew &> /dev/null && ! brew list portaudio &> /dev/null 2>&1; then
echo "📦 Installing PortAudio via Homebrew..."
brew install portaudio
fi
fi
python3 main.py