# adexterity/voicestudio architecture

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

- Interactive diagram: https://gitdiagram.com/adexterity/voicestudio
- Repository: https://github.com/adexterity/voicestudio

## Overview

VoiceStudio is a local-first voice production desktop app, with an optional remote backend and integrations. The primary workflow is to select or create a voice, provide text or media, run speech or dubbing models, then preview or export the result. The graph includes the documented cloning, design, dictation, transcription, dubbing, audiobook, batch, model-management, and integration capabilities. Some connections use README-level evidence; unsampled implementation details are represented only where the tree supports a component, not as asserted call paths.

Main entry points: [`backend/services/tts_backend.py`](https://github.com/adexterity/voicestudio/blob/main/backend/services/tts_backend.py) (Speech generation), [`electron/src/renderer/src/app.tsx`](https://github.com/adexterity/voicestudio/blob/main/electron/src/renderer/src/app.tsx) (Electron app), [`backend/services/dub_pipeline.py`](https://github.com/adexterity/voicestudio/blob/main/backend/services/dub_pipeline.py) (Dub processing), [`backend/main.py`](https://github.com/adexterity/voicestudio/blob/main/backend/main.py) (HTTP API)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_workspaces["Creation workspaces"]
  node_desktop["Electron app<br/>[app.tsx]"]
  node_clone["Voice cloning<br/>[clone-page.tsx]"]
  node_design["Voice design<br/>[design-page.tsx]"]
  node_dictation["Dictation<br/>[dictation.py]"]
  node_dubbing["Video dubbing<br/>[dub-page.tsx]"]
  node_audiobook["Audiobook creation<br/>[audiobook.py]"]
  node_batch["Batch jobs<br/>[batch.py]"]
end

subgraph group_media["Speech and media processing"]
  node_transcription["Transcription<br/>[asr_backend.py]"]
  node_dub_pipeline["Dub processing<br/>[dub_pipeline.py]"]
  node_speech["Speech generation<br/>[tts_backend.py]"]
  node_media_tools["Media tools<br/>[ffmpeg_utils.py]"]
end

subgraph group_platform["Backend platform"]
  node_api["HTTP API<br/>[main.py]"]
  node_jobs["Job management<br/>[tasks.py]"]
  node_database[("SQLite database<br/>[db.py]")]
  node_preferences["User preferences<br/>[prefs.py]"]
  node_settings[("Encrypted settings<br/>[settings_store.py]")]
  node_failure["Failure reporting<br/>[failure.py]"]
end

subgraph group_models["Models and engines"]
  node_models["Model catalog and setup<br/>[models.py]"]
  node_model_manager["Model lifecycle<br/>[model_manager.py]"]
  node_hardware["Hardware detection<br/>[device_caps.py]"]
end

subgraph group_integration["External interfaces"]
  node_local_api["Local API clients<br/>[speech_platform.py]"]
  node_mcp["MCP integration<br/>[mcp_server.py]"]
  node_phone["Phone companion<br/>[MainActivity.kt]"]
end

node_user(("User"))
node_remote_services{{"Optional remote services"}}

node_user -->|"uses"| node_desktop
node_desktop -->|"opens workspace"| node_clone
node_desktop -->|"opens workspace"| node_design
node_user -->|"dictates"| node_dictation
node_user -->|"provides video"| node_dubbing
node_user -->|"creates project"| node_audiobook
node_user -->|"runs jobs"| node_batch
node_clone -.->|"requests synthesis"| node_speech
node_design -.->|"requests synthesis"| node_speech
node_dubbing -.->|"runs dubbing"| node_dub_pipeline
node_dub_pipeline -->|"uses recognition"| node_transcription
node_dub_pipeline -->|"uses media tools"| node_media_tools
node_dictation -.->|"transcribes speech"| node_transcription
node_api -->|"starts background work"| node_jobs
node_jobs -->|"uses job store"| node_database
node_models -->|"checks capabilities"| node_hardware
node_models -.->|"manages downloads"| node_model_manager
node_speech -->|"loads models"| node_model_manager
node_preferences -->|"resolves stored values"| node_settings
node_api -.->|"reports failures"| node_failure
node_user -->|"connects tools"| node_local_api
node_user -->|"connects agents"| node_mcp
node_phone -.->|"uses backend"| node_api
node_speech -.->|"may use providers"| node_remote_services

click node_desktop "https://github.com/adexterity/voicestudio/blob/main/electron/src/renderer/src/app.tsx"
click node_clone "https://github.com/adexterity/voicestudio/blob/main/electron/src/renderer/src/features/clone/clone-page.tsx"
click node_design "https://github.com/adexterity/voicestudio/blob/main/electron/src/renderer/src/features/design/design-page.tsx"
click node_dictation "https://github.com/adexterity/voicestudio/blob/main/backend/api/routers/dictation.py"
click node_transcription "https://github.com/adexterity/voicestudio/blob/main/backend/services/asr_backend.py"
click node_dubbing "https://github.com/adexterity/voicestudio/blob/main/electron/src/renderer/src/features/dub/dub-page.tsx"
click node_dub_pipeline "https://github.com/adexterity/voicestudio/blob/main/backend/services/dub_pipeline.py"
click node_audiobook "https://github.com/adexterity/voicestudio/blob/main/backend/services/audiobook.py"
click node_batch "https://github.com/adexterity/voicestudio/blob/main/backend/api/routers/batch.py"
click node_speech "https://github.com/adexterity/voicestudio/blob/main/backend/services/tts_backend.py"
click node_media_tools "https://github.com/adexterity/voicestudio/blob/main/backend/services/ffmpeg_utils.py"
click node_api "https://github.com/adexterity/voicestudio/blob/main/backend/main.py"
click node_jobs "https://github.com/adexterity/voicestudio/blob/main/backend/core/tasks.py"
click node_database "https://github.com/adexterity/voicestudio/blob/main/backend/core/db.py"
click node_preferences "https://github.com/adexterity/voicestudio/blob/main/backend/core/prefs.py"
click node_settings "https://github.com/adexterity/voicestudio/blob/main/backend/services/settings_store.py"
click node_models "https://github.com/adexterity/voicestudio/blob/main/backend/api/routers/setup/models.py"
click node_model_manager "https://github.com/adexterity/voicestudio/blob/main/backend/services/model_manager.py"
click node_hardware "https://github.com/adexterity/voicestudio/blob/main/backend/core/device_caps.py"
click node_failure "https://github.com/adexterity/voicestudio/blob/main/backend/core/failure.py"
click node_local_api "https://github.com/adexterity/voicestudio/blob/main/backend/api/routers/speech_platform.py"
click node_mcp "https://github.com/adexterity/voicestudio/blob/main/backend/mcp_server.py"
click node_phone "https://github.com/adexterity/voicestudio/blob/main/mobile/android/app/src/main/kotlin/com/voicestudio/mobile/MainActivity.kt"

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_desktop,node_clone,node_design,node_dictation,node_dubbing,node_audiobook,node_batch,node_user toneBlue
class node_transcription,node_dub_pipeline,node_speech,node_media_tools toneAmber
class node_api,node_jobs,node_database,node_preferences,node_settings,node_failure toneMint
class node_models,node_model_manager,node_hardware toneRose
class node_local_api,node_mcp,node_phone,node_remote_services toneIndigo
```

## Components

### Creation workspaces

- [Electron app](https://github.com/adexterity/voicestudio/blob/main/electron/src/renderer/src/app.tsx): `electron/src/renderer/src/app.tsx`
- [Voice cloning](https://github.com/adexterity/voicestudio/blob/main/electron/src/renderer/src/features/clone/clone-page.tsx): `electron/src/renderer/src/features/clone/clone-page.tsx`
- [Voice design](https://github.com/adexterity/voicestudio/blob/main/electron/src/renderer/src/features/design/design-page.tsx): `electron/src/renderer/src/features/design/design-page.tsx`
- [Dictation](https://github.com/adexterity/voicestudio/blob/main/backend/api/routers/dictation.py): `backend/api/routers/dictation.py`
- [Video dubbing](https://github.com/adexterity/voicestudio/blob/main/electron/src/renderer/src/features/dub/dub-page.tsx): `electron/src/renderer/src/features/dub/dub-page.tsx`
- [Audiobook creation](https://github.com/adexterity/voicestudio/blob/main/backend/services/audiobook.py): `backend/services/audiobook.py`
- [Batch jobs](https://github.com/adexterity/voicestudio/blob/main/backend/api/routers/batch.py): `backend/api/routers/batch.py`

### Speech and media processing

- [Transcription](https://github.com/adexterity/voicestudio/blob/main/backend/services/asr_backend.py): `backend/services/asr_backend.py`
- [Dub processing](https://github.com/adexterity/voicestudio/blob/main/backend/services/dub_pipeline.py): `backend/services/dub_pipeline.py`
- [Speech generation](https://github.com/adexterity/voicestudio/blob/main/backend/services/tts_backend.py): `backend/services/tts_backend.py`
- [Media tools](https://github.com/adexterity/voicestudio/blob/main/backend/services/ffmpeg_utils.py): `backend/services/ffmpeg_utils.py`

### Backend platform

- [HTTP API](https://github.com/adexterity/voicestudio/blob/main/backend/main.py): `backend/main.py`
- [Job management](https://github.com/adexterity/voicestudio/blob/main/backend/core/tasks.py): `backend/core/tasks.py`
- [SQLite database](https://github.com/adexterity/voicestudio/blob/main/backend/core/db.py): `backend/core/db.py`
- [User preferences](https://github.com/adexterity/voicestudio/blob/main/backend/core/prefs.py): `backend/core/prefs.py`
- [Encrypted settings](https://github.com/adexterity/voicestudio/blob/main/backend/services/settings_store.py): `backend/services/settings_store.py`
- [Failure reporting](https://github.com/adexterity/voicestudio/blob/main/backend/core/failure.py): `backend/core/failure.py`

### Models and engines

- [Model catalog and setup](https://github.com/adexterity/voicestudio/blob/main/backend/api/routers/setup/models.py): `backend/api/routers/setup/models.py`
- [Model lifecycle](https://github.com/adexterity/voicestudio/blob/main/backend/services/model_manager.py): `backend/services/model_manager.py`
- [Hardware detection](https://github.com/adexterity/voicestudio/blob/main/backend/core/device_caps.py): `backend/core/device_caps.py`

### External interfaces

- [Local API clients](https://github.com/adexterity/voicestudio/blob/main/backend/api/routers/speech_platform.py): `backend/api/routers/speech_platform.py`
- [MCP integration](https://github.com/adexterity/voicestudio/blob/main/backend/mcp_server.py): `backend/mcp_server.py`
- [Phone companion](https://github.com/adexterity/voicestudio/blob/main/mobile/android/app/src/main/kotlin/com/voicestudio/mobile/MainActivity.kt): `mobile/android/app/src/main/kotlin/com/voicestudio/mobile/MainActivity.kt`

### Other components

- **User**
- **Optional remote services**

## Connections

- User → Electron app: uses (evidence: `README.md`)
- Electron app → Voice cloning: opens workspace (evidence: `README.md`)
- Electron app → Voice design: opens workspace (evidence: `README.md`)
- User → Dictation: dictates (evidence: `README.md`)
- User → Video dubbing: provides video (evidence: `README.md`)
- User → Audiobook creation: creates project (evidence: `README.md`)
- User → Batch jobs: runs jobs (evidence: `README.md`)
- Voice cloning → Speech generation: requests synthesis
- Voice design → Speech generation: requests synthesis
- Video dubbing → Dub processing: runs dubbing
- Dub processing → Transcription: uses recognition (evidence: `backend/api/routers/dub_core.py`)
- Dub processing → Media tools: uses media tools (evidence: `backend/services/dub_pipeline.py`)
- Dictation → Transcription: transcribes speech
- HTTP API → Job management: starts background work (evidence: `backend/main.py`)
- Job management → SQLite database: uses job store (evidence: `backend/core/tasks.py`)
- Model catalog and setup → Hardware detection: checks capabilities (evidence: `backend/api/routers/setup/models.py`)
- Model catalog and setup → Model lifecycle: manages downloads
- Speech generation → Model lifecycle: loads models (evidence: `backend/services/model_manager.py`)
- User preferences → Encrypted settings: resolves stored values (evidence: `backend/core/prefs.py`)
- HTTP API → Failure reporting: reports failures
- User → Local API clients: connects tools (evidence: `README.md`)
- User → MCP integration: connects agents (evidence: `README.md`)
- Phone companion → HTTP API: uses backend
- Speech generation → Optional remote services: may use providers (evidence: `README.md`)
