# adibuzz/voice-clone architecture

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

- Interactive diagram: https://gitdiagram.com/adibuzz/voice-clone
- Repository: https://github.com/adibuzz/voice-clone

## Overview

This is a batch PowerPoint-to-narrated-video script: it finds presentation files, prepares a voice reference, renders slides, synthesizes narration from slide notes, and creates slide-and-audio clips. The excerpt shows both microphone and existing-reference audio paths, plus PowerPoint and LibreOffice-based rendering. Final video assembly is suggested by the script’s stated output, but the relevant implementation is not shown, so that link is dashed and uncited. The graph reflects only the available excerpt; the README is empty.

Main entry points: [`final-script-pre.py`](https://github.com/adibuzz/voice-clone/blob/master/final-script-pre.py) (Reference voice setup)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_inputs["Inputs and slides"]
  node_presentations["PPTX files"]
  node_main["Batch entry point"]
  node_slide_render["Slide rendering"]
  node_slide_images["Rendered slides"]
  node_slide_lookup["Slide image lookup"]
end

subgraph group_voice["Voice and narration"]
  node_notes["Slide notes"]
  node_voice_choice["Reference voice setup"]
  node_microphone(("Microphone"))
  node_audio_normalize["Audio normalization"]
  node_reference_audio["Reference audio"]
  node_tts["Speech synthesis"]
  node_f5tts["F5-TTS CLI"]
  node_narration["Slide narration"]
end

subgraph group_video["Video creation"]
  node_clip_render["Slide clip rendering"]
  node_ffmpeg["FFmpeg"]
  node_clips["Slide video clips"]
  node_final_video["Lecture video"]
end

node_user(("User"))

node_user -->|"starts"| node_main
node_main -->|"finds"| node_presentations
node_main -->|"prompts"| node_voice_choice
node_main -->|"processes decks"| node_slide_render
node_presentations -->|"provides decks"| node_slide_render
node_slide_render -->|"exports slides"| node_slide_images
node_slide_render -->|"checks images"| node_slide_lookup
node_microphone -->|"records sample"| node_voice_choice
node_voice_choice -->|"normalizes recording"| node_audio_normalize
node_voice_choice -->|"selects audio"| node_reference_audio
node_audio_normalize -->|"runs"| node_ffmpeg
node_audio_normalize -->|"writes"| node_reference_audio
node_slide_lookup -->|"locates"| node_slide_images
node_notes -->|"provides narration text"| node_tts
node_voice_choice -->|"supplies reference"| node_tts
node_tts -->|"invokes"| node_f5tts
node_f5tts -->|"generates"| node_narration
node_slide_lookup -->|"provides slide image"| node_clip_render
node_tts -->|"provides audio"| node_clip_render
node_clip_render -->|"runs"| node_ffmpeg
node_clip_render -->|"creates"| node_clips
node_clips -.->|"assembled into"| node_final_video

click node_main "https://github.com/adibuzz/voice-clone/blob/master/final-script-pre.py"
click node_slide_render "https://github.com/adibuzz/voice-clone/blob/master/final-script-pre.py"
click node_slide_lookup "https://github.com/adibuzz/voice-clone/blob/master/final-script-pre.py"
click node_notes "https://github.com/adibuzz/voice-clone/blob/master/final-script-pre.py"
click node_voice_choice "https://github.com/adibuzz/voice-clone/blob/master/final-script-pre.py"
click node_audio_normalize "https://github.com/adibuzz/voice-clone/blob/master/final-script-pre.py"
click node_tts "https://github.com/adibuzz/voice-clone/blob/master/final-script-pre.py"
click node_clip_render "https://github.com/adibuzz/voice-clone/blob/master/final-script-pre.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_presentations,node_main,node_slide_render,node_slide_images,node_slide_lookup,node_user toneBlue
class node_notes,node_voice_choice,node_microphone,node_audio_normalize,node_reference_audio,node_tts,node_f5tts,node_narration toneAmber
class node_clip_render,node_ffmpeg,node_clips,node_final_video toneMint
```

## Components

### Inputs and slides

- **PPTX files**
- [Batch entry point](https://github.com/adibuzz/voice-clone/blob/master/final-script-pre.py): `final-script-pre.py`
- [Slide rendering](https://github.com/adibuzz/voice-clone/blob/master/final-script-pre.py): `final-script-pre.py`
- **Rendered slides**
- [Slide image lookup](https://github.com/adibuzz/voice-clone/blob/master/final-script-pre.py): `final-script-pre.py`

### Voice and narration

- [Slide notes](https://github.com/adibuzz/voice-clone/blob/master/final-script-pre.py): `final-script-pre.py`
- [Reference voice setup](https://github.com/adibuzz/voice-clone/blob/master/final-script-pre.py): `final-script-pre.py`
- **Microphone**
- [Audio normalization](https://github.com/adibuzz/voice-clone/blob/master/final-script-pre.py): `final-script-pre.py`
- **Reference audio**
- [Speech synthesis](https://github.com/adibuzz/voice-clone/blob/master/final-script-pre.py): `final-script-pre.py`
- **F5-TTS CLI**
- **Slide narration**

### Video creation

- [Slide clip rendering](https://github.com/adibuzz/voice-clone/blob/master/final-script-pre.py): `final-script-pre.py`
- **FFmpeg**
- **Slide video clips**
- **Lecture video**

### Other components

- **User**

## Connections

- User → Batch entry point: starts (evidence: `final-script-pre.py`)
- Batch entry point → PPTX files: finds (evidence: `final-script-pre.py`)
- Batch entry point → Reference voice setup: prompts (evidence: `final-script-pre.py`)
- Batch entry point → Slide rendering: processes decks (evidence: `final-script-pre.py`)
- PPTX files → Slide rendering: provides decks (evidence: `final-script-pre.py`)
- Slide rendering → Rendered slides: exports slides (evidence: `final-script-pre.py`)
- Slide rendering → Slide image lookup: checks images (evidence: `final-script-pre.py`)
- Microphone → Reference voice setup: records sample (evidence: `final-script-pre.py`)
- Reference voice setup → Audio normalization: normalizes recording (evidence: `final-script-pre.py`)
- Reference voice setup → Reference audio: selects audio (evidence: `final-script-pre.py`)
- Audio normalization → FFmpeg: runs (evidence: `final-script-pre.py`)
- Audio normalization → Reference audio: writes (evidence: `final-script-pre.py`)
- Slide image lookup → Rendered slides: locates (evidence: `final-script-pre.py`)
- Slide notes → Speech synthesis: provides narration text (evidence: `final-script-pre.py`)
- Reference voice setup → Speech synthesis: supplies reference (evidence: `final-script-pre.py`)
- Speech synthesis → F5-TTS CLI: invokes (evidence: `final-script-pre.py`)
- F5-TTS CLI → Slide narration: generates
- Slide image lookup → Slide clip rendering: provides slide image (evidence: `final-script-pre.py`)
- Speech synthesis → Slide clip rendering: provides audio (evidence: `final-script-pre.py`)
- Slide clip rendering → FFmpeg: runs (evidence: `final-script-pre.py`)
- Slide clip rendering → Slide video clips: creates (evidence: `final-script-pre.py`)
- Slide video clips → Lecture video: assembled into
