# wquguru/cicada architecture

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

## Overview

Cicada is a cross-platform live meeting and media interpreter: it captures computer or room audio, turns speech into bilingual transcripts and subtitles, and builds structured notes and local records. Its principal workflow is listening through recognition and translation into a session; users can then review, export, import, or share that record. Separate capabilities include talk-key interpreting, speaker identification, and AI-service configuration. The graph emphasizes the sampled macOS listening engine and shared documented product stages; other platform implementations are represented by their exact core paths, but their internal calls were not sampled.

Main entry points: [`Sources/Cicada/ListenEngine.swift`](https://github.com/wquguru/cicada/blob/main/Sources/Cicada/ListenEngine.swift) (Live listening), [`windows/src/Cicada.Core/SessionStore.cs`](https://github.com/wquguru/cicada/blob/main/windows/src/Cicada.Core/SessionStore.cs) (Session records), [`Sources/Cicada/AudioRouter.swift`](https://github.com/wquguru/cicada/blob/main/Sources/Cicada/AudioRouter.swift) (Audio sources), [`Sources/Cicada/FileImport.swift`](https://github.com/wquguru/cicada/blob/main/Sources/Cicada/FileImport.swift) (Media import)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_capture["Audio and capture"]
  node_audio["Audio sources<br/>[AudioRouter.swift]"]
  node_mac_listen["Live listening<br/>[ListenEngine.swift]"]
  node_android_listen["Android listening<br/>[ListenEngine.kt]"]
  node_windows_listen["Windows listening<br/>[ListenEngine.cs]"]
  node_linux_listen["Linux listening<br/>[listen.py]"]
end

subgraph group_speech["Speech and interpreting"]
  node_recognition["Speech recognition<br/>[Recognition.swift]"]
  node_translation["Translation and fixes<br/>[Translator.kt]"]
  node_speak["Translated speaking<br/>[SpeakEngine.swift]"]
end

subgraph group_records["Meeting records"]
  node_notes["Live meeting notes<br/>[Notes.cs]"]
  node_session[("Session records<br/>[SessionStore.cs]")]
  node_speakers["Speaker identification<br/>[speakers.py]"]
end

subgraph group_experience["App experience"]
  node_review["Record review<br/>[RecordList.swift]"]
  node_import["Media import<br/>[FileImport.swift]"]
  node_export["Export and folders<br/>[FolderExport.swift]"]
end

subgraph group_services["AI and sharing"]
  node_ai_config["AI service settings<br/>[AISettings.swift]"]
  node_providers["AI providers<br/>[Providers.kt]"]
  node_share["Record sharing<br/>[ShareClient.swift]"]
  node_share_service["Share service<br/>[shares.js]"]
end

node_user(("Meeting user"))

node_user -->|"selects audio"| node_audio
node_audio -->|"supplies audio"| node_mac_listen
node_mac_listen -->|"recognizes speech"| node_recognition
node_mac_listen -.->|"translates lines"| node_translation
node_mac_listen -.->|"updates notes"| node_notes
node_mac_listen -.->|"records session"| node_session
node_user -->|"starts listening"| node_android_listen
node_user -->|"starts listening"| node_windows_listen
node_user -->|"starts listening"| node_linux_listen
node_user -->|"holds talk key"| node_speak
node_user -->|"configures services"| node_ai_config
node_ai_config -.->|"selects provider"| node_providers
node_user -->|"reviews record"| node_review
node_user -->|"imports media"| node_import
node_import -.->|"creates record"| node_session
node_user -->|"exports record"| node_export
node_session -.->|"exports content"| node_export
node_user -->|"shares notes"| node_share
node_share -.->|"creates share link"| node_share_service
node_session -.->|"identifies speakers"| node_speakers

click node_audio "https://github.com/wquguru/cicada/blob/main/Sources/Cicada/AudioRouter.swift"
click node_mac_listen "https://github.com/wquguru/cicada/blob/main/Sources/Cicada/ListenEngine.swift"
click node_android_listen "https://github.com/wquguru/cicada/blob/main/android/core/src/main/kotlin/cicada/ListenEngine.kt"
click node_windows_listen "https://github.com/wquguru/cicada/blob/main/windows/src/Cicada.Core/ListenEngine.cs"
click node_linux_listen "https://github.com/wquguru/cicada/blob/main/linux/cicada/core/listen.py"
click node_recognition "https://github.com/wquguru/cicada/blob/main/Sources/Cicada/Recognition.swift"
click node_translation "https://github.com/wquguru/cicada/blob/main/android/core/src/main/kotlin/cicada/Translator.kt"
click node_notes "https://github.com/wquguru/cicada/blob/main/windows/src/Cicada.Core/Notes.cs"
click node_session "https://github.com/wquguru/cicada/blob/main/windows/src/Cicada.Core/SessionStore.cs"
click node_review "https://github.com/wquguru/cicada/blob/main/Sources/Cicada/RecordList.swift"
click node_import "https://github.com/wquguru/cicada/blob/main/Sources/Cicada/FileImport.swift"
click node_export "https://github.com/wquguru/cicada/blob/main/Sources/Cicada/FolderExport.swift"
click node_speak "https://github.com/wquguru/cicada/blob/main/Sources/Cicada/SpeakEngine.swift"
click node_speakers "https://github.com/wquguru/cicada/blob/main/linux/cicada/core/speakers.py"
click node_ai_config "https://github.com/wquguru/cicada/blob/main/Sources/Cicada/AISettings.swift"
click node_providers "https://github.com/wquguru/cicada/blob/main/android/core/src/main/kotlin/cicada/Providers.kt"
click node_share "https://github.com/wquguru/cicada/blob/main/Sources/Cicada/ShareClient.swift"
click node_share_service "https://github.com/wquguru/cicada/blob/main/server/src/shares.js"

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_audio,node_mac_listen,node_android_listen,node_windows_listen,node_linux_listen,node_user toneBlue
class node_recognition,node_translation,node_speak toneAmber
class node_notes,node_session,node_speakers toneMint
class node_review,node_import,node_export toneRose
class node_ai_config,node_providers,node_share,node_share_service toneIndigo
```

## Components

### Audio and capture

- [Audio sources](https://github.com/wquguru/cicada/blob/main/Sources/Cicada/AudioRouter.swift): `Sources/Cicada/AudioRouter.swift`
- [Live listening](https://github.com/wquguru/cicada/blob/main/Sources/Cicada/ListenEngine.swift): `Sources/Cicada/ListenEngine.swift`
- [Android listening](https://github.com/wquguru/cicada/blob/main/android/core/src/main/kotlin/cicada/ListenEngine.kt): `android/core/src/main/kotlin/cicada/ListenEngine.kt`
- [Windows listening](https://github.com/wquguru/cicada/blob/main/windows/src/Cicada.Core/ListenEngine.cs): `windows/src/Cicada.Core/ListenEngine.cs`
- [Linux listening](https://github.com/wquguru/cicada/blob/main/linux/cicada/core/listen.py): `linux/cicada/core/listen.py`

### Speech and interpreting

- [Speech recognition](https://github.com/wquguru/cicada/blob/main/Sources/Cicada/Recognition.swift): `Sources/Cicada/Recognition.swift`
- [Translation and fixes](https://github.com/wquguru/cicada/blob/main/android/core/src/main/kotlin/cicada/Translator.kt): `android/core/src/main/kotlin/cicada/Translator.kt`
- [Translated speaking](https://github.com/wquguru/cicada/blob/main/Sources/Cicada/SpeakEngine.swift): `Sources/Cicada/SpeakEngine.swift`

### Meeting records

- [Live meeting notes](https://github.com/wquguru/cicada/blob/main/windows/src/Cicada.Core/Notes.cs): `windows/src/Cicada.Core/Notes.cs`
- [Session records](https://github.com/wquguru/cicada/blob/main/windows/src/Cicada.Core/SessionStore.cs): `windows/src/Cicada.Core/SessionStore.cs`
- [Speaker identification](https://github.com/wquguru/cicada/blob/main/linux/cicada/core/speakers.py): `linux/cicada/core/speakers.py`

### App experience

- [Record review](https://github.com/wquguru/cicada/blob/main/Sources/Cicada/RecordList.swift): `Sources/Cicada/RecordList.swift`
- [Media import](https://github.com/wquguru/cicada/blob/main/Sources/Cicada/FileImport.swift): `Sources/Cicada/FileImport.swift`
- [Export and folders](https://github.com/wquguru/cicada/blob/main/Sources/Cicada/FolderExport.swift): `Sources/Cicada/FolderExport.swift`

### AI and sharing

- [AI service settings](https://github.com/wquguru/cicada/blob/main/Sources/Cicada/AISettings.swift): `Sources/Cicada/AISettings.swift`
- [AI providers](https://github.com/wquguru/cicada/blob/main/android/core/src/main/kotlin/cicada/Providers.kt): `android/core/src/main/kotlin/cicada/Providers.kt`
- [Record sharing](https://github.com/wquguru/cicada/blob/main/Sources/Cicada/ShareClient.swift): `Sources/Cicada/ShareClient.swift`
- [Share service](https://github.com/wquguru/cicada/blob/main/server/src/shares.js): `server/src/shares.js`

### Other components

- **Meeting user**

## Connections

- Meeting user → Audio sources: selects audio (evidence: `README.md`)
- Audio sources → Live listening: supplies audio (evidence: `Sources/Cicada/ListenEngine.swift`)
- Live listening → Speech recognition: recognizes speech (evidence: `Sources/Cicada/ListenEngine.swift`)
- Live listening → Translation and fixes: translates lines
- Live listening → Live meeting notes: updates notes
- Live listening → Session records: records session
- Meeting user → Android listening: starts listening (evidence: `README.md`)
- Meeting user → Windows listening: starts listening (evidence: `README.md`)
- Meeting user → Linux listening: starts listening (evidence: `README.md`)
- Meeting user → Translated speaking: holds talk key (evidence: `README.md`)
- Meeting user → AI service settings: configures services (evidence: `README.md`)
- AI service settings → AI providers: selects provider
- Meeting user → Record review: reviews record (evidence: `README.md`)
- Meeting user → Media import: imports media (evidence: `README.md`)
- Media import → Session records: creates record
- Meeting user → Export and folders: exports record (evidence: `README.md`)
- Session records → Export and folders: exports content
- Meeting user → Record sharing: shares notes (evidence: `README.md`)
- Record sharing → Share service: creates share link
- Session records → Speaker identification: identifies speakers
