# yaswithaalla/echoverse architecture

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

- Interactive diagram: https://gitdiagram.com/yaswithaalla/echoverse
- Repository: https://github.com/yaswithaalla/echoverse

## Overview

EchoVerse is a Streamlit audiobook creator. A user provides text, optionally summarizes it and selects a narrative tone and voice, then generates, previews, and downloads speech; generated narrations are also retained in session state for later playback. The main runtime is concentrated in app.py. The excerpts show the tone rewrite, SpeechT5 generation, audio export, and narration storage; the summarizer invocation is not visible, so that relationship is marked unverified.

Main entry points: [`app.py`](https://github.com/yaswithaalla/echoverse/blob/main/app.py) (Streamlit interface)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_input_processing["Text processing"]
  node_streamlit_ui["Streamlit interface<br/>[app.py]"]
  node_text_input["Text input<br/>[app.py]"]
  node_summarizer["Text summarizer<br/>[app.py]"]
  node_tone_rewrite["Tone rewriting<br/>[app.py]"]
end

subgraph group_voice_audio["Voice and audio"]
  node_voice_selection["Voice selection<br/>[app.py]"]
  node_speaker_embeddings["Speaker embeddings<br/>[app.py]"]
  node_tts_models["SpeechT5 models<br/>[app.py]"]
  node_audio_generation["Speech generation<br/>[app.py]"]
  node_audio_export["Audio export<br/>[app.py]"]
end

subgraph group_narrations["Narration library"]
  node_narration_state["Narration history<br/>[app.py]"]
  node_history_ui["History playback<br/>[app.py]"]
  node_download["Audio download<br/>[app.py]"]
end

node_user(("User"))

node_user -->|"provides input"| node_streamlit_ui
node_streamlit_ui -->|"collects text"| node_text_input
node_streamlit_ui -.->|"optionally summarizes"| node_summarizer
node_streamlit_ui -->|"rewrites text"| node_tone_rewrite
node_streamlit_ui -->|"selects voice"| node_voice_selection
node_streamlit_ui -->|"loads embeddings"| node_speaker_embeddings
node_streamlit_ui -->|"loads models"| node_tts_models
node_streamlit_ui -->|"requests speech"| node_audio_generation
node_audio_generation -->|"writes WAV"| node_audio_export
node_streamlit_ui -->|"stores narration"| node_narration_state
node_streamlit_ui -->|"renders history"| node_history_ui
node_streamlit_ui -->|"offers download"| node_download

click node_streamlit_ui "https://github.com/yaswithaalla/echoverse/blob/main/app.py"
click node_text_input "https://github.com/yaswithaalla/echoverse/blob/main/app.py"
click node_summarizer "https://github.com/yaswithaalla/echoverse/blob/main/app.py"
click node_tone_rewrite "https://github.com/yaswithaalla/echoverse/blob/main/app.py"
click node_voice_selection "https://github.com/yaswithaalla/echoverse/blob/main/app.py"
click node_speaker_embeddings "https://github.com/yaswithaalla/echoverse/blob/main/app.py"
click node_tts_models "https://github.com/yaswithaalla/echoverse/blob/main/app.py"
click node_audio_generation "https://github.com/yaswithaalla/echoverse/blob/main/app.py"
click node_audio_export "https://github.com/yaswithaalla/echoverse/blob/main/app.py"
click node_narration_state "https://github.com/yaswithaalla/echoverse/blob/main/app.py"
click node_history_ui "https://github.com/yaswithaalla/echoverse/blob/main/app.py"
click node_download "https://github.com/yaswithaalla/echoverse/blob/main/app.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_streamlit_ui,node_text_input,node_summarizer,node_tone_rewrite,node_user toneBlue
class node_voice_selection,node_speaker_embeddings,node_tts_models,node_audio_generation,node_audio_export toneAmber
class node_narration_state,node_history_ui,node_download toneMint
```

## Components

### Text processing

- [Streamlit interface](https://github.com/yaswithaalla/echoverse/blob/main/app.py): `app.py`
- [Text input](https://github.com/yaswithaalla/echoverse/blob/main/app.py): `app.py`
- [Text summarizer](https://github.com/yaswithaalla/echoverse/blob/main/app.py): `app.py`
- [Tone rewriting](https://github.com/yaswithaalla/echoverse/blob/main/app.py): `app.py`

### Voice and audio

- [Voice selection](https://github.com/yaswithaalla/echoverse/blob/main/app.py): `app.py`
- [Speaker embeddings](https://github.com/yaswithaalla/echoverse/blob/main/app.py): `app.py`
- [SpeechT5 models](https://github.com/yaswithaalla/echoverse/blob/main/app.py): `app.py`
- [Speech generation](https://github.com/yaswithaalla/echoverse/blob/main/app.py): `app.py`
- [Audio export](https://github.com/yaswithaalla/echoverse/blob/main/app.py): `app.py`

### Narration library

- [Narration history](https://github.com/yaswithaalla/echoverse/blob/main/app.py): `app.py`
- [History playback](https://github.com/yaswithaalla/echoverse/blob/main/app.py): `app.py`
- [Audio download](https://github.com/yaswithaalla/echoverse/blob/main/app.py): `app.py`

### Other components

- **User**

## Connections

- User → Streamlit interface: provides input (evidence: `app.py`)
- Streamlit interface → Text input: collects text (evidence: `app.py`)
- Streamlit interface → Text summarizer: optionally summarizes (evidence: `app.py`)
- Streamlit interface → Tone rewriting: rewrites text (evidence: `app.py`)
- Streamlit interface → Voice selection: selects voice (evidence: `app.py`)
- Streamlit interface → Speaker embeddings: loads embeddings (evidence: `app.py`)
- Streamlit interface → SpeechT5 models: loads models (evidence: `app.py`)
- Streamlit interface → Speech generation: requests speech (evidence: `app.py`)
- Speech generation → Audio export: writes WAV (evidence: `app.py`)
- Streamlit interface → Narration history: stores narration (evidence: `app.py`)
- Streamlit interface → History playback: renders history (evidence: `app.py`)
- Streamlit interface → Audio download: offers download (evidence: `app.py`)
