# emisjerry/autosub-ahk architecture

> Architecture diagram of the GitHub repository emisjerry/autosub-ahk, 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/emisjerry/autosub-ahk
- Repository: https://github.com/emisjerry/autosub-ahk

## Overview

This repository packages an AutoHotkey GUI around AutoSub. The documented workflow is to add a video in the GUI, choose an output name, and run a batch script that invokes AutoSub to produce subtitles. The README also documents drag-and-drop, language-code naming, separate SRT and plain-text scripts, and language-code configuration. Source excerpts are limited to the dependency list, so implementation-level calls and integrations are not shown.

Main entry points: [`autosub-ahk.ahk`](https://github.com/emisjerry/autosub-ahk/blob/master/autosub-ahk.ahk) (AutoHotkey GUI), [`gen.bat`](https://github.com/emisjerry/autosub-ahk/blob/master/gen.bat) (SRT generator), [`gen-txt.bat`](https://github.com/emisjerry/autosub-ahk/blob/master/gen-txt.bat) (Text generator), [`autosub/autosub.exe`](https://github.com/emisjerry/autosub-ahk/blob/master/autosub/autosub.exe) (AutoSub engine)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["User interface"]
  node_gui["AutoHotkey GUI<br/>[autosub-ahk.ahk]"]
end

subgraph group_processing["Subtitle processing"]
  node_srt_script["SRT generator<br/>[gen.bat]"]
  node_text_script["Text generator<br/>[gen-txt.bat]"]
  node_autosub["AutoSub engine<br/>[autosub.exe]"]
end

subgraph group_artifacts["Configuration and output"]
  node_ini["Language settings<br/>[autosub-ahk.ini]"]
  node_subtitle["Subtitle file"]
end

node_user(("User"))

node_user -->|"uses"| node_gui
node_gui -->|"runs"| node_srt_script
node_gui -->|"runs"| node_text_script
node_srt_script -->|"invokes"| node_autosub
node_text_script -->|"invokes"| node_autosub
node_srt_script -->|"generates SRT"| node_subtitle
node_text_script -->|"generates text"| node_subtitle
node_gui -.->|"uses language codes"| node_ini

click node_gui "https://github.com/emisjerry/autosub-ahk/blob/master/autosub-ahk.ahk"
click node_ini "https://github.com/emisjerry/autosub-ahk/blob/master/autosub-ahk.ini"
click node_srt_script "https://github.com/emisjerry/autosub-ahk/blob/master/gen.bat"
click node_text_script "https://github.com/emisjerry/autosub-ahk/blob/master/gen-txt.bat"
click node_autosub "https://github.com/emisjerry/autosub-ahk/blob/master/autosub/autosub.exe"

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_gui,node_user toneBlue
class node_srt_script,node_text_script,node_autosub toneAmber
class node_ini,node_subtitle toneMint
```

## Components

### User interface

- [AutoHotkey GUI](https://github.com/emisjerry/autosub-ahk/blob/master/autosub-ahk.ahk): `autosub-ahk.ahk`

### Subtitle processing

- [SRT generator](https://github.com/emisjerry/autosub-ahk/blob/master/gen.bat): `gen.bat`
- [Text generator](https://github.com/emisjerry/autosub-ahk/blob/master/gen-txt.bat): `gen-txt.bat`
- [AutoSub engine](https://github.com/emisjerry/autosub-ahk/blob/master/autosub/autosub.exe): `autosub/autosub.exe`

### Configuration and output

- [Language settings](https://github.com/emisjerry/autosub-ahk/blob/master/autosub-ahk.ini): `autosub-ahk.ini`
- **Subtitle file**

### Other components

- **User**

## Connections

- User → AutoHotkey GUI: uses (evidence: `README.md`)
- AutoHotkey GUI → SRT generator: runs (evidence: `README.md`)
- AutoHotkey GUI → Text generator: runs (evidence: `README.md`)
- SRT generator → AutoSub engine: invokes (evidence: `README.md`)
- Text generator → AutoSub engine: invokes (evidence: `README.md`)
- SRT generator → Subtitle file: generates SRT (evidence: `README.md`)
- Text generator → Subtitle file: generates text (evidence: `README.md`)
- AutoHotkey GUI → Language settings: uses language codes
