# sumedhamogallapalli/personal-voice-assistant architecture

> Architecture diagram of the GitHub repository sumedhamogallapalli/personal-voice-assistant, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-15). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sumedhamogallapalli/personal-voice-assistant
- Repository: https://github.com/sumedhamogallapalli/personal-voice-assistant

## Overview

Personal Voice Assistant is a Windows-oriented voice-command application: users speak a request, `main.py` recognizes and dispatches it, and the selected capability acts on the desktop or retrieves information for a response. The README also describes web search, application control, and spoken replies. The graph retains the indexed feature modules; several module connections are dashed because their implementation was not sampled, so their invocation paths cannot be confirmed here.

Main entry points: [`main.py`](https://github.com/sumedhamogallapalli/personal-voice-assistant/blob/main/main.py) (Command recognition and routing), [`open_files.py`](https://github.com/sumedhamogallapalli/personal-voice-assistant/blob/main/open_files.py) (Application launching), [`system_info.py`](https://github.com/sumedhamogallapalli/personal-voice-assistant/blob/main/system_info.py) (System information), [`volume.py`](https://github.com/sumedhamogallapalli/personal-voice-assistant/blob/main/volume.py) (Audio volume control)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interaction["Voice interaction"]
  node_main["Command recognition and routing<br/>[main.py]"]
  node_speech["Speech recognition and replies<br/>[main.py]"]
end

subgraph group_desktop["Desktop control"]
  node_apps["Application launching<br/>[open_files.py]"]
  node_system["System information<br/>[system_info.py]"]
  node_volume["Audio volume control<br/>[volume.py]"]
  node_whatsapp["WhatsApp actions<br/>[Whats_app.py]"]
  node_files["File operations<br/>[main.py]"]
end

subgraph group_information["Information and media"]
  node_websearch["Web search<br/>[main.py]"]
  node_weather["Weather lookup<br/>[weather_app.py]"]
  node_news["News lookup<br/>[news_app.py]"]
  node_location["Location lookup<br/>[location.py]"]
  node_youtube["YouTube playback<br/>[youtube.py]"]
  node_chat["Chat interaction<br/>[chat_app.py]"]
end

subgraph group_utilities["Personal utilities"]
  node_jokes["Jokes and riddles<br/>[joke.py]"]
  node_alarms["Alarm scheduling<br/>[alarm.py]"]
  node_reminders["Reminder scheduling<br/>[remainder.py]"]
  node_snake["Snake game<br/>[snake.py]"]
end

node_user(("Voice user"))

node_user -->|"speaks commands"| node_speech
node_speech -->|"recognized command"| node_main
node_main -->|"speaks replies"| node_speech
node_main -->|"opens applications"| node_apps
node_main -->|"requests system data"| node_system
node_main -->|"handles file actions"| node_files
node_main -->|"opens search"| node_websearch
node_main -.->|"sets volume"| node_volume
node_main -.->|"uses WhatsApp actions"| node_whatsapp
node_main -.->|"requests weather"| node_weather
node_main -.->|"requests news"| node_news
node_main -.->|"requests location"| node_location
node_main -.->|"requests playback"| node_youtube
node_main -.->|"dispatches chat"| node_chat
node_main -.->|"requests jokes"| node_jokes
node_main -.->|"sets alarms"| node_alarms
node_main -.->|"sets reminders"| node_reminders
node_main -->|"starts game"| node_snake

click node_main "https://github.com/sumedhamogallapalli/personal-voice-assistant/blob/main/main.py"
click node_speech "https://github.com/sumedhamogallapalli/personal-voice-assistant/blob/main/main.py"
click node_apps "https://github.com/sumedhamogallapalli/personal-voice-assistant/blob/main/open_files.py"
click node_system "https://github.com/sumedhamogallapalli/personal-voice-assistant/blob/main/system_info.py"
click node_volume "https://github.com/sumedhamogallapalli/personal-voice-assistant/blob/main/volume.py"
click node_whatsapp "https://github.com/sumedhamogallapalli/personal-voice-assistant/blob/main/Whats_app.py"
click node_files "https://github.com/sumedhamogallapalli/personal-voice-assistant/blob/main/main.py"
click node_websearch "https://github.com/sumedhamogallapalli/personal-voice-assistant/blob/main/main.py"
click node_weather "https://github.com/sumedhamogallapalli/personal-voice-assistant/blob/main/weather_app.py"
click node_news "https://github.com/sumedhamogallapalli/personal-voice-assistant/blob/main/news_app.py"
click node_location "https://github.com/sumedhamogallapalli/personal-voice-assistant/blob/main/location.py"
click node_youtube "https://github.com/sumedhamogallapalli/personal-voice-assistant/blob/main/youtube.py"
click node_chat "https://github.com/sumedhamogallapalli/personal-voice-assistant/blob/main/chat_app.py"
click node_jokes "https://github.com/sumedhamogallapalli/personal-voice-assistant/blob/main/joke.py"
click node_alarms "https://github.com/sumedhamogallapalli/personal-voice-assistant/blob/main/alarm.py"
click node_reminders "https://github.com/sumedhamogallapalli/personal-voice-assistant/blob/main/remainder.py"
click node_snake "https://github.com/sumedhamogallapalli/personal-voice-assistant/blob/main/snake.py"

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_main,node_speech,node_user toneBlue
class node_apps,node_system,node_volume,node_whatsapp,node_files toneAmber
class node_websearch,node_weather,node_news,node_location,node_youtube,node_chat toneMint
class node_jokes,node_alarms,node_reminders,node_snake toneRose
```

## Components

### Voice interaction

- [Command recognition and routing](https://github.com/sumedhamogallapalli/personal-voice-assistant/blob/main/main.py): `main.py`
- [Speech recognition and replies](https://github.com/sumedhamogallapalli/personal-voice-assistant/blob/main/main.py): `main.py`

### Desktop control

- [Application launching](https://github.com/sumedhamogallapalli/personal-voice-assistant/blob/main/open_files.py): `open_files.py`
- [System information](https://github.com/sumedhamogallapalli/personal-voice-assistant/blob/main/system_info.py): `system_info.py`
- [Audio volume control](https://github.com/sumedhamogallapalli/personal-voice-assistant/blob/main/volume.py): `volume.py`
- [WhatsApp actions](https://github.com/sumedhamogallapalli/personal-voice-assistant/blob/main/Whats_app.py): `Whats_app.py`
- [File operations](https://github.com/sumedhamogallapalli/personal-voice-assistant/blob/main/main.py): `main.py`

### Information and media

- [Web search](https://github.com/sumedhamogallapalli/personal-voice-assistant/blob/main/main.py): `main.py`
- [Weather lookup](https://github.com/sumedhamogallapalli/personal-voice-assistant/blob/main/weather_app.py): `weather_app.py`
- [News lookup](https://github.com/sumedhamogallapalli/personal-voice-assistant/blob/main/news_app.py): `news_app.py`
- [Location lookup](https://github.com/sumedhamogallapalli/personal-voice-assistant/blob/main/location.py): `location.py`
- [YouTube playback](https://github.com/sumedhamogallapalli/personal-voice-assistant/blob/main/youtube.py): `youtube.py`
- [Chat interaction](https://github.com/sumedhamogallapalli/personal-voice-assistant/blob/main/chat_app.py): `chat_app.py`

### Personal utilities

- [Jokes and riddles](https://github.com/sumedhamogallapalli/personal-voice-assistant/blob/main/joke.py): `joke.py`
- [Alarm scheduling](https://github.com/sumedhamogallapalli/personal-voice-assistant/blob/main/alarm.py): `alarm.py`
- [Reminder scheduling](https://github.com/sumedhamogallapalli/personal-voice-assistant/blob/main/remainder.py): `remainder.py`
- [Snake game](https://github.com/sumedhamogallapalli/personal-voice-assistant/blob/main/snake.py): `snake.py`

### Other components

- **Voice user**

## Connections

- Voice user → Speech recognition and replies: speaks commands (evidence: `main.py`)
- Speech recognition and replies → Command recognition and routing: recognized command (evidence: `main.py`)
- Command recognition and routing → Speech recognition and replies: speaks replies (evidence: `main.py`)
- Command recognition and routing → Application launching: opens applications (evidence: `main.py`)
- Command recognition and routing → System information: requests system data (evidence: `main.py`)
- Command recognition and routing → File operations: handles file actions (evidence: `main.py`)
- Command recognition and routing → Web search: opens search (evidence: `main.py`)
- Command recognition and routing → Audio volume control: sets volume (evidence: `main.py`)
- Command recognition and routing → WhatsApp actions: uses WhatsApp actions (evidence: `main.py`)
- Command recognition and routing → Weather lookup: requests weather (evidence: `main.py`)
- Command recognition and routing → News lookup: requests news (evidence: `main.py`)
- Command recognition and routing → Location lookup: requests location (evidence: `main.py`)
- Command recognition and routing → YouTube playback: requests playback (evidence: `main.py`)
- Command recognition and routing → Chat interaction: dispatches chat (evidence: `main.py`)
- Command recognition and routing → Jokes and riddles: requests jokes (evidence: `main.py`)
- Command recognition and routing → Alarm scheduling: sets alarms (evidence: `main.py`)
- Command recognition and routing → Reminder scheduling: sets reminders (evidence: `main.py`)
- Command recognition and routing → Snake game: starts game (evidence: `main.py`)
