How vjalaj/voxmind works
Purpose and Entry Points
VoxMind is a Python desktop voice assistant for Windows-oriented voice, keyboard, application, window, and screen-context control. The primary runtime is main.py, with voice and simulated-input modes. Alternate operational entry points expose daemon, interface, blackboard, and math workflows: run_daemon.py, run_interface.py, run_blackboard.py, and run_math_app.py.
Session Orchestration
The top-level assistant coordinates activation, continuous command handling, shutdown, and user-facing responses. Core runtime abstractions appear to separate the application-facing loop from extensible assistant services:
• main.py
• core/voxmind.py
• core/voxmind_core.py
• core/voxmind_daemon.py
• config.py
Control moves from wake activation to repeated transcription/command processing, until a shutdown intent ends the session. Daemon support is a boundary for long-running/background operation.
Voice Input and Wake Detection
Speech capture/transcription and wake-word recognition are independently implemented, allowing keyboard simulation to bypass microphone dependencies. Voice input ultimately produces text commands for downstream interpretation.
• core/speech_services.py
• core/speech_to_text.py
• core/wake_word.py
• Jalaj/speech_recognition_service.py
• Tejas/wake_word_detector.py
Material external services/dependencies include microphone/PyAudio-style capture, Google Web Speech recognition, and optional local speech components.
Language Understanding and Dispatch
Natural-language processing converts recognized text into intents and targets, then routes recognized commands toward system, input, visual, knowledge, or response functionality. Multiple parser implementations indicate an evolving/alternative parser layer rather than one isolated package.
• core/natural_language_engine.py
• core/nl_target_resolver.py
• Priyapal/command_parser.py
• Sumant/advanced_command_parser.py
• Tejas/nlp_command_parser.py
Unknown or informational input can cross the boundary into knowledge and response generation instead of OS command execution.
Desktop Automation and Platform Boundary
Desktop actions are concentrated in control modules and mediated by OS-specific platform adapters. This is the principal privileged boundary: parsed intents become application launches, window actions, mouse/keyboard input, and system controls.
• core/app_control.py
• core/app_discovery.py
• core/input_control.py
• core/platform/base.py
• core/platform/windows.py
The repository also includes Linux and macOS adapters (core/platform/linux.py, core/platform/macos.py), but README-described capabilities depend materially on Windows APIs, pywin32, and psutil.
Visual Context and Overlay Workflow
Screen-aware requests capture/analyze desktop state, perform OCR and spatial/semantic interpretation, and may feed resulting coordinates back into input control. Monitoring and overlays support continuous observation and precise visual interaction.
• core/screen_context.py
• core/ocr_engine.py
• core/screen_monitor.py
• core/spatial_analyzer.py
• core/overlay_manager.py
This layer depends on screen-capture facilities plus Tesseract or EasyOCR; it forms a safety-sensitive bridge from visible text/context to clicks.
Knowledge, Memory, Responses, and Observability
Non-action queries flow through knowledge adapters/engine and response logic. Memory, caches, performance analytics, and persistence retain context and improve repeated command handling.
• core/knowledge_engine.py
• core/knowledge_adapters.py
• core/intelligent_response.py
• core/unified_memory.py
• core/command_cache.py
• core/performance_analytics.py
Persisted local state is present in data/jarvis_memory.db and data/learned_patterns.json. TTS output is handled by speech services and contributor implementations such as minakshi/text_to_speech.py.
Optional Service/API Surface
A separate backend layer supplies HTTP-style application infrastructure—routing, health checks, rate limits, queueing, telemetry, timeouts, and circuit breaking—rather than being required for the local CLI loop.
• backend/app.py
• backend/router.py
• backend/command_queue.py
• backend/health.py
• backend/telemetry.py
Container deployment artifacts (Dockerfile, docker-compose.yml) support this broader service surface, while interface/server.py and interface/blackboard/blackboard_server.py provide optional interactive/UI endpoints.
Main entry points: voxmind.py Assistant coordinator · nl_target_resolver.py Target resolver · voxmind_core.py Core services · screen_context.py Screen context
Components 20
Assistant Runtime
- CLI entry point · Runs voice or simulated-input sessions.
main.py - Alternate entry points · Daemon, interface, blackboard, and math workflows.
run_daemon.py - Assistant coordinator · Owns activation, command loop, shutdown, and user responses.
core/voxmind.py - Core services
core/voxmind_core.py - Background daemon
core/voxmind_daemon.py
Voice & Language
- Speech services · Captures speech and produces spoken output.
core/speech_services.py - Wake detection
core/wake_word.py - Speech-to-text · Turns microphone audio into command text.
core/speech_to_text.py - Intent parsing · Converts command text into intents and targets.
core/natural_language_engine.py - Target resolver
core/nl_target_resolver.py
Desktop Control
- Application control · Launches and manages desktop applications.
core/app_control.py - Input control · Executes mouse and keyboard actions.
core/input_control.py - Windows platform adapter · Privileged Windows API boundary for system and window control.
core/platform/windows.py
Visual Context
- Screen context · Builds actionable context from the desktop display.
core/screen_context.py - OCR engine
core/ocr_engine.py - Spatial analyzer · Derives locations and semantics for visual interaction.
core/spatial_analyzer.py
Knowledge & Optional Services
- Knowledge engine · Handles non-action and informational requests.
core/knowledge_engine.py - Unified memory · Retains context and learned local state.
core/unified_memory.py - Optional backend API · Provides routing, health, queueing, telemetry, and resilience infrastructure.
backend/app.py - Optional interface server
interface/server.py
Connections 24
- CLI entry point → Assistant coordinator: starts
- Alternate entry points → Assistant coordinator: runs workflows
- Alternate entry points → Background daemon: starts daemon
- Background daemon → Core services: hosts
- Assistant coordinator → Core services: coordinates
- Assistant coordinator → Wake detection: waits for activation
- Wake detection → Speech services: activates capture
- Speech services → Speech-to-text: audio
- Speech-to-text → Intent parsing: command text
- Intent parsing → Target resolver: intent targets
- Target resolver → Application control: app intents
- Target resolver → Input control: input intents
- Application control → Windows platform adapter: OS operations
- Input control → Windows platform adapter: system input
- Target resolver → Screen context: screen-aware requests
- Screen context → OCR engine: extracts text
- Screen context → Spatial analyzer: analyzes layout
- Spatial analyzer → Input control: action coordinates · Visual interpretation can drive precise input.
- Target resolver → Knowledge engine: informational queries
- Knowledge engine → Assistant coordinator: response content
- Core services → Unified memory: reads and records context
- Assistant coordinator → Speech services: spoken response
- Optional backend API → Core services: optional service surface
- Optional interface server → Optional backend API: interactive access