How sharuuuuuhh/jarvis works
JARVIS is a Java desktop voice assistant. The main workflow is microphone capture, WhisperFlow transcription, intent parsing and command construction, polymorphic execution, then GUI and spoken feedback. Commands also cover application launching, reminders, telemetry, web search, media control, shortcuts, general queries and help. SQLite DAOs persist reminders, settings, shortcuts and interaction logs, while a scheduler raises due reminders. The map follows the README and source-index references; unsampled implementation details and their links are kept conservative.
Main entry points: JarvisEngine.java Jarvis Engine · WhisperFlowService.java WhisperFlow · commands Command Actions · ReminderScheduler.java Reminder Scheduler
Components 28
User Interaction
- Swing Assistant UI
src/com/jarvis/gui/JarvisMainFrame.java - UI Components
src/com/jarvis/gui
Speech I/O
- Audio Capture
src/com/jarvis/audio/AudioRecorderService.java - Audio Formatting
src/com/jarvis/audio/AudioFormatHelper.java - WhisperFlow
src/com/jarvis/speech/WhisperFlowService.java - Speech Recognition
src/com/jarvis/speech/WhisperApiClient.java - Mock Recognizer
src/com/jarvis/speech/MockSpeechRecognizer.java - Windows Speech
src/com/jarvis/speech/WindowsTTSService.java - Audio Effects
src/com/jarvis/audio/AudioPlayerService.java
Command Orchestration
- Jarvis Engine
src/com/jarvis/core/JarvisEngine.java - Intent Parser
src/com/jarvis/commands/CommandParser.java - Command Factory
src/com/jarvis/commands/CommandFactory.java - Command Registry
src/com/jarvis/commands/CommandRegistry.java - Command Context
src/com/jarvis/core/CommandContext.java - Command Lifecycle
src/com/jarvis/commands/AbstractCommand.java - Command Result
src/com/jarvis/core/CommandResult.java - Configuration
src/com/jarvis/core/ConfigManager.java
Assistant Actions
- Command Actions
src/com/jarvis/commands - Reminder Scheduler
src/com/jarvis/scheduler/ReminderScheduler.java
Persistence
- SQLite Database
src/com/jarvis/database/DatabaseManager.java - Reminder DAO
src/com/jarvis/database/ReminderDAO.java - Interaction Log DAO
src/com/jarvis/database/InteractionLogDAO.java - Settings & Shortcuts DAOs
src/com/jarvis/database
Other components
- User
- Whisper API
- Desktop OS
- Web Browser
- Speakers
Connections 34
- User → Swing Assistant UI: uses
README.md - Swing Assistant UI → UI Components: renders
src/com/jarvis/gui/JarvisMainFrame.java - Swing Assistant UI → Jarvis Engine: submits input
src/com/jarvis/gui/JarvisMainFrame.java - Jarvis Engine → WhisperFlow: controls transcription
src/com/jarvis/core/JarvisEngine.java - WhisperFlow → Audio Capture: captures audio
src/com/jarvis/speech/WhisperFlowService.java - Audio Capture → Audio Formatting: formats audio
src/com/jarvis/audio/AudioRecorderService.java - WhisperFlow → Speech Recognition: dispatches audio
src/com/jarvis/speech/WhisperFlowService.java - Speech Recognition → Whisper API: sends audio
README.md - WhisperFlow → Mock Recognizer: falls back
src/com/jarvis/speech/WhisperFlowService.java - WhisperFlow → Jarvis Engine: returns transcript
src/com/jarvis/core/JarvisEngine.java - Jarvis Engine → Intent Parser: parses text
src/com/jarvis/core/JarvisEngine.java - Jarvis Engine → Command Context: builds context
src/com/jarvis/core/JarvisEngine.java - Jarvis Engine → Command Factory: requests command
src/com/jarvis/core/JarvisEngine.java - Command Factory → Command Registry: resolves command
src/com/jarvis/commands/CommandFactory.java - Jarvis Engine → Command Actions: executes command
src/com/jarvis/core/JarvisEngine.java - Command Lifecycle → Interaction Log DAO: logs interaction
src/com/jarvis/commands/AbstractCommand.java - Command Lifecycle → Command Result: returns result
src/com/jarvis/commands/AbstractCommand.java - Jarvis Engine → Command Result: receives result
src/com/jarvis/core/JarvisEngine.java - Jarvis Engine → Swing Assistant UI: updates display
README.md - Jarvis Engine → Windows Speech: speaks response
README.md - Windows Speech → Speakers: outputs speech
README.md - Jarvis Engine → Audio Effects: plays feedback
src/com/jarvis/core/JarvisEngine.java - Audio Effects → Speakers: plays tones
README.md - Command Actions → Desktop OS: launches apps
README.md - Command Actions → Web Browser: opens searches
README.md - Command Actions → Reminder DAO: manages reminders
src/com/jarvis/commands/ReminderCommand.java - Jarvis Engine → Reminder Scheduler: coordinates alarms
src/com/jarvis/core/JarvisEngine.java - Reminder Scheduler → Reminder DAO: checks reminders
src/com/jarvis/scheduler/ReminderScheduler.java - Reminder Scheduler → Windows Speech: announces alarms
src/com/jarvis/scheduler/ReminderScheduler.java - Reminder Scheduler → Audio Effects: plays alarm
src/com/jarvis/scheduler/ReminderScheduler.java - Reminder DAO → SQLite Database: reads and writes
src/com/jarvis/database/ReminderDAO.java - Interaction Log DAO → SQLite Database: writes logs
src/com/jarvis/database/InteractionLogDAO.java - Settings & Shortcuts DAOs → SQLite Database: persists settings
src/com/jarvis/database/SettingsDAO.java - Configuration → Windows Speech: configures speech
src/com/jarvis/speech/WindowsTTSService.java