# masterbaconman/jarvis-clip-that architecture

> Architecture diagram of the GitHub repository masterbaconman/jarvis-clip-that, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-24). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/masterbaconman/jarvis-clip-that
- Repository: https://github.com/masterbaconman/jarvis-clip-that

## Overview

Jarvis-clip-that is a voice-controlled desktop assistant for OBS replay-buffer/recording commands, media and volume controls, and user-defined keyboard macros. The main workflow is microphone capture and Google speech recognition, shared-text handoff, wake-word/command handling, then dispatch to OBS, desktop media controls, or macro playback. The GUI configures the wake name, microphone, and OBS password; a separate editor captures macro keystrokes. Edges reflect shown calls and file handoffs; OBS and speech-recognition capabilities are also documented. The README describes some behavior not fully represented in the sampled code, and no unsampled implementation details are assumed.

Main entry points: [`PythonCodes/Jarvis/Jarvis.py`](https://github.com/masterbaconman/jarvis-clip-that/blob/main/PythonCodes/Jarvis/Jarvis.py) (Command interpreter), [`PythonCodes/Speech/STT.py`](https://github.com/masterbaconman/jarvis-clip-that/blob/main/PythonCodes/Speech/STT.py) (Speech recognition), [`PythonCodes/GUI/FileAddEdit.py`](https://github.com/masterbaconman/jarvis-clip-that/blob/main/PythonCodes/GUI/FileAddEdit.py) (Macro editor), [`PythonCodes/GUI/GUI.py`](https://github.com/masterbaconman/jarvis-clip-that/blob/main/PythonCodes/GUI/GUI.py) (Settings GUI)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_capture["Speech capture"]
  node_stt["Speech recognition<br/>[STT.py]"]
  node_transcript[("Transcript file<br/>[text.txt]")]
  node_google{{"Google recognition"}}
end

subgraph group_control["Command handling"]
  node_launcher["Process launcher<br/>[launch.py]"]
  node_commands["Command interpreter<br/>[Jarvis.py]"]
  node_status[("Command status<br/>[Status.txt]")]
end

subgraph group_interface["Settings and macros"]
  node_settings[("User settings<br/>[Settings.txt]")]
  node_main_gui["Settings GUI<br/>[GUI.py]"]
  node_macro_gui["Macro editor<br/>[FileAddEdit.py]"]
  node_macro_names[("Macro names<br/>[macro.txt]")]
end

subgraph group_actions["Desktop actions"]
  node_obs_actions["OBS controls<br/>[clip.py]"]
  node_obs{{"OBS WebSocket"}}
  node_desktop{{"Desktop controls"}}
end

node_user(("Voice user"))

node_user -->|"speaks to"| node_stt
node_stt -->|"recognizes audio"| node_google
node_stt -->|"writes transcript"| node_transcript
node_launcher -->|"starts process"| node_stt
node_launcher -->|"starts process"| node_commands
node_launcher -->|"starts process"| node_main_gui
node_commands -->|"reads transcript"| node_transcript
node_commands -->|"reads names"| node_macro_names
node_commands -->|"writes command"| node_status
node_commands -->|"calls OBS controls"| node_obs_actions
node_obs_actions -->|"sends requests"| node_obs
node_commands -->|"presses media keys"| node_desktop
node_main_gui -->|"reads and saves"| node_settings
node_main_gui -->|"opens editor"| node_macro_gui
node_macro_gui -->|"writes names"| node_macro_names
node_macro_gui -->|"polls commands"| node_status
node_macro_gui -->|"plays keystrokes"| node_desktop
node_stt -->|"reads microphone"| node_settings
node_obs_actions -->|"reads password"| node_settings
node_user -->|"configures assistant"| node_main_gui

click node_stt "https://github.com/masterbaconman/jarvis-clip-that/blob/main/PythonCodes/Speech/STT.py"
click node_transcript "https://github.com/masterbaconman/jarvis-clip-that/blob/main/PythonCodes/Speech/text.txt"
click node_launcher "https://github.com/masterbaconman/jarvis-clip-that/blob/main/launch.py"
click node_commands "https://github.com/masterbaconman/jarvis-clip-that/blob/main/PythonCodes/Jarvis/Jarvis.py"
click node_status "https://github.com/masterbaconman/jarvis-clip-that/blob/main/PythonCodes/Jarvis/Status.txt"
click node_settings "https://github.com/masterbaconman/jarvis-clip-that/blob/main/PythonCodes/GUI/Settings.txt"
click node_main_gui "https://github.com/masterbaconman/jarvis-clip-that/blob/main/PythonCodes/GUI/GUI.py"
click node_macro_gui "https://github.com/masterbaconman/jarvis-clip-that/blob/main/PythonCodes/GUI/FileAddEdit.py"
click node_macro_names "https://github.com/masterbaconman/jarvis-clip-that/blob/main/PythonCodes/GUI/macro.txt"
click node_obs_actions "https://github.com/masterbaconman/jarvis-clip-that/blob/main/PythonCodes/Jarvis/clip.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_stt,node_transcript,node_google,node_user toneBlue
class node_launcher,node_commands,node_status toneAmber
class node_settings,node_main_gui,node_macro_gui,node_macro_names toneMint
class node_obs_actions,node_obs,node_desktop toneRose
```

## Components

### Speech capture

- [Speech recognition](https://github.com/masterbaconman/jarvis-clip-that/blob/main/PythonCodes/Speech/STT.py): `PythonCodes/Speech/STT.py`
- [Transcript file](https://github.com/masterbaconman/jarvis-clip-that/blob/main/PythonCodes/Speech/text.txt): `PythonCodes/Speech/text.txt`
- **Google recognition**

### Command handling

- [Process launcher](https://github.com/masterbaconman/jarvis-clip-that/blob/main/launch.py): `launch.py`
- [Command interpreter](https://github.com/masterbaconman/jarvis-clip-that/blob/main/PythonCodes/Jarvis/Jarvis.py): `PythonCodes/Jarvis/Jarvis.py`
- [Command status](https://github.com/masterbaconman/jarvis-clip-that/blob/main/PythonCodes/Jarvis/Status.txt): `PythonCodes/Jarvis/Status.txt`

### Settings and macros

- [User settings](https://github.com/masterbaconman/jarvis-clip-that/blob/main/PythonCodes/GUI/Settings.txt): `PythonCodes/GUI/Settings.txt`
- [Settings GUI](https://github.com/masterbaconman/jarvis-clip-that/blob/main/PythonCodes/GUI/GUI.py): `PythonCodes/GUI/GUI.py`
- [Macro editor](https://github.com/masterbaconman/jarvis-clip-that/blob/main/PythonCodes/GUI/FileAddEdit.py): `PythonCodes/GUI/FileAddEdit.py`
- [Macro names](https://github.com/masterbaconman/jarvis-clip-that/blob/main/PythonCodes/GUI/macro.txt): `PythonCodes/GUI/macro.txt`

### Desktop actions

- [OBS controls](https://github.com/masterbaconman/jarvis-clip-that/blob/main/PythonCodes/Jarvis/clip.py): `PythonCodes/Jarvis/clip.py`
- **OBS WebSocket**
- **Desktop controls**

### Other components

- **Voice user**

## Connections

- Voice user → Speech recognition: speaks to (evidence: `README.md`)
- Speech recognition → Google recognition: recognizes audio (evidence: `PythonCodes/Speech/STT.py`)
- Speech recognition → Transcript file: writes transcript (evidence: `PythonCodes/Speech/STT.py`)
- Process launcher → Speech recognition: starts process (evidence: `launch.py`)
- Process launcher → Command interpreter: starts process (evidence: `launch.py`)
- Process launcher → Settings GUI: starts process (evidence: `launch.py`)
- Command interpreter → Transcript file: reads transcript (evidence: `PythonCodes/Jarvis/Jarvis.py`)
- Command interpreter → Macro names: reads names (evidence: `PythonCodes/Jarvis/Jarvis.py`)
- Command interpreter → Command status: writes command (evidence: `PythonCodes/Jarvis/Jarvis.py`)
- Command interpreter → OBS controls: calls OBS controls (evidence: `PythonCodes/Jarvis/Jarvis.py`)
- OBS controls → OBS WebSocket: sends requests (evidence: `PythonCodes/Jarvis/clip.py`)
- Command interpreter → Desktop controls: presses media keys (evidence: `PythonCodes/Jarvis/Jarvis.py`)
- Settings GUI → User settings: reads and saves (evidence: `PythonCodes/GUI/GUI.py`)
- Settings GUI → Macro editor: opens editor (evidence: `PythonCodes/GUI/GUI.py`)
- Macro editor → Macro names: writes names (evidence: `PythonCodes/GUI/FileAddEdit.py`)
- Macro editor → Command status: polls commands (evidence: `PythonCodes/GUI/FileAddEdit.py`)
- Macro editor → Desktop controls: plays keystrokes (evidence: `PythonCodes/GUI/FileAddEdit.py`)
- Speech recognition → User settings: reads microphone (evidence: `PythonCodes/Speech/STT.py`)
- OBS controls → User settings: reads password (evidence: `PythonCodes/Jarvis/clip.py`)
- Voice user → Settings GUI: configures assistant (evidence: `README.md`)
