How saiteja-git1/voicepilot works
VoicePilot accepts spoken requests, streams audio to Gemini Live, and plays spoken responses; Gemini tool calls can dispatch desktop tasks through a screenshot/action/replanning loop. An optional local wake-word gate starts and stops voice sessions, while a read-only WebSocket reports session status to the UI. The README also describes safety gating and verification ambitions, but the sampled runtime does not establish a separate confirmation or visual-verification subsystem. Relationships below are limited to shown calls and documented behavior; unsampled implementations are represented only where the tree or README supports them.
Main entry points: session_manager.py Session manager · agent.py Computer-use agent · main.py Runtime entry · gemini_live_session.py Gemini Live
Components 23
Voice session
- PyAudio I/O
backend/audio/pyaudio_io.py - Audio interfaces
backend/audio/interfaces.py - Session manager
backend/voice/session_manager.py - Voice interfaces
backend/voice/interfaces.py - Gemini Live
backend/voice/gemini_live_session.py - Voice events
backend/voice/events.py
Wake activation
- Typed wake detector
backend/wakeword/dev_detector.py - Wake gate
backend/wakeword/gate.py - Wake interfaces
backend/wakeword/interfaces.py - Wake events
backend/wakeword/events.py
Computer use
- Computer-use agent
backend/computer_use/agent.py - Action model client
backend/computer_use/client.py - Action parsing and safety
backend/computer_use/actions.py - Desktop executor
backend/computer_use/executor.py - Screen capture
backend/computer_use/screenshot.py
Status interface
- Status WebSocket
backend/server/ws_server.py - Status page
ui/app.js
Other components
- Voice user
- Runtime entry
backend/main.py - Runtime config
backend/config.py - Gemini Live API
- Browser client
- Structured logging
backend/logging_setup.py
Connections 26
- Voice user → PyAudio I/O: speaks into
README.md - Runtime entry → Runtime config: loads
backend/main.py - Runtime entry → Session manager: starts
backend/main.py - Runtime entry → Wake gate: optionally starts
backend/main.py - Runtime entry → Status WebSocket: starts
backend/main.py - Session manager → PyAudio I/O: streams audio
backend/voice/session_manager.py - Session manager → Gemini Live: creates sessions
backend/voice/session_manager.py - Session manager → Computer-use agent: dispatches tool task
backend/voice/session_manager.py - Session manager → Voice events: handles events
backend/voice/session_manager.py - Gemini Live → Gemini Live API: streams audio
backend/voice/gemini_live_session.py - Gemini Live → Voice events: emits events
backend/voice/gemini_live_session.py - PyAudio I/O → Audio interfaces: implements
backend/audio/pyaudio_io.py - Gemini Live → Voice interfaces: implements
backend/voice/gemini_live_session.py - Wake gate → Typed wake detector: listens through
backend/wakeword/gate.py - Wake gate → Session manager: starts and stops
backend/wakeword/gate.py - Typed wake detector → Wake events: emits
backend/wakeword/dev_detector.py - Typed wake detector → Wake interfaces: implements
backend/wakeword/dev_detector.py - Computer-use agent → Screen capture: captures screen
backend/computer_use/agent.py - Computer-use agent → Action model client: requests action
backend/computer_use/agent.py - Computer-use agent → Action parsing and safety: parses and validates
backend/computer_use/agent.py - Computer-use agent → Desktop executor: executes action
backend/computer_use/agent.py - Status WebSocket → Session manager: observes state
backend/server/ws_server.py - Status WebSocket → Browser client: broadcasts status
README.md - Browser client → Status page: renders status
README.md - Session manager → Structured logging: records events
backend/voice/session_manager.py - Wake gate → Structured logging: records events
backend/wakeword/gate.py