# jayantrathoremponline-prog/arya architecture

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

- Interactive diagram: https://gitdiagram.com/jayantrathoremponline-prog/arya
- Repository: https://github.com/jayantrathoremponline-prog/arya

## Overview

This repository implements a voice-interactive exhibit assistant: it listens for a wake word and spoken commands, selects exhibit content, then presents text/images and plays matching audio. RFID lookup and GPIO-controlled eye indicators support the interaction, while a separate home screen and startup sound provide presentation and startup behavior. The README is empty, so capabilities and connections here are limited to the supplied source excerpts and file tree; unsampled subsystems are represented only where their paths are clear.

Main entry points: [`Main/TTS/tts.py`](https://github.com/jayantrathoremponline-prog/arya/blob/main/Main/TTS/tts.py) (Voice generation), [`Main/STT/stt.py`](https://github.com/jayantrathoremponline-prog/arya/blob/main/Main/STT/stt.py) (Speech listener), [`Main/Tkinter/data_screen.py`](https://github.com/jayantrathoremponline-prog/arya/blob/main/Main/Tkinter/data_screen.py) (Content display), [`Main/lib`](https://github.com/jayantrathoremponline-prog/arya/tree/main/Main/lib) (Exhibit text)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interaction["Voice interaction"]
  node_speech["Speech listener<br/>[stt.py]"]
  node_command["Command routing<br/>[stt.py]"]
  node_rfid["RFID lookup<br/>[stt.py]"]
  node_connectivity["Connection check<br/>[stt.py]"]
end

subgraph group_presentation["Exhibit presentation"]
  node_voice["Voice generation<br/>[tts.py]"]
  node_audio["Audio playback<br/>[tts.py]"]
  node_dataui["Content display<br/>[data_screen.py]"]
  node_homeui["Home screen<br/>[home_screen.py]"]
end

subgraph group_content["Exhibit content"]
  node_textcontent["Exhibit text"]
  node_images["Exhibit images"]
  node_audiofiles["Recorded audio"]
end

subgraph group_hardware["Hardware and startup"]
  node_gpio["Eye indicators<br/>[stt.py]"]
  node_startup["Startup sound<br/>[start_sound.py]"]
  node_arduino["Line follower<br/>[Line_Follower.ino]"]
end

node_visitor(("Visitor"))
node_mimic["Mimic3 service"]

node_visitor -->|"speaks to"| node_speech
node_speech -->|"checks connection"| node_connectivity
node_speech -->|"routes recognized"| node_command
node_command -->|"requests response"| node_voice
node_command -->|"looks up card"| node_rfid
node_command -->|"sets indicators"| node_gpio
node_speech -->|"starts screen"| node_homeui
node_voice -->|"posts speech text"| node_mimic
node_voice -->|"starts display"| node_dataui
node_voice -->|"starts playback"| node_audio
node_voice -->|"reads exhibit text"| node_textcontent
node_voice -->|"finds matching image"| node_images
node_voice -->|"plays cached audio"| node_audiofiles
node_dataui -->|"reads display text"| node_textcontent
node_dataui -->|"renders image"| node_images
node_startup -->|"plays startup audio"| node_audiofiles

click node_speech "https://github.com/jayantrathoremponline-prog/arya/blob/main/Main/STT/stt.py"
click node_command "https://github.com/jayantrathoremponline-prog/arya/blob/main/Main/STT/stt.py"
click node_rfid "https://github.com/jayantrathoremponline-prog/arya/blob/main/Main/STT/stt.py"
click node_connectivity "https://github.com/jayantrathoremponline-prog/arya/blob/main/Main/STT/stt.py"
click node_voice "https://github.com/jayantrathoremponline-prog/arya/blob/main/Main/TTS/tts.py"
click node_audio "https://github.com/jayantrathoremponline-prog/arya/blob/main/Main/TTS/tts.py"
click node_dataui "https://github.com/jayantrathoremponline-prog/arya/blob/main/Main/Tkinter/data_screen.py"
click node_homeui "https://github.com/jayantrathoremponline-prog/arya/blob/main/Main/Tkinter/home_screen.py"
click node_textcontent "https://github.com/jayantrathoremponline-prog/arya/tree/main/Main/lib"
click node_images "https://github.com/jayantrathoremponline-prog/arya/tree/main/Main/images"
click node_audiofiles "https://github.com/jayantrathoremponline-prog/arya/tree/main/Main/voice"
click node_gpio "https://github.com/jayantrathoremponline-prog/arya/blob/main/Main/STT/stt.py"
click node_startup "https://github.com/jayantrathoremponline-prog/arya/blob/main/Main/startup_files/start_sound.py"
click node_arduino "https://github.com/jayantrathoremponline-prog/arya/blob/main/Main/Ardiuno/Line_follower/Line_Follower.ino"

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_speech,node_command,node_rfid,node_connectivity toneBlue
class node_voice,node_audio,node_dataui,node_homeui toneAmber
class node_textcontent,node_images,node_audiofiles toneMint
class node_gpio,node_startup,node_arduino toneRose
class node_visitor,node_mimic toneIndigo
```

## Components

### Voice interaction

- [Speech listener](https://github.com/jayantrathoremponline-prog/arya/blob/main/Main/STT/stt.py): `Main/STT/stt.py`
- [Command routing](https://github.com/jayantrathoremponline-prog/arya/blob/main/Main/STT/stt.py): `Main/STT/stt.py`
- [RFID lookup](https://github.com/jayantrathoremponline-prog/arya/blob/main/Main/STT/stt.py): `Main/STT/stt.py`
- [Connection check](https://github.com/jayantrathoremponline-prog/arya/blob/main/Main/STT/stt.py): `Main/STT/stt.py`

### Exhibit presentation

- [Voice generation](https://github.com/jayantrathoremponline-prog/arya/blob/main/Main/TTS/tts.py): `Main/TTS/tts.py`
- [Audio playback](https://github.com/jayantrathoremponline-prog/arya/blob/main/Main/TTS/tts.py): `Main/TTS/tts.py`
- [Content display](https://github.com/jayantrathoremponline-prog/arya/blob/main/Main/Tkinter/data_screen.py): `Main/Tkinter/data_screen.py`
- [Home screen](https://github.com/jayantrathoremponline-prog/arya/blob/main/Main/Tkinter/home_screen.py): `Main/Tkinter/home_screen.py`

### Exhibit content

- [Exhibit text](https://github.com/jayantrathoremponline-prog/arya/tree/main/Main/lib): `Main/lib`
- [Exhibit images](https://github.com/jayantrathoremponline-prog/arya/tree/main/Main/images): `Main/images`
- [Recorded audio](https://github.com/jayantrathoremponline-prog/arya/tree/main/Main/voice): `Main/voice`

### Hardware and startup

- [Eye indicators](https://github.com/jayantrathoremponline-prog/arya/blob/main/Main/STT/stt.py): `Main/STT/stt.py`
- [Startup sound](https://github.com/jayantrathoremponline-prog/arya/blob/main/Main/startup_files/start_sound.py): `Main/startup_files/start_sound.py`
- [Line follower](https://github.com/jayantrathoremponline-prog/arya/blob/main/Main/Ardiuno/Line_follower/Line_Follower.ino): `Main/Ardiuno/Line_follower/Line_Follower.ino`

### Other components

- **Visitor**
- **Mimic3 service**

## Connections

- Visitor → Speech listener: speaks to (evidence: `Main/STT/stt.py`)
- Speech listener → Connection check: checks connection (evidence: `Main/STT/stt.py`)
- Speech listener → Command routing: routes recognized (evidence: `Main/STT/stt.py`)
- Command routing → Voice generation: requests response (evidence: `Main/STT/stt.py`)
- Command routing → RFID lookup: looks up card (evidence: `Main/STT/stt.py`)
- Command routing → Eye indicators: sets indicators (evidence: `Main/STT/stt.py`)
- Speech listener → Home screen: starts screen (evidence: `Main/STT/stt.py`)
- Voice generation → Mimic3 service: posts speech text (evidence: `Main/TTS/tts.py`)
- Voice generation → Content display: starts display (evidence: `Main/TTS/tts.py`)
- Voice generation → Audio playback: starts playback (evidence: `Main/TTS/tts.py`)
- Voice generation → Exhibit text: reads exhibit text (evidence: `Main/TTS/tts.py`)
- Voice generation → Exhibit images: finds matching image (evidence: `Main/TTS/tts.py`)
- Voice generation → Recorded audio: plays cached audio (evidence: `Main/TTS/tts.py`)
- Content display → Exhibit text: reads display text (evidence: `Main/Tkinter/data_screen.py`)
- Content display → Exhibit images: renders image (evidence: `Main/Tkinter/data_screen.py`)
- Startup sound → Recorded audio: plays startup audio (evidence: `Main/startup_files/start_sound.py`)
