# maria-biruk/hearme architecture

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

- Interactive diagram: https://gitdiagram.com/maria-biruk/hearme
- Repository: https://github.com/maria-biruk/hearme

## Overview

HearMe is an accessible conversation interface centered on short Amharic speech recordings: the speaker records audio, the frontend submits it for transcription, and the recognized text appears as captions for the other participant. That participant can reply by typing or choosing a quick reply. The frontend also provides accessibility settings and localized interface text. Backend routing and ASR invocation are visible in the excerpts; the README documents the broader audio-processing/model workflow, but the audio processor implementation was not sampled, so its internal connections are omitted.

Main entry points: [`frontend/src/pages/Home.jsx`](https://github.com/maria-biruk/hearme/blob/main/frontend/src/pages/Home.jsx) (Conversation workspace), [`backend/app/api/routes.py`](https://github.com/maria-biruk/hearme/blob/main/backend/app/api/routes.py) (API routes), [`frontend/src/components/Microphone.jsx`](https://github.com/maria-biruk/hearme/blob/main/frontend/src/components/Microphone.jsx) (Microphone capture), [`frontend/src/components/SettingsPanel.jsx`](https://github.com/maria-biruk/hearme/blob/main/frontend/src/components/SettingsPanel.jsx) (Accessibility settings)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_conversation["Conversation interface"]
  node_app["Application shell<br/>[App.jsx]"]
  node_home["Conversation workspace<br/>[Home.jsx]"]
  node_microphone["Microphone capture<br/>[Microphone.jsx]"]
  node_captions["Caption display<br/>[CaptionDisplay.jsx]"]
  node_quick_replies["Quick replies<br/>[QuickReplies.jsx]"]
  node_settings_panel["Accessibility settings<br/>[SettingsPanel.jsx]"]
end

subgraph group_frontend_support["Frontend support"]
  node_api_client["Transcription API client<br/>[api.js]"]
  node_translations["Interface translations<br/>[i18n.js]"]
  node_settings["Settings persistence<br/>[settings.js]"]
end

subgraph group_backend["Transcription backend"]
  node_api_routes["API routes<br/>[routes.py]"]
  node_api_app["FastAPI application<br/>[main.py]"]
  node_config["API configuration<br/>[config.py]"]
  node_audio_processing["Audio processing"]
  node_asr_service["ASR service<br/>[asr_service.py]"]
end

subgraph group_recognition["Speech recognition"]
  node_asr_model["Amharic ASR inference<br/>[hearme_asr.py]"]
end

node_speaker(("Speaker"))
node_partner(("Conversation partner"))

node_app -->|"renders"| node_home
node_app -->|"loads and saves"| node_settings
node_app -->|"uses text"| node_translations
node_home -->|"renders"| node_microphone
node_home -->|"renders"| node_captions
node_home -->|"renders"| node_quick_replies
node_home -->|"renders"| node_settings_panel
node_home -->|"checks health"| node_api_client
node_microphone -->|"submits recording"| node_api_client
node_microphone -->|"reports captions"| node_home
node_quick_replies -->|"sends reply"| node_home
node_settings_panel -->|"updates settings"| node_app
node_settings_panel -->|"uses defaults"| node_settings
node_captions -->|"uses text"| node_translations
node_microphone -->|"uses text"| node_translations
node_settings_panel -->|"uses text"| node_translations
node_api_client -->|"sends audio"| node_api_routes
node_api_app -->|"registers routes"| node_api_routes
node_api_routes -->|"checks limits"| node_config
node_api_routes -->|"invokes transcription"| node_asr_service
node_asr_service -->|"loads inference"| node_asr_model
node_api_routes -->|"returns transcript"| node_api_client
node_speaker -->|"records speech"| node_microphone
node_captions -->|"shows captions"| node_partner
node_partner -->|"types replies"| node_home
node_api_routes -.->|"processes audio"| node_audio_processing
node_audio_processing -.->|"feeds recognition"| node_asr_model

click node_app "https://github.com/maria-biruk/hearme/blob/main/frontend/src/App.jsx"
click node_home "https://github.com/maria-biruk/hearme/blob/main/frontend/src/pages/Home.jsx"
click node_microphone "https://github.com/maria-biruk/hearme/blob/main/frontend/src/components/Microphone.jsx"
click node_captions "https://github.com/maria-biruk/hearme/blob/main/frontend/src/components/CaptionDisplay.jsx"
click node_quick_replies "https://github.com/maria-biruk/hearme/blob/main/frontend/src/components/QuickReplies.jsx"
click node_settings_panel "https://github.com/maria-biruk/hearme/blob/main/frontend/src/components/SettingsPanel.jsx"
click node_api_client "https://github.com/maria-biruk/hearme/blob/main/frontend/src/services/api.js"
click node_translations "https://github.com/maria-biruk/hearme/blob/main/frontend/src/i18n.js"
click node_settings "https://github.com/maria-biruk/hearme/blob/main/frontend/src/settings.js"
click node_api_routes "https://github.com/maria-biruk/hearme/blob/main/backend/app/api/routes.py"
click node_api_app "https://github.com/maria-biruk/hearme/blob/main/backend/app/main.py"
click node_config "https://github.com/maria-biruk/hearme/blob/main/backend/app/config.py"
click node_audio_processing "https://github.com/maria-biruk/hearme/tree/main/backend/app/services"
click node_asr_service "https://github.com/maria-biruk/hearme/blob/main/backend/app/services/asr_service.py"
click node_asr_model "https://github.com/maria-biruk/hearme/blob/main/backend/model_code/hearme_asr.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_home,node_microphone,node_captions,node_quick_replies,node_settings_panel toneBlue
class node_api_client,node_translations,node_settings toneAmber
class node_api_routes,node_api_app,node_config,node_audio_processing,node_asr_service toneMint
class node_asr_model toneRose
class node_speaker,node_partner toneIndigo
```

## Components

### Conversation interface

- [Application shell](https://github.com/maria-biruk/hearme/blob/main/frontend/src/App.jsx): `frontend/src/App.jsx`
- [Conversation workspace](https://github.com/maria-biruk/hearme/blob/main/frontend/src/pages/Home.jsx): `frontend/src/pages/Home.jsx`
- [Microphone capture](https://github.com/maria-biruk/hearme/blob/main/frontend/src/components/Microphone.jsx): `frontend/src/components/Microphone.jsx`
- [Caption display](https://github.com/maria-biruk/hearme/blob/main/frontend/src/components/CaptionDisplay.jsx): `frontend/src/components/CaptionDisplay.jsx`
- [Quick replies](https://github.com/maria-biruk/hearme/blob/main/frontend/src/components/QuickReplies.jsx): `frontend/src/components/QuickReplies.jsx`
- [Accessibility settings](https://github.com/maria-biruk/hearme/blob/main/frontend/src/components/SettingsPanel.jsx): `frontend/src/components/SettingsPanel.jsx`

### Frontend support

- [Transcription API client](https://github.com/maria-biruk/hearme/blob/main/frontend/src/services/api.js): `frontend/src/services/api.js`
- [Interface translations](https://github.com/maria-biruk/hearme/blob/main/frontend/src/i18n.js): `frontend/src/i18n.js`
- [Settings persistence](https://github.com/maria-biruk/hearme/blob/main/frontend/src/settings.js): `frontend/src/settings.js`

### Transcription backend

- [API routes](https://github.com/maria-biruk/hearme/blob/main/backend/app/api/routes.py): `backend/app/api/routes.py`
- [FastAPI application](https://github.com/maria-biruk/hearme/blob/main/backend/app/main.py): `backend/app/main.py`
- [API configuration](https://github.com/maria-biruk/hearme/blob/main/backend/app/config.py): `backend/app/config.py`
- [Audio processing](https://github.com/maria-biruk/hearme/tree/main/backend/app/services): `backend/app/services`
- [ASR service](https://github.com/maria-biruk/hearme/blob/main/backend/app/services/asr_service.py): `backend/app/services/asr_service.py`

### Speech recognition

- [Amharic ASR inference](https://github.com/maria-biruk/hearme/blob/main/backend/model_code/hearme_asr.py): `backend/model_code/hearme_asr.py`

### Other components

- **Speaker**
- **Conversation partner**

## Connections

- Application shell → Conversation workspace: renders (evidence: `frontend/src/App.jsx`)
- Application shell → Settings persistence: loads and saves (evidence: `frontend/src/App.jsx`)
- Application shell → Interface translations: uses text (evidence: `frontend/src/App.jsx`)
- Conversation workspace → Microphone capture: renders (evidence: `frontend/src/pages/Home.jsx`)
- Conversation workspace → Caption display: renders (evidence: `frontend/src/pages/Home.jsx`)
- Conversation workspace → Quick replies: renders (evidence: `frontend/src/pages/Home.jsx`)
- Conversation workspace → Accessibility settings: renders (evidence: `frontend/src/pages/Home.jsx`)
- Conversation workspace → Transcription API client: checks health (evidence: `frontend/src/pages/Home.jsx`)
- Microphone capture → Transcription API client: submits recording (evidence: `frontend/src/components/Microphone.jsx`)
- Microphone capture → Conversation workspace: reports captions (evidence: `frontend/src/pages/Home.jsx`)
- Quick replies → Conversation workspace: sends reply (evidence: `frontend/src/pages/Home.jsx`)
- Accessibility settings → Application shell: updates settings (evidence: `frontend/src/App.jsx`)
- Accessibility settings → Settings persistence: uses defaults (evidence: `frontend/src/components/SettingsPanel.jsx`)
- Caption display → Interface translations: uses text (evidence: `frontend/src/components/CaptionDisplay.jsx`)
- Microphone capture → Interface translations: uses text (evidence: `frontend/src/components/Microphone.jsx`)
- Accessibility settings → Interface translations: uses text (evidence: `frontend/src/components/SettingsPanel.jsx`)
- Transcription API client → API routes: sends audio (evidence: `README.md`)
- FastAPI application → API routes: registers routes (evidence: `backend/app/main.py`)
- API routes → API configuration: checks limits (evidence: `backend/app/api/routes.py`)
- API routes → ASR service: invokes transcription (evidence: `backend/app/api/routes.py`)
- ASR service → Amharic ASR inference: loads inference (evidence: `backend/app/services/asr_service.py`)
- API routes → Transcription API client: returns transcript (evidence: `README.md`)
- Speaker → Microphone capture: records speech (evidence: `README.md`)
- Caption display → Conversation partner: shows captions (evidence: `README.md`)
- Conversation partner → Conversation workspace: types replies (evidence: `README.md`)
- API routes → Audio processing: processes audio (evidence: `backend/app/api/routes.py`)
- Audio processing → Amharic ASR inference: feeds recognition
