#!/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). Skip Homebrew's auto-update (slow/can fail # behind restricted networks) and never let a brew hiccup abort the launcher — # PortAudio is usually already present. if [[ "$OSTYPE" == "darwin"* ]]; then export HOMEBREW_NO_AUTO_UPDATE=1 if command -v brew &> /dev/null && ! brew list portaudio &> /dev/null 2>&1; then echo "📦 Installing PortAudio via Homebrew..." brew install portaudio || echo "⚠️ PortAudio install failed — continuing (may already be present)" fi fi python3 main.py