# elvisgarcia009/jarvis-voice-assistant architecture

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

- Interactive diagram: https://gitdiagram.com/elvisgarcia009/jarvis-voice-assistant
- Repository: https://github.com/elvisgarcia009/jarvis-voice-assistant
- Video tour (about a minute): https://gitdiagram.com/elvisgarcia009/jarvis-voice-assistant/video

## Overview

Jarvis is a Linux voice assistant whose main workflow is wake-word detection, speech capture and transcription, Claude Code task execution, then streamed speech and visual feedback. The runtime is concentrated in jarvis.py, with the floating-bubble UI and a separate local Whisper worker in their own files. The README documents the major capabilities and workflow; the excerpts show UI controls and the worker protocol, but do not expose every internal call, so unsampled relationships are cited to the README rather than inferred from module names.

Main entry points: [`jarvis.py`](https://github.com/elvisgarcia009/jarvis-voice-assistant/blob/main/jarvis.py) (Speech synthesis), [`jarvis_ui.py`](https://github.com/elvisgarcia009/jarvis-voice-assistant/blob/main/jarvis_ui.py) (Floating bubble), [`jarvis_stt.py`](https://github.com/elvisgarcia009/jarvis-voice-assistant/blob/main/jarvis_stt.py) (Whisper worker)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_audio["Audio interaction"]
  node_wake["Wake detection<br/>[jarvis.py]"]
  node_vad["Speech capture<br/>[jarvis.py]"]
  node_transcription["Speech recognition<br/>[jarvis.py]"]
  node_worker["Whisper worker<br/>[jarvis_stt.py]"]
  node_speech["Speech synthesis<br/>[jarvis.py]"]
  node_interrupt["Interrupt monitor<br/>[jarvis.py]"]
end

subgraph group_assistant["Assistant runtime"]
  node_assistant_loop["Conversation loop<br/>[jarvis.py]"]
  node_prompt["Prompt and language<br/>[jarvis.py]"]
  node_sentence_stream["Sentence streaming<br/>[jarvis.py]"]
end

subgraph group_integrations["Models and state"]
  node_claude["Claude Code"]
  node_pc["Linux PC"]
  node_memory[("Conversation memory<br/>[jarvis.py]")]
  node_kokoro["Kokoro voice"]
  node_edge_tts["Edge TTS"]
end

subgraph group_interface["User interface"]
  node_activity["Activity terminal<br/>[jarvis.py]"]
  node_bubble["Floating bubble<br/>[jarvis_ui.py]"]
end

node_user(("User"))

node_user -->|"says wake word"| node_wake
node_wake -->|"wakes capture"| node_vad
node_user -->|"speaks request"| node_vad
node_vad -->|"passes audio"| node_transcription
node_transcription -->|"uses local worker"| node_worker
node_transcription -->|"passes text"| node_assistant_loop
node_assistant_loop -->|"builds request context"| node_prompt
node_assistant_loop -->|"runs task"| node_claude
node_claude -->|"acts on"| node_pc
node_assistant_loop -->|"loads and saves"| node_memory
node_claude -->|"streams answer"| node_sentence_stream
node_sentence_stream -->|"supplies sentences"| node_speech
node_speech -->|"synthesizes locally"| node_kokoro
node_speech -.->|"uses alternative voice"| node_edge_tts
node_speech -->|"plays voice"| node_user
node_user -->|"talks over speech"| node_interrupt
node_interrupt -->|"stops playback"| node_speech
node_assistant_loop -->|"updates state and captions"| node_bubble
node_speech -->|"reports voice level"| node_bubble
node_bubble -->|"controls conversation"| node_assistant_loop
node_claude -->|"shows commands"| node_activity

click node_wake "https://github.com/elvisgarcia009/jarvis-voice-assistant/blob/main/jarvis.py"
click node_vad "https://github.com/elvisgarcia009/jarvis-voice-assistant/blob/main/jarvis.py"
click node_transcription "https://github.com/elvisgarcia009/jarvis-voice-assistant/blob/main/jarvis.py"
click node_worker "https://github.com/elvisgarcia009/jarvis-voice-assistant/blob/main/jarvis_stt.py"
click node_assistant_loop "https://github.com/elvisgarcia009/jarvis-voice-assistant/blob/main/jarvis.py"
click node_prompt "https://github.com/elvisgarcia009/jarvis-voice-assistant/blob/main/jarvis.py"
click node_memory "https://github.com/elvisgarcia009/jarvis-voice-assistant/blob/main/jarvis.py"
click node_sentence_stream "https://github.com/elvisgarcia009/jarvis-voice-assistant/blob/main/jarvis.py"
click node_speech "https://github.com/elvisgarcia009/jarvis-voice-assistant/blob/main/jarvis.py"
click node_interrupt "https://github.com/elvisgarcia009/jarvis-voice-assistant/blob/main/jarvis.py"
click node_activity "https://github.com/elvisgarcia009/jarvis-voice-assistant/blob/main/jarvis.py"
click node_bubble "https://github.com/elvisgarcia009/jarvis-voice-assistant/blob/main/jarvis_ui.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_wake,node_vad,node_transcription,node_worker,node_speech,node_interrupt,node_user toneBlue
class node_assistant_loop,node_prompt,node_sentence_stream toneAmber
class node_claude,node_pc,node_memory,node_kokoro,node_edge_tts toneMint
class node_activity,node_bubble toneRose
```

## Components

### Audio interaction

- [Wake detection](https://github.com/elvisgarcia009/jarvis-voice-assistant/blob/main/jarvis.py): `jarvis.py`
- [Speech capture](https://github.com/elvisgarcia009/jarvis-voice-assistant/blob/main/jarvis.py): `jarvis.py`
- [Speech recognition](https://github.com/elvisgarcia009/jarvis-voice-assistant/blob/main/jarvis.py): `jarvis.py`
- [Whisper worker](https://github.com/elvisgarcia009/jarvis-voice-assistant/blob/main/jarvis_stt.py): `jarvis_stt.py`
- [Speech synthesis](https://github.com/elvisgarcia009/jarvis-voice-assistant/blob/main/jarvis.py): `jarvis.py`
- [Interrupt monitor](https://github.com/elvisgarcia009/jarvis-voice-assistant/blob/main/jarvis.py): `jarvis.py`

### Assistant runtime

- [Conversation loop](https://github.com/elvisgarcia009/jarvis-voice-assistant/blob/main/jarvis.py): `jarvis.py`
- [Prompt and language](https://github.com/elvisgarcia009/jarvis-voice-assistant/blob/main/jarvis.py): `jarvis.py`
- [Sentence streaming](https://github.com/elvisgarcia009/jarvis-voice-assistant/blob/main/jarvis.py): `jarvis.py`

### Models and state

- **Claude Code**
- **Linux PC**
- [Conversation memory](https://github.com/elvisgarcia009/jarvis-voice-assistant/blob/main/jarvis.py): `jarvis.py`
- **Kokoro voice**
- **Edge TTS**

### User interface

- [Activity terminal](https://github.com/elvisgarcia009/jarvis-voice-assistant/blob/main/jarvis.py): `jarvis.py`
- [Floating bubble](https://github.com/elvisgarcia009/jarvis-voice-assistant/blob/main/jarvis_ui.py): `jarvis_ui.py`

### Other components

- **User**

## Connections

- User → Wake detection: says wake word (evidence: `README.md`)
- Wake detection → Speech capture: wakes capture (evidence: `README.md`)
- User → Speech capture: speaks request (evidence: `README.md`)
- Speech capture → Speech recognition: passes audio (evidence: `README.md`)
- Speech recognition → Whisper worker: uses local worker (evidence: `README.md`)
- Speech recognition → Conversation loop: passes text (evidence: `README.md`)
- Conversation loop → Prompt and language: builds request context (evidence: `README.md`)
- Conversation loop → Claude Code: runs task (evidence: `README.md`)
- Claude Code → Linux PC: acts on (evidence: `README.md`)
- Conversation loop → Conversation memory: loads and saves (evidence: `README.md`)
- Claude Code → Sentence streaming: streams answer (evidence: `README.md`)
- Sentence streaming → Speech synthesis: supplies sentences (evidence: `README.md`)
- Speech synthesis → Kokoro voice: synthesizes locally (evidence: `README.md`)
- Speech synthesis → Edge TTS: uses alternative voice (evidence: `README.md`)
- Speech synthesis → User: plays voice (evidence: `README.md`)
- User → Interrupt monitor: talks over speech (evidence: `README.md`)
- Interrupt monitor → Speech synthesis: stops playback (evidence: `README.md`)
- Conversation loop → Floating bubble: updates state and captions (evidence: `README.md`)
- Speech synthesis → Floating bubble: reports voice level (evidence: `README.md`)
- Floating bubble → Conversation loop: controls conversation (evidence: `jarvis_ui.py`)
- Claude Code → Activity terminal: shows commands (evidence: `README.md`)
