# franckyb/voice-clone-studio architecture

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

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

## Overview

Voice Clone Studio is a modular Gradio application for generating and transforming speech and sound with multiple model engines. The main workflow is selecting a tool, supplying text and/or reference audio, choosing an engine and generation options, then producing audio; the README also documents transcription, audio preparation, training, prompt management, and sound effects. The tree and excerpts identify major subsystems, but many individual tool implementations are unsampled, so tool-to-manager wiring is shown only where documented or indexed.

Main entry points: [`voice_clone_studio.py`](https://github.com/franckyb/voice-clone-studio/blob/main/voice_clone_studio.py) (Gradio app), [`modules/core_components/ai_models/tts_manager.py`](https://github.com/franckyb/voice-clone-studio/blob/main/modules/core_components/ai_models/tts_manager.py) (TTS manager), [`modules/chatterbox/mtl_tts.py`](https://github.com/franckyb/voice-clone-studio/blob/main/modules/chatterbox/mtl_tts.py) (Chatterbox TTS), [`modules/core_components/tools/voice_clone.py`](https://github.com/franckyb/voice-clone-studio/blob/main/modules/core_components/tools/voice_clone.py) (Voice clone)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App and tools"]
  node_studio["Gradio app"]
  node_clone["Voice clone<br/>[voice_clone.py]"]
  node_conversation["Conversation<br/>[conversation.py]"]
  node_changer["Voice changer<br/>[voice_changer.py]"]
  node_design["Voice design<br/>[voice_design.py]"]
  node_presets["Voice presets<br/>[voice_presets.py]"]
  node_training["Voice training<br/>[train_model.py]"]
end

subgraph group_speech["Speech engines"]
  node_tts["TTS manager<br/>[tts_manager.py]"]
  node_chatterbox["Chatterbox TTS<br/>[mtl_tts.py]"]
  node_fish["Fish Speech<br/>[inference.py]"]
  node_vibevoice["VibeVoice TTS"]
  node_t3["Chatterbox T3<br/>[t3.py]"]
end

subgraph group_audio["Audio workflows"]
  node_prep["Audio preparation<br/>[prep_audio.py]"]
  node_soundfx["Sound effects<br/>[sound_effects.py]"]
  node_asr["Transcription<br/>[asr_manager.py]"]
  node_foley["Foley manager<br/>[foley_manager.py]"]
  node_mmaudio["MMAudio synthesis<br/>[networks.py]"]
end

subgraph group_support["Shared services"]
  node_emotion["Emotion presets<br/>[emotion_manager.py]"]
  node_promptgen["Prompt generator"]
  node_prompthub["Prompt hub<br/>[prompt_hub.py]"]
  node_modelutils["Model utilities<br/>[model_utils.py]"]
  node_history["Output history<br/>[output_history.py]"]
  node_settings["Settings<br/>[settings.py]"]
end

node_user(("User"))

node_user -->|"opens"| node_studio
node_studio -->|"loads tools"| node_clone
node_studio -->|"loads tools"| node_conversation
node_studio -->|"loads tools"| node_changer
node_studio -->|"loads tools"| node_design
node_studio -->|"loads tools"| node_presets
node_studio -->|"loads tools"| node_training
node_studio -->|"loads tools"| node_prep
node_studio -->|"loads tools"| node_soundfx
node_clone -->|"generates speech"| node_tts
node_conversation -->|"generates dialogue"| node_tts
node_changer -->|"converts speech"| node_chatterbox
node_design -->|"creates voice"| node_tts
node_presets -->|"generates speech"| node_tts
node_prep -->|"transcribes audio"| node_asr
node_training -->|"transcribes dataset"| node_asr
node_soundfx -->|"generates effects"| node_foley
node_foley -->|"loads model"| node_mmaudio
node_tts -->|"uses utilities"| node_modelutils
node_tts -->|"loads inference"| node_vibevoice
node_tts -->|"loads inference"| node_fish
node_tts -->|"loads engine"| node_chatterbox
node_chatterbox -->|"uses model"| node_t3
node_studio -->|"loads tool"| node_promptgen

click node_studio "https://github.com/franckyb/voice-clone-studio/blob/main/voice_clone_studio.py"
click node_clone "https://github.com/franckyb/voice-clone-studio/blob/main/modules/core_components/tools/voice_clone.py"
click node_conversation "https://github.com/franckyb/voice-clone-studio/blob/main/modules/core_components/tools/conversation.py"
click node_changer "https://github.com/franckyb/voice-clone-studio/blob/main/modules/core_components/tools/voice_changer.py"
click node_design "https://github.com/franckyb/voice-clone-studio/blob/main/modules/core_components/tools/voice_design.py"
click node_presets "https://github.com/franckyb/voice-clone-studio/blob/main/modules/core_components/tools/voice_presets.py"
click node_training "https://github.com/franckyb/voice-clone-studio/blob/main/modules/core_components/tools/train_model.py"
click node_prep "https://github.com/franckyb/voice-clone-studio/blob/main/modules/core_components/tools/prep_audio.py"
click node_soundfx "https://github.com/franckyb/voice-clone-studio/blob/main/modules/core_components/tools/sound_effects.py"
click node_asr "https://github.com/franckyb/voice-clone-studio/blob/main/modules/core_components/ai_models/asr_manager.py"
click node_tts "https://github.com/franckyb/voice-clone-studio/blob/main/modules/core_components/ai_models/tts_manager.py"
click node_chatterbox "https://github.com/franckyb/voice-clone-studio/blob/main/modules/chatterbox/mtl_tts.py"
click node_fish "https://github.com/franckyb/voice-clone-studio/blob/main/modules/fish_speech/fish_speech/models/text2semantic/inference.py"
click node_vibevoice "https://github.com/franckyb/voice-clone-studio/blob/main/modules/vibevoice_tts/modular/modeling_vibevoice_inference.py"
click node_t3 "https://github.com/franckyb/voice-clone-studio/blob/main/modules/chatterbox/models/t3/t3.py"
click node_emotion "https://github.com/franckyb/voice-clone-studio/blob/main/modules/core_components/emotion_manager.py"
click node_promptgen "https://github.com/franckyb/voice-clone-studio/blob/main/modules/core_components/tools/prompt_generator.py"
click node_prompthub "https://github.com/franckyb/voice-clone-studio/blob/main/modules/core_components/prompt_hub.py"
click node_modelutils "https://github.com/franckyb/voice-clone-studio/blob/main/modules/core_components/ai_models/model_utils.py"
click node_foley "https://github.com/franckyb/voice-clone-studio/blob/main/modules/core_components/ai_models/foley_manager.py"
click node_mmaudio "https://github.com/franckyb/voice-clone-studio/blob/main/modules/mmaudio/mmaudio/model/networks.py"
click node_history "https://github.com/franckyb/voice-clone-studio/blob/main/modules/core_components/tools/output_history.py"
click node_settings "https://github.com/franckyb/voice-clone-studio/blob/main/modules/core_components/tools/settings.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_studio,node_clone,node_conversation,node_changer,node_design,node_presets,node_training,node_user toneBlue
class node_tts,node_chatterbox,node_fish,node_vibevoice,node_t3 toneAmber
class node_prep,node_soundfx,node_asr,node_foley,node_mmaudio toneMint
class node_emotion,node_promptgen,node_prompthub,node_modelutils,node_history,node_settings toneRose
```

## Components

### App and tools

- [Gradio app](https://github.com/franckyb/voice-clone-studio/blob/main/voice_clone_studio.py): `voice_clone_studio.py`
- [Voice clone](https://github.com/franckyb/voice-clone-studio/blob/main/modules/core_components/tools/voice_clone.py): `modules/core_components/tools/voice_clone.py`
- [Conversation](https://github.com/franckyb/voice-clone-studio/blob/main/modules/core_components/tools/conversation.py): `modules/core_components/tools/conversation.py`
- [Voice changer](https://github.com/franckyb/voice-clone-studio/blob/main/modules/core_components/tools/voice_changer.py): `modules/core_components/tools/voice_changer.py`
- [Voice design](https://github.com/franckyb/voice-clone-studio/blob/main/modules/core_components/tools/voice_design.py): `modules/core_components/tools/voice_design.py`
- [Voice presets](https://github.com/franckyb/voice-clone-studio/blob/main/modules/core_components/tools/voice_presets.py): `modules/core_components/tools/voice_presets.py`
- [Voice training](https://github.com/franckyb/voice-clone-studio/blob/main/modules/core_components/tools/train_model.py): `modules/core_components/tools/train_model.py`

### Speech engines

- [TTS manager](https://github.com/franckyb/voice-clone-studio/blob/main/modules/core_components/ai_models/tts_manager.py): `modules/core_components/ai_models/tts_manager.py`
- [Chatterbox TTS](https://github.com/franckyb/voice-clone-studio/blob/main/modules/chatterbox/mtl_tts.py): `modules/chatterbox/mtl_tts.py`
- [Fish Speech](https://github.com/franckyb/voice-clone-studio/blob/main/modules/fish_speech/fish_speech/models/text2semantic/inference.py): `modules/fish_speech/fish_speech/models/text2semantic/inference.py`
- [VibeVoice TTS](https://github.com/franckyb/voice-clone-studio/blob/main/modules/vibevoice_tts/modular/modeling_vibevoice_inference.py): `modules/vibevoice_tts/modular/modeling_vibevoice_inference.py`
- [Chatterbox T3](https://github.com/franckyb/voice-clone-studio/blob/main/modules/chatterbox/models/t3/t3.py): `modules/chatterbox/models/t3/t3.py`

### Audio workflows

- [Audio preparation](https://github.com/franckyb/voice-clone-studio/blob/main/modules/core_components/tools/prep_audio.py): `modules/core_components/tools/prep_audio.py`
- [Sound effects](https://github.com/franckyb/voice-clone-studio/blob/main/modules/core_components/tools/sound_effects.py): `modules/core_components/tools/sound_effects.py`
- [Transcription](https://github.com/franckyb/voice-clone-studio/blob/main/modules/core_components/ai_models/asr_manager.py): `modules/core_components/ai_models/asr_manager.py`
- [Foley manager](https://github.com/franckyb/voice-clone-studio/blob/main/modules/core_components/ai_models/foley_manager.py): `modules/core_components/ai_models/foley_manager.py`
- [MMAudio synthesis](https://github.com/franckyb/voice-clone-studio/blob/main/modules/mmaudio/mmaudio/model/networks.py): `modules/mmaudio/mmaudio/model/networks.py`

### Shared services

- [Emotion presets](https://github.com/franckyb/voice-clone-studio/blob/main/modules/core_components/emotion_manager.py): `modules/core_components/emotion_manager.py`
- [Prompt generator](https://github.com/franckyb/voice-clone-studio/blob/main/modules/core_components/tools/prompt_generator.py): `modules/core_components/tools/prompt_generator.py`
- [Prompt hub](https://github.com/franckyb/voice-clone-studio/blob/main/modules/core_components/prompt_hub.py): `modules/core_components/prompt_hub.py`
- [Model utilities](https://github.com/franckyb/voice-clone-studio/blob/main/modules/core_components/ai_models/model_utils.py): `modules/core_components/ai_models/model_utils.py`
- [Output history](https://github.com/franckyb/voice-clone-studio/blob/main/modules/core_components/tools/output_history.py): `modules/core_components/tools/output_history.py`
- [Settings](https://github.com/franckyb/voice-clone-studio/blob/main/modules/core_components/tools/settings.py): `modules/core_components/tools/settings.py`

### Other components

- **User**

## Connections

- User → Gradio app: opens
- Gradio app → Voice clone: loads tools
- Gradio app → Conversation: loads tools
- Gradio app → Voice changer: loads tools
- Gradio app → Voice design: loads tools
- Gradio app → Voice presets: loads tools
- Gradio app → Voice training: loads tools
- Gradio app → Audio preparation: loads tools
- Gradio app → Sound effects: loads tools
- Voice clone → TTS manager: generates speech
- Conversation → TTS manager: generates dialogue
- Voice changer → Chatterbox TTS: converts speech
- Voice design → TTS manager: creates voice
- Voice presets → TTS manager: generates speech
- Audio preparation → Transcription: transcribes audio
- Voice training → Transcription: transcribes dataset
- Sound effects → Foley manager: generates effects (evidence: `modules/core_components/ai_models/foley_manager.py`)
- Foley manager → MMAudio synthesis: loads model (evidence: `modules/core_components/ai_models/foley_manager.py`)
- TTS manager → Model utilities: uses utilities (evidence: `modules/core_components/ai_models/tts_manager.py`)
- TTS manager → VibeVoice TTS: loads inference (evidence: `modules/core_components/ai_models/tts_manager.py`)
- TTS manager → Fish Speech: loads inference (evidence: `modules/core_components/ai_models/tts_manager.py`)
- TTS manager → Chatterbox TTS: loads engine (evidence: `modules/core_components/ai_models/tts_manager.py`)
- Chatterbox TTS → Chatterbox T3: uses model (evidence: `modules/chatterbox/mtl_tts.py`)
- Gradio app → Prompt generator: loads tool (evidence: `voice_clone_studio.py`)
