# anubhavchaturvedi-github/jarvis-ai-assistant architecture

> Architecture diagram of the GitHub repository anubhavchaturvedi-github/jarvis-ai-assistant, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-26). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/anubhavchaturvedi-github/jarvis-ai-assistant
- Repository: https://github.com/anubhavchaturvedi-github/jarvis-ai-assistant

## Overview

J.A.R.V.I.S is a voice-controlled desktop assistant: a user speaks, speech recognition produces text for intent routing, and the selected capability performs a task before the assistant speaks a reply. The README identifies reasoning and conversation memory, live search, image generation, vision, desktop automation, WhatsApp, weather, and scheduling as major capabilities. The sampled code confirms speech input/output and several service integrations, but the main router and many feature implementations were not sampled; their documented routing links are therefore shown at subsystem level only.

Main entry points: [`jarvis.py`](https://github.com/anubhavchaturvedi-github/jarvis-ai-assistant/blob/main/jarvis.py) (Intent router), [`NetHyTechSTT/listen.py`](https://github.com/anubhavchaturvedi-github/jarvis-ai-assistant/blob/main/NetHyTechSTT/listen.py) (Speech recognition), [`TextToSpeech/Fast_DF_TTS.py`](https://github.com/anubhavchaturvedi-github/jarvis-ai-assistant/blob/main/TextToSpeech/Fast_DF_TTS.py) (Speech output), [`ui.py`](https://github.com/anubhavchaturvedi-github/jarvis-ai-assistant/blob/main/ui.py) (Desktop interface)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interaction["Voice interaction"]
  node_stt["Speech recognition<br/>[listen.py]"]
  node_speech["Speech output<br/>[Fast_DF_TTS.py]"]
  node_ui["Desktop interface<br/>[ui.py]"]
end

subgraph group_reasoning["Reasoning and routing"]
  node_router["Intent router<br/>[jarvis.py]"]
  node_brain["Reasoning and memory<br/>[co_brain.py]"]
end

subgraph group_information["Information and media"]
  node_search["Live web search"]
  node_image["Image generation<br/>[gen_image.py]"]
  node_vision["Camera vision"]
  node_weather["Weather lookup<br/>[check_weather.py]"]
end

subgraph group_actions["Assistant actions"]
  node_automation["Desktop automation"]
  node_whatsapp["WhatsApp messaging<br/>[wa.py]"]
  node_schedule["Alarms and scheduling"]
end

node_user(("User"))
node_searchsvc(("Web search"))
node_taskapps(("Desktop and web apps"))
node_whatsappservice(("WhatsApp service"))
node_ttsservice(("Speech synthesis service"))

node_user -->|"speaks"| node_stt
node_stt -->|"writes recognized text"| node_router
node_user -.->|"uses"| node_ui
node_ui -.->|"submits requests"| node_router
node_router -->|"requests reasoning"| node_brain
node_router -->|"routes search"| node_search
node_router -->|"routes generation"| node_image
node_router -->|"routes vision"| node_vision
node_router -->|"routes weather"| node_weather
node_router -->|"routes tasks"| node_automation
node_router -->|"routes messages"| node_whatsapp
node_router -->|"routes scheduling"| node_schedule
node_search -->|"searches web"| node_searchsvc
node_weather -->|"fetches weather"| node_searchsvc
node_automation -->|"controls apps"| node_taskapps
node_whatsapp -->|"sends messages"| node_whatsappservice
node_speech -->|"requests audio"| node_ttsservice
node_router -->|"speaks response"| node_speech

click node_stt "https://github.com/anubhavchaturvedi-github/jarvis-ai-assistant/blob/main/NetHyTechSTT/listen.py"
click node_router "https://github.com/anubhavchaturvedi-github/jarvis-ai-assistant/blob/main/jarvis.py"
click node_brain "https://github.com/anubhavchaturvedi-github/jarvis-ai-assistant/blob/main/co_brain.py"
click node_speech "https://github.com/anubhavchaturvedi-github/jarvis-ai-assistant/blob/main/TextToSpeech/Fast_DF_TTS.py"
click node_ui "https://github.com/anubhavchaturvedi-github/jarvis-ai-assistant/blob/main/ui.py"
click node_search "https://github.com/anubhavchaturvedi-github/jarvis-ai-assistant/tree/main/Real_Time"
click node_image "https://github.com/anubhavchaturvedi-github/jarvis-ai-assistant/blob/main/TextToImage/gen_image.py"
click node_vision "https://github.com/anubhavchaturvedi-github/jarvis-ai-assistant/tree/main/Vision"
click node_weather "https://github.com/anubhavchaturvedi-github/jarvis-ai-assistant/blob/main/Weather_Check/check_weather.py"
click node_automation "https://github.com/anubhavchaturvedi-github/jarvis-ai-assistant/tree/main/Automation"
click node_whatsapp "https://github.com/anubhavchaturvedi-github/jarvis-ai-assistant/blob/main/Whatsapp_automation/wa.py"
click node_schedule "https://github.com/anubhavchaturvedi-github/jarvis-ai-assistant/tree/main/Time_Operations"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_stt,node_speech,node_ui,node_user toneBlue
class node_router,node_brain toneAmber
class node_search,node_image,node_vision,node_weather toneMint
class node_automation,node_whatsapp,node_schedule toneRose
class node_searchsvc,node_taskapps,node_whatsappservice,node_ttsservice toneIndigo
```

## Components

### Voice interaction

- [Speech recognition](https://github.com/anubhavchaturvedi-github/jarvis-ai-assistant/blob/main/NetHyTechSTT/listen.py): `NetHyTechSTT/listen.py`
- [Speech output](https://github.com/anubhavchaturvedi-github/jarvis-ai-assistant/blob/main/TextToSpeech/Fast_DF_TTS.py): `TextToSpeech/Fast_DF_TTS.py`
- [Desktop interface](https://github.com/anubhavchaturvedi-github/jarvis-ai-assistant/blob/main/ui.py): `ui.py`

### Reasoning and routing

- [Intent router](https://github.com/anubhavchaturvedi-github/jarvis-ai-assistant/blob/main/jarvis.py): `jarvis.py`
- [Reasoning and memory](https://github.com/anubhavchaturvedi-github/jarvis-ai-assistant/blob/main/co_brain.py): `co_brain.py`

### Information and media

- [Live web search](https://github.com/anubhavchaturvedi-github/jarvis-ai-assistant/tree/main/Real_Time): `Real_Time`
- [Image generation](https://github.com/anubhavchaturvedi-github/jarvis-ai-assistant/blob/main/TextToImage/gen_image.py): `TextToImage/gen_image.py`
- [Camera vision](https://github.com/anubhavchaturvedi-github/jarvis-ai-assistant/tree/main/Vision): `Vision`
- [Weather lookup](https://github.com/anubhavchaturvedi-github/jarvis-ai-assistant/blob/main/Weather_Check/check_weather.py): `Weather_Check/check_weather.py`

### Assistant actions

- [Desktop automation](https://github.com/anubhavchaturvedi-github/jarvis-ai-assistant/tree/main/Automation): `Automation`
- [WhatsApp messaging](https://github.com/anubhavchaturvedi-github/jarvis-ai-assistant/blob/main/Whatsapp_automation/wa.py): `Whatsapp_automation/wa.py`
- [Alarms and scheduling](https://github.com/anubhavchaturvedi-github/jarvis-ai-assistant/tree/main/Time_Operations): `Time_Operations`

### Other components

- **User**
- **Web search**
- **Desktop and web apps**
- **WhatsApp service**
- **Speech synthesis service**

## Connections

- User → Speech recognition: speaks
- Speech recognition → Intent router: writes recognized text
- User → Desktop interface: uses
- Desktop interface → Intent router: submits requests
- Intent router → Reasoning and memory: requests reasoning
- Intent router → Live web search: routes search
- Intent router → Image generation: routes generation
- Intent router → Camera vision: routes vision
- Intent router → Weather lookup: routes weather
- Intent router → Desktop automation: routes tasks
- Intent router → WhatsApp messaging: routes messages
- Intent router → Alarms and scheduling: routes scheduling
- Live web search → Web search: searches web
- Weather lookup → Web search: fetches weather
- Desktop automation → Desktop and web apps: controls apps
- WhatsApp messaging → WhatsApp service: sends messages
- Speech output → Speech synthesis service: requests audio
- Intent router → Speech output: speaks response
