How varadganjoo/realtime-voice-and-vision-assistant works
This Windows voice assistant turns microphone speech into routed requests, invokes tools for system control and information tasks, formulates a response, and speaks it back. Its main runtime is concentrated in voice.py; safety.py centralizes tool dispatch, approval for sensitive actions, and isolated generated-code execution, while tts.py handles interruptible audio output. The README documents major capabilities beyond the sampled excerpts, so those branches are included with README evidence; unsampled implementation details are not expanded.
Main entry points: safety.py Tool dispatch · voice.py Query processing · tts.py Speech playback
Components 16
Voice interaction
- Speech input
voice.py - Transcription
voice.py - Microphone GUI
voice.py
Assistant logic
- Query processing
voice.py - Tool routing
voice.py - Answer generation
voice.py
Tools and actions
- Tool dispatch
safety.py - Approval gate
safety.py - Code execution
safety.py - System control
voice.py - Weather lookup
voice.py - Web search
voice.py - Screen and webcam
voice.py - External services
Response output
- Speech playback
tts.py
Other components
- User
Connections 19
- User → Speech input: speaks to
README.md - Speech input → Transcription: records speech
README.md - Transcription → Query processing: starts processing
voice.py - Microphone GUI → Speech input: controls microphone
README.md - Query processing → Tool routing: routes query
README.md - Tool routing → Tool dispatch: dispatches tools
README.md - Tool dispatch → Approval gate: checks sensitive actions
README.md - Tool dispatch → Code execution: runs generated code
README.md - Tool dispatch → System control: invokes controls
README.md - Tool dispatch → Weather lookup: invokes lookup
README.md - Tool dispatch → Web search: invokes search
README.md - Tool dispatch → Screen and webcam: invokes capture
README.md - Weather lookup → External services: requests weather data
voice.py - Web search → External services: searches web
README.md - Screen and webcam → External services: uses AI analysis
README.md - Tool dispatch → Answer generation: provides tool results
README.md - Query processing → Answer generation: prepares answer
README.md - Answer generation → Speech playback: speaks response
voice.py - Speech playback → User: plays audio
README.md