How raushanraj435/desktop-based-virtual-assistant-using-python-based-on-natural-language-processing works
This is a modular desktop voice/text assistant. The principal flow is user input through the assistant loop, optional speech recognition, confidence-gated intent classification, command routing to local tools or memory, and spoken response. A separate training stage prepares the classifier artifacts. The README documents confirmation and a future LLM hook, but the sampled router does not show confirmation logic; those capabilities are therefore not represented as active runtime paths. Edges are limited to sampled calls and documented relationships.
Main entry points: assistant.py Assistant loop · router.py Command router · train.py Model training · main.py Application entry
Components 16
Assistant interaction
- Application entry
main.py - Assistant loop
core/assistant.py - Speech input
core/speech.py - Speech output
core/tts.py
Intent understanding
- Intent classifier
core/classifier.py - Model training
nlp/train.py - Intent examples
intents.json - Model artifacts
models
Command capabilities
- Command router
core/router.py - Web actions
tools/browser.py - Desktop apps
tools/applications.py - System controls
tools/system.py
State and operations
- Assistant memory
tools/memory.py - Structured logging
core/logger.py - Runtime configuration
config.py
Other components
- User
Connections 16
- User → Application entry: starts
README.md - Application entry → Assistant loop: launches
main.py - User → Assistant loop: provides text
core/assistant.py - Assistant loop → Speech input: captures voice
core/assistant.py - Assistant loop → Intent classifier: classifies text
core/assistant.py - Intent classifier → Model artifacts: loads model
README.md - Model training → Intent examples: trains from
README.md - Model training → Model artifacts: creates
README.md - Assistant loop → Command router: dispatches intent
core/assistant.py - Command router → Web actions: calls
core/router.py - Command router → Desktop apps: calls
core/router.py - Command router → System controls: calls
core/router.py - Command router → Assistant memory: reads and writes
core/router.py - Assistant loop → Speech output: speaks response
core/assistant.py - Assistant loop → Structured logging: logs events
core/assistant.py - Assistant loop → Runtime configuration: loads settings
core/assistant.py