# codedriverepeat/speechscribe architecture

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

- Interactive diagram: https://gitdiagram.com/codedriverepeat/speechscribe
- Repository: https://github.com/codedriverepeat/speechscribe

## Overview

SpeechScribe is a speech-processing platform with two user-facing routes: file-oriented CLI transcription and a layered session workflow. The platform workflow selects a profile and engine, ingests audio, processes speech, then delivers artifacts or captions. The README also documents translation, diarization, and extensive voice synthesis and manipulation capabilities. Several of those implementations were not sampled, so their nodes reflect documented capabilities; edges are limited to visible calls or explicit documentation.

Main entry points: [`src/speechscribe/cli.py`](https://github.com/codedriverepeat/speechscribe/blob/main/src/speechscribe/cli.py) (Command-line interface), [`src/speechscribe/orchestrator.py`](https://github.com/codedriverepeat/speechscribe/blob/main/src/speechscribe/orchestrator.py) (Session orchestrator), [`src/speechscribe/ingestion.py`](https://github.com/codedriverepeat/speechscribe/blob/main/src/speechscribe/ingestion.py) (Source adapters), [`src/speechscribe/core.py`](https://github.com/codedriverepeat/speechscribe/blob/main/src/speechscribe/core.py) (File transcription)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["User entry"]
  node_cli["Command-line interface<br/>[cli.py]"]
  node_platform_cli["Platform commands<br/>[platform_cli.py]"]
end

subgraph group_control["Control plane"]
  node_config["Configuration<br/>[config.py]"]
  node_profiles["Profiles and recommendations<br/>[control.py]"]
  node_plan_validation["Plan validation<br/>[planning.py]"]
  node_orchestrator["Session orchestrator<br/>[orchestrator.py]"]
end

subgraph group_processing["Speech processing"]
  node_audio["Audio processing<br/>[audio.py]"]
  node_ingestion["Source adapters<br/>[ingestion.py]"]
  node_data_models["Audio and transcript models<br/>[models.py]"]
  node_pipeline["Pipeline stages<br/>[pipeline.py]"]
  node_asr_engines["ASR engine adapters<br/>[engines.py]"]
  node_legacy_transcription["File transcription<br/>[core.py]"]
end

subgraph group_delivery["Delivery"]
  node_output_formatter["Transcript formatters<br/>[output.py]"]
  node_delivery_adapters["Delivery adapters<br/>[delivery.py]"]
end

subgraph group_voice["Voice tools"]
  node_voice_synthesis["Speech synthesis<br/>[voice_synthesis.py]"]
  node_voice_cloning["Voice cloning and conversion<br/>[voice_synthesis.py]"]
  node_voice_training["Voice training<br/>[voice_synthesis.py]"]
end

node_user(("CLI user"))

node_user -->|"runs commands"| node_cli
node_cli -->|"transcribes files"| node_legacy_transcription
node_cli -->|"synthesizes speech"| node_voice_synthesis
node_cli -->|"clones or converts"| node_voice_cloning
node_cli -->|"trains voices"| node_voice_training
node_platform_cli -.->|"starts sessions"| node_orchestrator
node_orchestrator -->|"gets recommendations"| node_profiles
node_orchestrator -->|"creates adapters"| node_ingestion
node_orchestrator -->|"processes audio"| node_pipeline
node_orchestrator -->|"delivers results"| node_delivery_adapters
node_ingestion -->|"validates audio"| node_audio
node_ingestion -->|"produces frames"| node_data_models
node_pipeline -->|"creates engine"| node_asr_engines
node_asr_engines -->|"returns segments"| node_data_models
node_legacy_transcription -->|"prepares audio"| node_audio
node_legacy_transcription -->|"writes formats"| node_output_formatter
node_delivery_adapters -.->|"offers TTS delivery"| node_voice_synthesis

click node_cli "https://github.com/codedriverepeat/speechscribe/blob/main/src/speechscribe/cli.py"
click node_platform_cli "https://github.com/codedriverepeat/speechscribe/blob/main/src/speechscribe/platform_cli.py"
click node_config "https://github.com/codedriverepeat/speechscribe/blob/main/src/speechscribe/config.py"
click node_profiles "https://github.com/codedriverepeat/speechscribe/blob/main/src/speechscribe/control.py"
click node_plan_validation "https://github.com/codedriverepeat/speechscribe/blob/main/src/speechscribe/planning.py"
click node_orchestrator "https://github.com/codedriverepeat/speechscribe/blob/main/src/speechscribe/orchestrator.py"
click node_audio "https://github.com/codedriverepeat/speechscribe/blob/main/src/speechscribe/audio.py"
click node_ingestion "https://github.com/codedriverepeat/speechscribe/blob/main/src/speechscribe/ingestion.py"
click node_data_models "https://github.com/codedriverepeat/speechscribe/blob/main/src/speechscribe/models.py"
click node_pipeline "https://github.com/codedriverepeat/speechscribe/blob/main/src/speechscribe/pipeline.py"
click node_asr_engines "https://github.com/codedriverepeat/speechscribe/blob/main/src/speechscribe/engines.py"
click node_legacy_transcription "https://github.com/codedriverepeat/speechscribe/blob/main/src/speechscribe/core.py"
click node_output_formatter "https://github.com/codedriverepeat/speechscribe/blob/main/src/speechscribe/output.py"
click node_delivery_adapters "https://github.com/codedriverepeat/speechscribe/blob/main/src/speechscribe/delivery.py"
click node_voice_synthesis "https://github.com/codedriverepeat/speechscribe/blob/main/src/speechscribe/voice_synthesis.py"
click node_voice_cloning "https://github.com/codedriverepeat/speechscribe/blob/main/src/speechscribe/voice_synthesis.py"
click node_voice_training "https://github.com/codedriverepeat/speechscribe/blob/main/src/speechscribe/voice_synthesis.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_cli,node_platform_cli,node_user toneBlue
class node_config,node_profiles,node_plan_validation,node_orchestrator toneAmber
class node_audio,node_ingestion,node_data_models,node_pipeline,node_asr_engines,node_legacy_transcription toneMint
class node_output_formatter,node_delivery_adapters toneRose
class node_voice_synthesis,node_voice_cloning,node_voice_training toneIndigo
```

## Components

### User entry

- [Command-line interface](https://github.com/codedriverepeat/speechscribe/blob/main/src/speechscribe/cli.py): `src/speechscribe/cli.py`
- [Platform commands](https://github.com/codedriverepeat/speechscribe/blob/main/src/speechscribe/platform_cli.py): `src/speechscribe/platform_cli.py`

### Control plane

- [Configuration](https://github.com/codedriverepeat/speechscribe/blob/main/src/speechscribe/config.py): `src/speechscribe/config.py`
- [Profiles and recommendations](https://github.com/codedriverepeat/speechscribe/blob/main/src/speechscribe/control.py): `src/speechscribe/control.py`
- [Plan validation](https://github.com/codedriverepeat/speechscribe/blob/main/src/speechscribe/planning.py): `src/speechscribe/planning.py`
- [Session orchestrator](https://github.com/codedriverepeat/speechscribe/blob/main/src/speechscribe/orchestrator.py): `src/speechscribe/orchestrator.py`

### Speech processing

- [Audio processing](https://github.com/codedriverepeat/speechscribe/blob/main/src/speechscribe/audio.py): `src/speechscribe/audio.py`
- [Source adapters](https://github.com/codedriverepeat/speechscribe/blob/main/src/speechscribe/ingestion.py): `src/speechscribe/ingestion.py`
- [Audio and transcript models](https://github.com/codedriverepeat/speechscribe/blob/main/src/speechscribe/models.py): `src/speechscribe/models.py`
- [Pipeline stages](https://github.com/codedriverepeat/speechscribe/blob/main/src/speechscribe/pipeline.py): `src/speechscribe/pipeline.py`
- [ASR engine adapters](https://github.com/codedriverepeat/speechscribe/blob/main/src/speechscribe/engines.py): `src/speechscribe/engines.py`
- [File transcription](https://github.com/codedriverepeat/speechscribe/blob/main/src/speechscribe/core.py): `src/speechscribe/core.py`

### Delivery

- [Transcript formatters](https://github.com/codedriverepeat/speechscribe/blob/main/src/speechscribe/output.py): `src/speechscribe/output.py`
- [Delivery adapters](https://github.com/codedriverepeat/speechscribe/blob/main/src/speechscribe/delivery.py): `src/speechscribe/delivery.py`

### Voice tools

- [Speech synthesis](https://github.com/codedriverepeat/speechscribe/blob/main/src/speechscribe/voice_synthesis.py): `src/speechscribe/voice_synthesis.py`
- [Voice cloning and conversion](https://github.com/codedriverepeat/speechscribe/blob/main/src/speechscribe/voice_synthesis.py): `src/speechscribe/voice_synthesis.py`
- [Voice training](https://github.com/codedriverepeat/speechscribe/blob/main/src/speechscribe/voice_synthesis.py): `src/speechscribe/voice_synthesis.py`

### Other components

- **CLI user**

## Connections

- CLI user → Command-line interface: runs commands (evidence: `README.md`)
- Command-line interface → File transcription: transcribes files (evidence: `src/speechscribe/cli.py`)
- Command-line interface → Speech synthesis: synthesizes speech (evidence: `src/speechscribe/cli.py`)
- Command-line interface → Voice cloning and conversion: clones or converts (evidence: `README.md`)
- Command-line interface → Voice training: trains voices (evidence: `README.md`)
- Platform commands → Session orchestrator: starts sessions (evidence: `src/speechscribe/platform_cli.py`)
- Session orchestrator → Profiles and recommendations: gets recommendations (evidence: `src/speechscribe/orchestrator.py`)
- Session orchestrator → Source adapters: creates adapters (evidence: `src/speechscribe/orchestrator.py`)
- Session orchestrator → Pipeline stages: processes audio (evidence: `src/speechscribe/orchestrator.py`)
- Session orchestrator → Delivery adapters: delivers results (evidence: `src/speechscribe/orchestrator.py`)
- Source adapters → Audio processing: validates audio (evidence: `src/speechscribe/ingestion.py`)
- Source adapters → Audio and transcript models: produces frames (evidence: `src/speechscribe/ingestion.py`)
- Pipeline stages → ASR engine adapters: creates engine (evidence: `src/speechscribe/pipeline.py`)
- ASR engine adapters → Audio and transcript models: returns segments (evidence: `src/speechscribe/engines.py`)
- File transcription → Audio processing: prepares audio (evidence: `src/speechscribe/core.py`)
- File transcription → Transcript formatters: writes formats (evidence: `src/speechscribe/core.py`)
- Delivery adapters → Speech synthesis: offers TTS delivery (evidence: `src/speechscribe/delivery.py`)
