Prerequisites
- Python 3.11 (Required for
faster-whisper)- Node.js 18+
- LiveKit Cloud Account (Free Tier)
- Sign up at LiveKit Cloud.
- Create a new project.
- Copy your
API KeyandSecret Key.
Create a .env file in the root:
LIVEKIT_URL=wss://your-project.livekit.cloud
LIVEKIT_API_KEY=API...
LIVEKIT_API_SECRET=Secret...The backend requires a Python environment for the AI model.
cd backend
python -m venv venv
# Windows
.\venv\Scripts\activate
# Mac/Linux
source venv/bin/activate
pip install -r requirements.txt
python main.pyWait for "Neural Engine Ready" log. This loads the 500MB Whisper model into RAM.
cd frontend
npm install
npm run dev- Open Browser: Go to
http://localhost:5173. - Connect: Click "Initialize Neural Link".
- Permissions: Allow Microphone access.
- Visualize: You should see the Green/Red status indicator turn Active.
- Speak: "This is a test of the emergency broadcast system."
- Verify: Text appears in the "Scribe" panel with a latency timer (e.g.,
TAT: 1.2s).
To verify if your CPU is fast enough:
- Watch the backend console.
- Speak a short phrase.
- Look for log:
Transcript generated in 0.45s. - Target: If > 2.0s, consider switching
model_sizetotinyinmain.py.