# tuijbialnajah011/octgmflow architecture

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

- Interactive diagram: https://gitdiagram.com/tuijbialnajah011/octgmflow
- Repository: https://github.com/tuijbialnajah011/octgmflow

## Overview

OctgmFlow is an Android voice-typing app. The documented flow is: the user starts speech from a floating bubble, audio goes to ElevenLabs for transcription, optional formatting uses Groq, and an accessibility service inserts the resulting text into the focused field in another app. Settings store API keys locally. The repository snapshot contains no source excerpts, so component paths use the existing `app` directory and relationships are limited to those stated in the README.

Main entry points: [`app`](https://github.com/tuijbialnajah011/octgmflow/tree/main/app) (Transcription result)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interaction["Voice interaction"]
  node_floating_bubble["Floating bubble"]
  node_audio_capture["Audio capture"]
  node_mode_selection["Mode and language selection"]
end

subgraph group_processing["Speech processing"]
  node_elevenlabs{{"ElevenLabs"}}
  node_transcription["Transcription result"]
  node_groq{{"Groq formatting"}}
  node_formatted_text["Formatted text"]
end

subgraph group_insertion["Text insertion"]
  node_accessibility_service["Accessibility service"]
  node_focused_field["Focused text field"]
end

subgraph group_configuration["Configuration"]
  node_settings["Settings"]
  node_local_key_storage[("Local key storage")]
end

node_user(("User"))
node_target_app["Target app"]

node_user -->|"taps"| node_floating_bubble
node_floating_bubble -->|"starts speech"| node_audio_capture
node_user -->|"selects mode"| node_mode_selection
node_audio_capture -->|"sends audio"| node_elevenlabs
node_elevenlabs -->|"returns text"| node_transcription
node_transcription -.->|"sends for formatting"| node_groq
node_mode_selection -.->|"selects formatting"| node_groq
node_groq -.->|"returns formatted text"| node_formatted_text
node_transcription -->|"inserts text"| node_accessibility_service
node_formatted_text -.->|"inserts text"| node_accessibility_service
node_accessibility_service -->|"types into"| node_focused_field
node_focused_field -->|"appears in"| node_target_app
node_user -->|"configures keys"| node_settings
node_settings -->|"saves keys"| node_local_key_storage
node_local_key_storage -.->|"provides API key"| node_elevenlabs
node_local_key_storage -.->|"provides API key"| node_groq

click node_floating_bubble "https://github.com/tuijbialnajah011/octgmflow/tree/main/app"
click node_audio_capture "https://github.com/tuijbialnajah011/octgmflow/tree/main/app"
click node_mode_selection "https://github.com/tuijbialnajah011/octgmflow/tree/main/app"
click node_transcription "https://github.com/tuijbialnajah011/octgmflow/tree/main/app"
click node_formatted_text "https://github.com/tuijbialnajah011/octgmflow/tree/main/app"
click node_accessibility_service "https://github.com/tuijbialnajah011/octgmflow/tree/main/app"
click node_settings "https://github.com/tuijbialnajah011/octgmflow/tree/main/app"
click node_local_key_storage "https://github.com/tuijbialnajah011/octgmflow/tree/main/app"

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_floating_bubble,node_audio_capture,node_mode_selection,node_user toneBlue
class node_elevenlabs,node_transcription,node_groq,node_formatted_text toneAmber
class node_accessibility_service,node_focused_field toneMint
class node_settings,node_local_key_storage toneRose
class node_target_app toneIndigo
```

## Components

### Voice interaction

- [Floating bubble](https://github.com/tuijbialnajah011/octgmflow/tree/main/app): `app`
- [Audio capture](https://github.com/tuijbialnajah011/octgmflow/tree/main/app): `app`
- [Mode and language selection](https://github.com/tuijbialnajah011/octgmflow/tree/main/app): `app`

### Speech processing

- **ElevenLabs**
- [Transcription result](https://github.com/tuijbialnajah011/octgmflow/tree/main/app): `app`
- **Groq formatting**
- [Formatted text](https://github.com/tuijbialnajah011/octgmflow/tree/main/app): `app`

### Text insertion

- [Accessibility service](https://github.com/tuijbialnajah011/octgmflow/tree/main/app): `app`
- **Focused text field**

### Configuration

- [Settings](https://github.com/tuijbialnajah011/octgmflow/tree/main/app): `app`
- [Local key storage](https://github.com/tuijbialnajah011/octgmflow/tree/main/app): `app`

### Other components

- **User**
- **Target app**

## Connections

- User → Floating bubble: taps (evidence: `README.md`)
- Floating bubble → Audio capture: starts speech (evidence: `README.md`)
- User → Mode and language selection: selects mode (evidence: `README.md`)
- Audio capture → ElevenLabs: sends audio (evidence: `README.md`)
- ElevenLabs → Transcription result: returns text (evidence: `README.md`)
- Transcription result → Groq formatting: sends for formatting (evidence: `README.md`)
- Mode and language selection → Groq formatting: selects formatting (evidence: `README.md`)
- Groq formatting → Formatted text: returns formatted text (evidence: `README.md`)
- Transcription result → Accessibility service: inserts text (evidence: `README.md`)
- Formatted text → Accessibility service: inserts text (evidence: `README.md`)
- Accessibility service → Focused text field: types into (evidence: `README.md`)
- Focused text field → Target app: appears in (evidence: `README.md`)
- User → Settings: configures keys (evidence: `README.md`)
- Settings → Local key storage: saves keys (evidence: `README.md`)
- Local key storage → ElevenLabs: provides API key (evidence: `README.md`)
- Local key storage → Groq formatting: provides API key (evidence: `README.md`)
