# venkatesh0610/wispr-flow-hackathon architecture

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

- Interactive diagram: https://gitdiagram.com/venkatesh0610/wispr-flow-hackathon
- Repository: https://github.com/venkatesh0610/wispr-flow-hackathon

## Overview

VoiceLearn AI is a voice-first mock-interview product: candidates choose interview context, answer by voice or typing, receive adaptive questions and scoring, and can hear speech playback. The sampled FastAPI routes invoke the LangGraph interview workflow; its nodes generate questions, probe short answers, evaluate responses, and produce a scorecard while persisting turns and sessions. The README also identifies a Streamlit interface, Wispr Flow input, and optional TTS. The Streamlit wiring is unsampled, so its connection to the workflow is left unverified; graph relationships otherwise follow shown calls or indexed imports.

Main entry points: [`agent/graph.py`](https://github.com/venkatesh0610/wispr-flow-hackathon/blob/main/agent/graph.py) (Interview graph), [`api/main.py`](https://github.com/venkatesh0610/wispr-flow-hackathon/blob/main/api/main.py) (Interview API), [`voice/tts.py`](https://github.com/venkatesh0610/wispr-flow-hackathon/blob/main/voice/tts.py) (Speech synthesis), [`database/repository.py`](https://github.com/venkatesh0610/wispr-flow-hackathon/blob/main/database/repository.py) (Interview repository)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interaction["Candidate interaction"]
  node_streamlit["Streamlit interface<br/>[app.py]"]
  node_api["Interview API<br/>[main.py]"]
end

subgraph group_workflow["Interview workflow"]
  node_graph["Interview graph<br/>[graph.py]"]
  node_state["Interview state<br/>[state.py]"]
end

subgraph group_services["Model and speech"]
  node_llm_client["LLM client<br/>[model.py]"]
  node_groq{{"Groq model service"}}
  node_settings["Runtime settings<br/>[settings.py]"]
  node_tts["Speech synthesis<br/>[tts.py]"]
  node_edge_tts{{"Edge TTS"}}
  node_pyttsx3{{"Local pyttsx3"}}
end

subgraph group_persistence["Interview records"]
  node_repository["Interview repository<br/>[repository.py]"]
  node_db_session["Database session<br/>[db.py]"]
  node_models[("Interview records<br/>[models.py]")]
end

node_candidate(("Candidate"))

node_candidate -->|"uses"| node_streamlit
node_candidate -->|"submits answers"| node_api
node_streamlit -.->|"workflow wiring unverified"| node_graph
node_api -->|"invokes"| node_graph
node_api -->|"reads interview"| node_repository
node_api -->|"initializes"| node_db_session
node_graph -->|"uses state"| node_state
node_graph -->|"generates and evaluates"| node_llm_client
node_graph -->|"saves turns and summaries"| node_repository
node_llm_client -->|"reads configuration"| node_settings
node_llm_client -.->|"calls"| node_groq
node_repository -->|"opens sessions"| node_db_session
node_repository -->|"queries and stores"| node_models
node_tts -->|"reads configuration"| node_settings
node_tts -->|"synthesizes speech"| node_edge_tts
node_tts -->|"fallback synthesis"| node_pyttsx3
node_streamlit -.->|"playback wiring unverified"| node_tts

click node_streamlit "https://github.com/venkatesh0610/wispr-flow-hackathon/blob/main/app.py"
click node_api "https://github.com/venkatesh0610/wispr-flow-hackathon/blob/main/api/main.py"
click node_graph "https://github.com/venkatesh0610/wispr-flow-hackathon/blob/main/agent/graph.py"
click node_state "https://github.com/venkatesh0610/wispr-flow-hackathon/blob/main/agent/state.py"
click node_llm_client "https://github.com/venkatesh0610/wispr-flow-hackathon/blob/main/llm/model.py"
click node_settings "https://github.com/venkatesh0610/wispr-flow-hackathon/blob/main/config/settings.py"
click node_tts "https://github.com/venkatesh0610/wispr-flow-hackathon/blob/main/voice/tts.py"
click node_repository "https://github.com/venkatesh0610/wispr-flow-hackathon/blob/main/database/repository.py"
click node_db_session "https://github.com/venkatesh0610/wispr-flow-hackathon/blob/main/database/db.py"
click node_models "https://github.com/venkatesh0610/wispr-flow-hackathon/blob/main/database/models.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,node_api toneBlue
class node_graph,node_state toneAmber
class node_llm_client,node_groq,node_settings,node_tts,node_edge_tts,node_pyttsx3 toneMint
class node_repository,node_db_session,node_models toneRose
class node_candidate toneIndigo
```

## Components

### Candidate interaction

- [Streamlit interface](https://github.com/venkatesh0610/wispr-flow-hackathon/blob/main/app.py): `app.py`
- [Interview API](https://github.com/venkatesh0610/wispr-flow-hackathon/blob/main/api/main.py): `api/main.py`

### Interview workflow

- [Interview graph](https://github.com/venkatesh0610/wispr-flow-hackathon/blob/main/agent/graph.py): `agent/graph.py`
- [Interview state](https://github.com/venkatesh0610/wispr-flow-hackathon/blob/main/agent/state.py): `agent/state.py`

### Model and speech

- [LLM client](https://github.com/venkatesh0610/wispr-flow-hackathon/blob/main/llm/model.py): `llm/model.py`
- **Groq model service**
- [Runtime settings](https://github.com/venkatesh0610/wispr-flow-hackathon/blob/main/config/settings.py): `config/settings.py`
- [Speech synthesis](https://github.com/venkatesh0610/wispr-flow-hackathon/blob/main/voice/tts.py): `voice/tts.py`
- **Edge TTS**
- **Local pyttsx3**

### Interview records

- [Interview repository](https://github.com/venkatesh0610/wispr-flow-hackathon/blob/main/database/repository.py): `database/repository.py`
- [Database session](https://github.com/venkatesh0610/wispr-flow-hackathon/blob/main/database/db.py): `database/db.py`
- [Interview records](https://github.com/venkatesh0610/wispr-flow-hackathon/blob/main/database/models.py): `database/models.py`

### Other components

- **Candidate**

## Connections

- Candidate → Streamlit interface: uses (evidence: `README.md`)
- Candidate → Interview API: submits answers (evidence: `api/main.py`)
- Streamlit interface → Interview graph: workflow wiring unverified
- Interview API → Interview graph: invokes (evidence: `api/main.py`)
- Interview API → Interview repository: reads interview (evidence: `api/main.py`)
- Interview API → Database session: initializes (evidence: `api/main.py`)
- Interview graph → Interview state: uses state (evidence: `agent/graph.py`)
- Interview graph → LLM client: generates and evaluates (evidence: `agent/graph.py`)
- Interview graph → Interview repository: saves turns and summaries (evidence: `agent/graph.py`)
- LLM client → Runtime settings: reads configuration (evidence: `llm/model.py`)
- LLM client → Groq model service: calls
- Interview repository → Database session: opens sessions (evidence: `database/repository.py`)
- Interview repository → Interview records: queries and stores (evidence: `database/repository.py`)
- Speech synthesis → Runtime settings: reads configuration (evidence: `voice/tts.py`)
- Speech synthesis → Edge TTS: synthesizes speech (evidence: `voice/tts.py`)
- Speech synthesis → Local pyttsx3: fallback synthesis (evidence: `voice/tts.py`)
- Streamlit interface → Speech synthesis: playback wiring unverified
