How danish-khan-coder/python-jarwis works
Jarvis accepts commands through its wake-word voice loop or a separate text terminal, then routes them to command handling. That handler supports web search, YouTube playback, headlines, weather, chat reset, and general AI conversations; responses are spoken through a shared speech module. AI conversations retain history and try Gemini before Groq. Edges follow the sampled imports and calls or README capability statements; external service links documented but not directly shown in sampled callers are marked dashed.
Main entry points: ProcessCommands.py Command Router · main.py Voice Loop · Weather.py Weather Forecast · AI.py AI Chat and Memory
Components 17
Input and Output
- Voice Loop
main.py - Text Terminal
TextCommands.py - Speech Output
Speak.py
Command Routing
- Command Router
ProcessCommands.py
Assistant Features
- Web Search
ProcessCommands.py - YouTube Playback
ProcessCommands.py - News Headlines
news.py - Weather Forecast
Weather.py - AI Chat and Memory
AI.py
External Services
- Speech Recognition
- Web Browser
- YouTube
- News Feeds
- WeatherAPI
- Gemini
- Groq
Other components
- User
Connections 20
- User → Voice Loop: speaks to
README.md - User → Text Terminal: types into
README.md - Voice Loop → Speech Recognition: transcribes audio
main.py - Voice Loop → Command Router: dispatches command
main.py - Voice Loop → Text Terminal: opens terminal
main.py - Voice Loop → Speech Output: speaks prompts
main.py - Text Terminal → Command Router: dispatches command
TextCommands.py - Command Router → Speech Output: speaks responses
ProcessCommands.py - Command Router → Web Search: opens search
ProcessCommands.py - Web Search → Web Browser: opens pages
README.md - Command Router → YouTube Playback: starts playback
ProcessCommands.py - YouTube Playback → YouTube: plays videos
ProcessCommands.py - Command Router → News Headlines: fetches headlines
ProcessCommands.py - News Headlines → News Feeds: fetches RSS
news.py - Command Router → Weather Forecast: requests forecast
ProcessCommands.py - Weather Forecast → WeatherAPI: requests conditions
Weather.py - Weather Forecast → Speech Output: speaks forecast
Weather.py - Command Router → AI Chat and Memory: asks or resets
ProcessCommands.py - AI Chat and Memory → Gemini: tries response
AI.py - AI Chat and Memory → Groq: falls back
AI.py