How ankush-naskar/jarvis-voice-assistant works
Jarvis is a desktop voice assistant with a GUI and a voice-command loop. Its principal workflow is microphone capture and speech recognition, command dispatch, then local browser actions, weather retrieval, or optional AI responses, with spoken feedback. The GUI can start/stop the engine and edit settings; settings and bookmarks are loaded from JSON. Edges follow the excerpts and README. The README documents capabilities such as Google/YouTube search, forecasts, AI, notifications and inactivity shutdown; unsampled details are represented only where their relationship is documented.
Main entry points: engine.py Assistant engine · data_handling.py Settings and bookmarks · speech.py Speech output · core.py Command dispatcher
Components 21
Desktop interface
- Main window
gui/main_interface.py - Settings window
gui/settings_interface.py - GUI elements
gui/gui_elements.py - Help popup
gui/help_window.py
Assistant runtime
- Assistant engine
modules/engine.py - Voice listener
modules/voice/listener.py - Command dispatcher
modules/commands/core.py - Speech output
modules/voice/speech.py
Command capabilities
- Browser and media
modules/commands/browser_cmd.py - Weather commands
modules/commands/weather_cmd.py - Forecast service
modules/services/weather.py - AI responses
modules/services/ai_service.py
Shared services
- Settings and bookmarks
modules/data_handler/data_handling.py - Notifications
modules/notify.py
Other components
- User
- Microphone
- Web browser
- Weather provider
- AI API
- Audio output
- Desktop notifications
Connections 29
- User → Main window: controls
gui/main_interface.py - Main window → Assistant engine: starts or stops
gui/main_interface.py - Main window → Settings window: opens settings
gui/main_interface.py - Settings window → GUI elements: uses widgets
gui/settings_interface.py - Settings window → Help popup: opens help
gui/settings_interface.py - Settings window → Settings and bookmarks: saves settings
gui/settings_interface.py - Assistant engine → Voice listener: captures commands
modules/engine.py - Microphone → Voice listener: provides audio
- Assistant engine → Command dispatcher: dispatches commands
modules/engine.py - Assistant engine → Speech output: speaks activation
modules/engine.py - Assistant engine → Notifications: notifies lifecycle
modules/engine.py - Assistant engine → Settings and bookmarks: reads timeout
modules/engine.py - Command dispatcher → Browser and media: routes browser commands
modules/commands/core.py - Command dispatcher → Weather commands: routes weather commands
modules/commands/core.py - Command dispatcher → AI responses: requests responses
modules/commands/core.py - Command dispatcher → Speech output: speaks AI response
modules/commands/core.py - Browser and media → Settings and bookmarks: reads bookmarks
modules/commands/browser_cmd.py - Browser and media → Speech output: speaks actions
modules/commands/browser_cmd.py - Browser and media → Web browser: opens pages or media
modules/commands/browser_cmd.py - Weather commands → Forecast service: requests forecast
modules/commands/weather_cmd.py - Weather commands → Settings and bookmarks: reads location
modules/commands/weather_cmd.py - Weather commands → Speech output: speaks forecast
modules/commands/weather_cmd.py - Forecast service → Weather provider: retrieves forecast
- AI responses → Settings and bookmarks: reads AI settings
modules/services/ai_service.py - AI responses → AI API: sends prompt
modules/services/ai_service.py - Speech output → Settings and bookmarks: reads voice setting
modules/voice/speech.py - Speech output → Audio output: plays generated speech
modules/voice/speech.py - Notifications → Settings and bookmarks: reads assistant name
modules/notify.py - Notifications → Desktop notifications: shows alerts
modules/notify.py