# krishkydv77/voxnlp-ai architecture

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

- Interactive diagram: https://gitdiagram.com/krishkydv77/voxnlp-ai
- Repository: https://github.com/krishkydv77/voxnlp-ai

## Overview

VoxNLP AI is a Python speech/NLP pipeline: the entry point translates sample text, generates speech from the original text, transcribes the audio, extracts entities from the transcript, and records total runtime. The README documents the same capabilities and structured outputs. Importantly, translation is printed but is not passed to TTS in the current implementation. External service and model boundaries are shown where the sampled modules invoke them; no unsampled internals are inferred.

Main entry points: [`main.py`](https://github.com/krishkydv77/voxnlp-ai/blob/main/main.py) (Pipeline entry), [`modules/text_to_speech.py`](https://github.com/krishkydv77/voxnlp-ai/blob/main/modules/text_to_speech.py) (Speech generation), [`modules/ner_extraction.py`](https://github.com/krishkydv77/voxnlp-ai/blob/main/modules/ner_extraction.py) (Entity extraction), [`modules/logger.py`](https://github.com/krishkydv77/voxnlp-ai/blob/main/modules/logger.py) (Execution timing)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_pipeline["Pipeline orchestration"]
  node_main["Pipeline entry<br/>[main.py]"]
  node_logger["Execution timing<br/>[logger.py]"]
  node_runtime_log["Runtime log<br/>[running_logs.md]"]
end

subgraph group_speech["Speech processing"]
  node_tts["Speech generation<br/>[text_to_speech.py]"]
  node_audio["Generated MP3"]
  node_stt["Audio transcription<br/>[speech_to_text.py]"]
end

subgraph group_nlp["Language and output"]
  node_translator["Text translation<br/>[translator.py]"]
  node_ner["Entity extraction<br/>[ner_extraction.py]"]
  node_entities["Entity records<br/>[entities.json]"]
end

node_user(("Pipeline operator"))
node_translate_service["Google Translate"]
node_gtts["Google TTS"]
node_whisper["Faster Whisper"]
node_spacy["spaCy model"]

node_user -->|"runs"| node_main
node_main -->|"requests translation"| node_translator
node_translator -->|"translates via"| node_translate_service
node_main -->|"generates speech"| node_tts
node_tts -->|"synthesizes with"| node_gtts
node_tts -->|"writes MP3"| node_audio
node_main -->|"passes audio path"| node_audio
node_main -->|"transcribes audio"| node_stt
node_stt -->|"transcribes with"| node_whisper
node_main -->|"extracts from transcript"| node_ner
node_ner -->|"analyzes text"| node_spacy
node_ner -->|"appends records"| node_entities
node_main -->|"records elapsed time"| node_logger
node_logger -->|"appends timing"| node_runtime_log

click node_main "https://github.com/krishkydv77/voxnlp-ai/blob/main/main.py"
click node_translator "https://github.com/krishkydv77/voxnlp-ai/blob/main/modules/translator.py"
click node_tts "https://github.com/krishkydv77/voxnlp-ai/blob/main/modules/text_to_speech.py"
click node_audio "https://github.com/krishkydv77/voxnlp-ai/tree/main/audio"
click node_stt "https://github.com/krishkydv77/voxnlp-ai/blob/main/modules/speech_to_text.py"
click node_ner "https://github.com/krishkydv77/voxnlp-ai/blob/main/modules/ner_extraction.py"
click node_entities "https://github.com/krishkydv77/voxnlp-ai/blob/main/data/entities.json"
click node_logger "https://github.com/krishkydv77/voxnlp-ai/blob/main/modules/logger.py"
click node_runtime_log "https://github.com/krishkydv77/voxnlp-ai/blob/main/running_logs.md"

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_main,node_logger,node_runtime_log toneBlue
class node_tts,node_audio,node_stt toneAmber
class node_translator,node_ner,node_entities toneMint
class node_user,node_translate_service,node_gtts,node_whisper,node_spacy toneIndigo
```

## Components

### Pipeline orchestration

- [Pipeline entry](https://github.com/krishkydv77/voxnlp-ai/blob/main/main.py): `main.py`
- [Execution timing](https://github.com/krishkydv77/voxnlp-ai/blob/main/modules/logger.py): `modules/logger.py`
- [Runtime log](https://github.com/krishkydv77/voxnlp-ai/blob/main/running_logs.md): `running_logs.md`

### Speech processing

- [Speech generation](https://github.com/krishkydv77/voxnlp-ai/blob/main/modules/text_to_speech.py): `modules/text_to_speech.py`
- [Generated MP3](https://github.com/krishkydv77/voxnlp-ai/tree/main/audio): `audio`
- [Audio transcription](https://github.com/krishkydv77/voxnlp-ai/blob/main/modules/speech_to_text.py): `modules/speech_to_text.py`

### Language and output

- [Text translation](https://github.com/krishkydv77/voxnlp-ai/blob/main/modules/translator.py): `modules/translator.py`
- [Entity extraction](https://github.com/krishkydv77/voxnlp-ai/blob/main/modules/ner_extraction.py): `modules/ner_extraction.py`
- [Entity records](https://github.com/krishkydv77/voxnlp-ai/blob/main/data/entities.json): `data/entities.json`

### Other components

- **Pipeline operator**
- **Google Translate**
- **Google TTS**
- **Faster Whisper**
- **spaCy model**

## Connections

- Pipeline operator → Pipeline entry: runs (evidence: `README.md`)
- Pipeline entry → Text translation: requests translation (evidence: `main.py`)
- Text translation → Google Translate: translates via (evidence: `modules/translator.py`)
- Pipeline entry → Speech generation: generates speech (evidence: `main.py`)
- Speech generation → Google TTS: synthesizes with (evidence: `modules/text_to_speech.py`)
- Speech generation → Generated MP3: writes MP3 (evidence: `modules/text_to_speech.py`)
- Pipeline entry → Generated MP3: passes audio path (evidence: `main.py`)
- Pipeline entry → Audio transcription: transcribes audio (evidence: `main.py`)
- Audio transcription → Faster Whisper: transcribes with (evidence: `modules/speech_to_text.py`)
- Pipeline entry → Entity extraction: extracts from transcript (evidence: `main.py`)
- Entity extraction → spaCy model: analyzes text (evidence: `modules/ner_extraction.py`)
- Entity extraction → Entity records: appends records (evidence: `modules/ner_extraction.py`)
- Pipeline entry → Execution timing: records elapsed time (evidence: `main.py`)
- Execution timing → Runtime log: appends timing (evidence: `modules/logger.py`)
