# varshith707/unlimited-wisprflow architecture

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

- Interactive diagram: https://gitdiagram.com/varshith707/unlimited-wisprflow
- Repository: https://github.com/varshith707/unlimited-wisprflow

## Overview

VoiceType is a local Windows dictation app: a global hotkey starts microphone capture; the app transcribes locally, optionally cleans the transcript, then inserts it into the previously focused text field or copies it to the clipboard. The graph also preserves model management, history, correction learning, settings, and voice-data recording as documented capabilities. Several internal links are supported by the SOURCE INDEX or README rather than sampled call sites; optional Ollama cleanup is shown separately.

Main entry points: [`voicetype/app.py`](https://github.com/varshith707/unlimited-wisprflow/blob/main/voicetype/app.py) (App coordinator), [`voicetype/ui/main_window.py`](https://github.com/varshith707/unlimited-wisprflow/blob/main/voicetype/ui/main_window.py) (Main window and tabs), [`voicetype/transcriber.py`](https://github.com/varshith707/unlimited-wisprflow/blob/main/voicetype/transcriber.py) (Transcriber), [`voicetype/dictation.py`](https://github.com/varshith707/unlimited-wisprflow/blob/main/voicetype/dictation.py) (Dictation controller)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_control["App control"]
  node_app["App coordinator<br/>[app.py]"]
  node_hotkeys["Global hotkeys<br/>[hotkeys.py]"]
  node_dictation["Dictation controller<br/>[dictation.py]"]
end

subgraph group_speech["Speech pipeline"]
  node_audio["Microphone capture<br/>[audio.py]"]
  node_transcriber["Transcriber<br/>[transcriber.py]"]
  node_speech_engine["Whisper engine<br/>[speech.py]"]
  node_models["Speech models<br/>[models.py]"]
  node_cleanup["Transcript cleanup<br/>[cleanup.py]"]
  node_textproc["Text processing<br/>[textproc.py]"]
end

subgraph group_delivery["Text delivery"]
  node_insertion["Text insertion<br/>[insertion.py]"]
end

subgraph group_data["Local data"]
  node_history[("Dictation history<br/>[history.py]")]
  node_learner["Edit watcher<br/>[learner.py]"]
  node_memory[("Correction memory<br/>[memory.py]")]
  node_config[("Settings store<br/>[config.py]")]
  node_voice_data["Voice dataset recording<br/>[voicedata.py]"]
end

subgraph group_interface["User interface"]
  node_window["Main window and tabs<br/>[main_window.py]"]
  node_home["Dictation home<br/>[home_page.py]"]
  node_settings_ui["Settings and vocabulary<br/>[settings_page.py]"]
  node_models_ui["Model manager<br/>[models_page.py]"]
  node_history_ui["History browser<br/>[history_page.py]"]
  node_memory_ui["Memory manager<br/>[memory_page.py]"]
end

node_user(("VoiceType user"))
node_ollama["Ollama local AI"]

node_user -->|"presses hotkey"| node_hotkeys
node_hotkeys -->|"dispatches actions"| node_app
node_app -->|"configures"| node_dictation
node_dictation -->|"captures audio"| node_audio
node_dictation -->|"requests transcription"| node_transcriber
node_transcriber -->|"transcribes audio"| node_speech_engine
node_speech_engine -->|"loads model"| node_models
node_transcriber -->|"cleans transcript"| node_cleanup
node_transcriber -->|"processes text"| node_textproc
node_cleanup -.->|"requests local cleanup"| node_ollama
node_dictation -->|"inserts result"| node_insertion
node_insertion -->|"pastes or copies"| node_user
node_app -->|"records dictations"| node_history
node_app -->|"starts edit watcher"| node_learner
node_learner -->|"stores corrections"| node_memory
node_transcriber -->|"uses learned vocabulary"| node_memory
node_app -->|"loads settings"| node_config
node_voice_data -->|"records samples"| node_audio
node_app -->|"creates window"| node_window
node_window -->|"shows tab"| node_home
node_window -->|"shows tab"| node_settings_ui
node_window -->|"shows tab"| node_models_ui
node_window -->|"shows tab"| node_history_ui
node_window -->|"shows tab"| node_memory_ui
node_home -->|"controls dictation"| node_dictation
node_settings_ui -->|"saves preferences"| node_config
node_models_ui -->|"manages downloads"| node_models
node_history_ui -->|"browses history"| node_history
node_memory_ui -->|"manages corrections"| node_memory

click node_app "https://github.com/varshith707/unlimited-wisprflow/blob/main/voicetype/app.py"
click node_hotkeys "https://github.com/varshith707/unlimited-wisprflow/blob/main/voicetype/hotkeys.py"
click node_dictation "https://github.com/varshith707/unlimited-wisprflow/blob/main/voicetype/dictation.py"
click node_audio "https://github.com/varshith707/unlimited-wisprflow/blob/main/voicetype/audio.py"
click node_transcriber "https://github.com/varshith707/unlimited-wisprflow/blob/main/voicetype/transcriber.py"
click node_speech_engine "https://github.com/varshith707/unlimited-wisprflow/blob/main/voicetype/speech.py"
click node_models "https://github.com/varshith707/unlimited-wisprflow/blob/main/voicetype/models.py"
click node_cleanup "https://github.com/varshith707/unlimited-wisprflow/blob/main/voicetype/cleanup.py"
click node_textproc "https://github.com/varshith707/unlimited-wisprflow/blob/main/voicetype/textproc.py"
click node_insertion "https://github.com/varshith707/unlimited-wisprflow/blob/main/voicetype/insertion.py"
click node_history "https://github.com/varshith707/unlimited-wisprflow/blob/main/voicetype/history.py"
click node_learner "https://github.com/varshith707/unlimited-wisprflow/blob/main/voicetype/learner.py"
click node_memory "https://github.com/varshith707/unlimited-wisprflow/blob/main/voicetype/memory.py"
click node_config "https://github.com/varshith707/unlimited-wisprflow/blob/main/voicetype/config.py"
click node_voice_data "https://github.com/varshith707/unlimited-wisprflow/blob/main/voicetype/voicedata.py"
click node_window "https://github.com/varshith707/unlimited-wisprflow/blob/main/voicetype/ui/main_window.py"
click node_home "https://github.com/varshith707/unlimited-wisprflow/blob/main/voicetype/ui/home_page.py"
click node_settings_ui "https://github.com/varshith707/unlimited-wisprflow/blob/main/voicetype/ui/settings_page.py"
click node_models_ui "https://github.com/varshith707/unlimited-wisprflow/blob/main/voicetype/ui/models_page.py"
click node_history_ui "https://github.com/varshith707/unlimited-wisprflow/blob/main/voicetype/ui/history_page.py"
click node_memory_ui "https://github.com/varshith707/unlimited-wisprflow/blob/main/voicetype/ui/memory_page.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_app,node_hotkeys,node_dictation,node_user toneBlue
class node_audio,node_transcriber,node_speech_engine,node_models,node_cleanup,node_textproc toneAmber
class node_insertion toneMint
class node_history,node_learner,node_memory,node_config,node_voice_data toneRose
class node_window,node_home,node_settings_ui,node_models_ui,node_history_ui,node_memory_ui,node_ollama toneIndigo
```

## Components

### App control

- [App coordinator](https://github.com/varshith707/unlimited-wisprflow/blob/main/voicetype/app.py): `voicetype/app.py`
- [Global hotkeys](https://github.com/varshith707/unlimited-wisprflow/blob/main/voicetype/hotkeys.py): `voicetype/hotkeys.py`
- [Dictation controller](https://github.com/varshith707/unlimited-wisprflow/blob/main/voicetype/dictation.py): `voicetype/dictation.py`

### Speech pipeline

- [Microphone capture](https://github.com/varshith707/unlimited-wisprflow/blob/main/voicetype/audio.py): `voicetype/audio.py`
- [Transcriber](https://github.com/varshith707/unlimited-wisprflow/blob/main/voicetype/transcriber.py): `voicetype/transcriber.py`
- [Whisper engine](https://github.com/varshith707/unlimited-wisprflow/blob/main/voicetype/speech.py): `voicetype/speech.py`
- [Speech models](https://github.com/varshith707/unlimited-wisprflow/blob/main/voicetype/models.py): `voicetype/models.py`
- [Transcript cleanup](https://github.com/varshith707/unlimited-wisprflow/blob/main/voicetype/cleanup.py): `voicetype/cleanup.py`
- [Text processing](https://github.com/varshith707/unlimited-wisprflow/blob/main/voicetype/textproc.py): `voicetype/textproc.py`

### Text delivery

- [Text insertion](https://github.com/varshith707/unlimited-wisprflow/blob/main/voicetype/insertion.py): `voicetype/insertion.py`

### Local data

- [Dictation history](https://github.com/varshith707/unlimited-wisprflow/blob/main/voicetype/history.py): `voicetype/history.py`
- [Edit watcher](https://github.com/varshith707/unlimited-wisprflow/blob/main/voicetype/learner.py): `voicetype/learner.py`
- [Correction memory](https://github.com/varshith707/unlimited-wisprflow/blob/main/voicetype/memory.py): `voicetype/memory.py`
- [Settings store](https://github.com/varshith707/unlimited-wisprflow/blob/main/voicetype/config.py): `voicetype/config.py`
- [Voice dataset recording](https://github.com/varshith707/unlimited-wisprflow/blob/main/voicetype/voicedata.py): `voicetype/voicedata.py`

### User interface

- [Main window and tabs](https://github.com/varshith707/unlimited-wisprflow/blob/main/voicetype/ui/main_window.py): `voicetype/ui/main_window.py`
- [Dictation home](https://github.com/varshith707/unlimited-wisprflow/blob/main/voicetype/ui/home_page.py): `voicetype/ui/home_page.py`
- [Settings and vocabulary](https://github.com/varshith707/unlimited-wisprflow/blob/main/voicetype/ui/settings_page.py): `voicetype/ui/settings_page.py`
- [Model manager](https://github.com/varshith707/unlimited-wisprflow/blob/main/voicetype/ui/models_page.py): `voicetype/ui/models_page.py`
- [History browser](https://github.com/varshith707/unlimited-wisprflow/blob/main/voicetype/ui/history_page.py): `voicetype/ui/history_page.py`
- [Memory manager](https://github.com/varshith707/unlimited-wisprflow/blob/main/voicetype/ui/memory_page.py): `voicetype/ui/memory_page.py`

### Other components

- **VoiceType user**
- **Ollama local AI**

## Connections

- VoiceType user → Global hotkeys: presses hotkey (evidence: `README.md`)
- Global hotkeys → App coordinator: dispatches actions (evidence: `voicetype/app.py`)
- App coordinator → Dictation controller: configures (evidence: `voicetype/app.py`)
- Dictation controller → Microphone capture: captures audio (evidence: `voicetype/dictation.py`)
- Dictation controller → Transcriber: requests transcription (evidence: `voicetype/app.py`)
- Transcriber → Whisper engine: transcribes audio (evidence: `voicetype/transcriber.py`)
- Whisper engine → Speech models: loads model (evidence: `voicetype/speech.py`)
- Transcriber → Transcript cleanup: cleans transcript (evidence: `voicetype/transcriber.py`)
- Transcriber → Text processing: processes text (evidence: `voicetype/transcriber.py`)
- Transcript cleanup → Ollama local AI: requests local cleanup (evidence: `README.md`)
- Dictation controller → Text insertion: inserts result (evidence: `voicetype/dictation.py`)
- Text insertion → VoiceType user: pastes or copies (evidence: `README.md`)
- App coordinator → Dictation history: records dictations (evidence: `voicetype/app.py`)
- App coordinator → Edit watcher: starts edit watcher (evidence: `voicetype/app.py`)
- Edit watcher → Correction memory: stores corrections (evidence: `voicetype/learner.py`)
- Transcriber → Correction memory: uses learned vocabulary (evidence: `voicetype/transcriber.py`)
- App coordinator → Settings store: loads settings (evidence: `voicetype/app.py`)
- Voice dataset recording → Microphone capture: records samples (evidence: `scripts/record_voice.py`)
- App coordinator → Main window and tabs: creates window (evidence: `voicetype/app.py`)
- Main window and tabs → Dictation home: shows tab (evidence: `voicetype/ui/main_window.py`)
- Main window and tabs → Settings and vocabulary: shows tab (evidence: `voicetype/ui/main_window.py`)
- Main window and tabs → Model manager: shows tab (evidence: `voicetype/ui/main_window.py`)
- Main window and tabs → History browser: shows tab (evidence: `voicetype/ui/main_window.py`)
- Main window and tabs → Memory manager: shows tab (evidence: `voicetype/ui/main_window.py`)
- Dictation home → Dictation controller: controls dictation (evidence: `voicetype/ui/home_page.py`)
- Settings and vocabulary → Settings store: saves preferences (evidence: `voicetype/ui/settings_page.py`)
- Model manager → Speech models: manages downloads (evidence: `voicetype/ui/models_page.py`)
- History browser → Dictation history: browses history (evidence: `voicetype/ui/history_page.py`)
- Memory manager → Correction memory: manages corrections (evidence: `voicetype/ui/memory_page.py`)
