# achad10/ttsbots architecture

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

- Interactive diagram: https://gitdiagram.com/achad10/ttsbots
- Repository: https://github.com/achad10/ttsbots

## Overview

This repository is a command-line TTS comparison tool. Its main workflow checks model availability, runs each available model on the same phrase, saves one WAV per model, and reports generation timing and real-time factor. The four model integrations are distinct inference stages; individual test scripts also support standalone runs and parameter experimentation. README documents platform acceleration and model-specific capabilities, while the sampled comparison script shows model loading, generation, and output handling. Individual test-script internals were not sampled, so their detailed runtime links are omitted.

Main entry points: [`compare_outputs.py`](https://github.com/achad10/ttsbots/blob/main/compare_outputs.py) (Comparison runner), [`testmodels/test_chatterbox.py`](https://github.com/achad10/ttsbots/blob/main/testmodels/test_chatterbox.py) (Chatterbox), [`testmodels/test_melotts.py`](https://github.com/achad10/ttsbots/blob/main/testmodels/test_melotts.py) (MeloTTS), [`testmodels/test_vibevoice.py`](https://github.com/achad10/ttsbots/blob/main/testmodels/test_vibevoice.py) (VibeVoice Realtime)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workflow["Comparison workflow"]
  node_compare["Comparison runner<br/>[compare_outputs.py]"]
  node_availability["Availability checks<br/>[compare_outputs.py]"]
  node_device["Device selection<br/>[compare_outputs.py]"]
end

subgraph group_inference["TTS inference"]
  node_chatterbox["Chatterbox<br/>[test_chatterbox.py]"]
  node_melo["MeloTTS<br/>[test_melotts.py]"]
  node_vibe["VibeVoice Realtime<br/>[test_vibevoice.py]"]
  node_seamless["Seamless M4T<br/>[test_seamless.py]"]
end

subgraph group_results["Comparison results"]
  node_audio_files[("WAV outputs")]
  node_metrics["Timing and RTF<br/>[compare_outputs.py]"]
  node_report["Comparison report<br/>[compare_outputs.py]"]
end

node_user(("CLI user"))
node_tts_packages{{"TTS model packages"}}

node_user -->|"runs"| node_compare
node_compare -->|"checks models"| node_availability
node_compare -->|"selects device"| node_device
node_compare -->|"runs available"| node_seamless
node_compare -->|"runs available"| node_vibe
node_compare -->|"runs available"| node_chatterbox
node_compare -->|"runs available"| node_melo
node_seamless -->|"loads and generates"| node_tts_packages
node_vibe -->|"loads and generates"| node_tts_packages
node_chatterbox -->|"loads and generates"| node_tts_packages
node_melo -->|"loads and generates"| node_tts_packages
node_seamless -->|"writes WAV"| node_audio_files
node_vibe -->|"writes WAV"| node_audio_files
node_chatterbox -->|"writes WAV"| node_audio_files
node_melo -->|"writes WAV"| node_audio_files
node_compare -->|"measures generation"| node_metrics
node_metrics -->|"feeds results"| node_report
node_user -->|"runs standalone"| node_chatterbox
node_user -->|"runs standalone"| node_melo
node_user -->|"runs standalone"| node_vibe
node_user -->|"runs standalone"| node_seamless

click node_compare "https://github.com/achad10/ttsbots/blob/main/compare_outputs.py"
click node_availability "https://github.com/achad10/ttsbots/blob/main/compare_outputs.py"
click node_device "https://github.com/achad10/ttsbots/blob/main/compare_outputs.py"
click node_chatterbox "https://github.com/achad10/ttsbots/blob/main/testmodels/test_chatterbox.py"
click node_melo "https://github.com/achad10/ttsbots/blob/main/testmodels/test_melotts.py"
click node_vibe "https://github.com/achad10/ttsbots/blob/main/testmodels/test_vibevoice.py"
click node_seamless "https://github.com/achad10/ttsbots/blob/main/testmodels/test_seamless.py"
click node_metrics "https://github.com/achad10/ttsbots/blob/main/compare_outputs.py"
click node_report "https://github.com/achad10/ttsbots/blob/main/compare_outputs.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_compare,node_availability,node_device,node_user toneBlue
class node_chatterbox,node_melo,node_vibe,node_seamless toneAmber
class node_audio_files,node_metrics,node_report toneMint
class node_tts_packages toneIndigo
```

## Components

### Comparison workflow

- [Comparison runner](https://github.com/achad10/ttsbots/blob/main/compare_outputs.py): `compare_outputs.py`
- [Availability checks](https://github.com/achad10/ttsbots/blob/main/compare_outputs.py): `compare_outputs.py`
- [Device selection](https://github.com/achad10/ttsbots/blob/main/compare_outputs.py): `compare_outputs.py`

### TTS inference

- [Chatterbox](https://github.com/achad10/ttsbots/blob/main/testmodels/test_chatterbox.py): `testmodels/test_chatterbox.py`
- [MeloTTS](https://github.com/achad10/ttsbots/blob/main/testmodels/test_melotts.py): `testmodels/test_melotts.py`
- [VibeVoice Realtime](https://github.com/achad10/ttsbots/blob/main/testmodels/test_vibevoice.py): `testmodels/test_vibevoice.py`
- [Seamless M4T](https://github.com/achad10/ttsbots/blob/main/testmodels/test_seamless.py): `testmodels/test_seamless.py`

### Comparison results

- **WAV outputs**
- [Timing and RTF](https://github.com/achad10/ttsbots/blob/main/compare_outputs.py): `compare_outputs.py`
- [Comparison report](https://github.com/achad10/ttsbots/blob/main/compare_outputs.py): `compare_outputs.py`

### Other components

- **CLI user**
- **TTS model packages**

## Connections

- CLI user → Comparison runner: runs (evidence: `README.md`)
- Comparison runner → Availability checks: checks models (evidence: `compare_outputs.py`)
- Comparison runner → Device selection: selects device (evidence: `compare_outputs.py`)
- Comparison runner → Seamless M4T: runs available (evidence: `compare_outputs.py`)
- Comparison runner → VibeVoice Realtime: runs available (evidence: `compare_outputs.py`)
- Comparison runner → Chatterbox: runs available (evidence: `compare_outputs.py`)
- Comparison runner → MeloTTS: runs available (evidence: `compare_outputs.py`)
- Seamless M4T → TTS model packages: loads and generates
- VibeVoice Realtime → TTS model packages: loads and generates
- Chatterbox → TTS model packages: loads and generates
- MeloTTS → TTS model packages: loads and generates
- Seamless M4T → WAV outputs: writes WAV (evidence: `README.md`)
- VibeVoice Realtime → WAV outputs: writes WAV (evidence: `README.md`)
- Chatterbox → WAV outputs: writes WAV (evidence: `README.md`)
- MeloTTS → WAV outputs: writes WAV (evidence: `README.md`)
- Comparison runner → Timing and RTF: measures generation (evidence: `README.md`)
- Timing and RTF → Comparison report: feeds results (evidence: `README.md`)
- CLI user → Chatterbox: runs standalone (evidence: `README.md`)
- CLI user → MeloTTS: runs standalone (evidence: `README.md`)
- CLI user → VibeVoice Realtime: runs standalone (evidence: `README.md`)
- CLI user → Seamless M4T: runs standalone (evidence: `README.md`)
