Knowledge Base updated: 2026-11-22
VoiceStudio knowledge base
Orientation
VoiceStudio is a local-first speech product spanning a Python backend, Electron desktop app, mobile clients, and the bundled OmniVoice model package. It provides generation, transcription, dubbing and long-form media workflows, model management, and optional cloud-connected capabilities.
The backend/ application owns HTTP APIs, service orchestration, model catalog and runtime state, background media jobs, and local/remote inference integration. Electron provisions that backend for desktop users and exposes native IPC to its renderer workspaces.
Persistent and operational state includes downloaded model/cache contents, media-project and generated-audio artifacts, backend job state, desktop application settings and sessions, and mobile persisted host/session data. The exact storage mechanisms vary by platform and workflow.
System architecture
flowchart TB
User[Desktop and mobile users] --> Electron[Electron desktop]
User --> Mobile[Android and iOS clients]
Electron --> Renderer[Renderer workspaces]
Renderer --> IPC[Preload and main-process IPC]
IPC --> Backend[Python backend API]
Mobile --> Backend
Backend --> Generation[Generation services]
Backend --> Dub[Dubbing and long-form pipeline]
Backend --> Input[Transcription and dictation]
Backend --> Models[Model manager and catalogue]
Models --> Engines[Local engines and sidecars]
Engines --> Omni[Bundled OmniVoice]
Backend --> Remote[Remote GPU and cloud services]
Backend --> Storage[Models, media, projects, caches]
Electron --> Browser[Agent and embedded browser bridge]
Backend --> Diagnostics[Diagnostics and reports]
flowchart LR
Media[Uploaded media] --> Ingest[Dub project ingestion]
Ingest --> STT[Transcription and diarization]
STT --> Translate[Translation and speaker assignment]
Translate --> Synthesize[Timed speech synthesis]
Synthesize --> Render[Long-form render]
Render --> Export[Dubbed media or audiobook export]
Glossary
- Dub project: Persistent long-form localization work containing media, transcripts, speaker assignments, generated segments, and exports.
- OmniVoice: The repository's bundled speech-model package, including model code, training utilities, and command-line inference tools.
- Engine sidecar: A separately managed inference process used when an engine cannot safely or conveniently run in the backend process.
- Model catalogue: Metadata and policy layer describing downloadable models, capabilities, acceptance requirements, and installation state.
- Desktop bridge: Electron main/preload IPC surface used by renderer workspaces for native services and backend operations.
Codebase-wide invariants
- API and UI changes must preserve request/response contracts across clients; the shared mobile representation is mobile/…/openapi.json.
- Long-running dubbing work must retain recoverable project/job state rather than treating synthesis as a single request; see backend/…/dub_pipeline.py.
- Model loading must respect installation, acceptance, cache, and memory constraints; see backend/…/model_manager.py and backend/…/model_catalogue.py.
- Electron renderer code reaches privileged functionality through the main/preload bridge rather than direct Node access; see electron/…/index.ts and electron/…/protocol.ts.
- Engine placement must account for capability and process boundaries, including external subprocess runtimes; see backend/…/bootstrap.py and backend/…/main.py.
Routing table
backend/api/**, backend/main.py,backend/services/**-> Backend API platform- backend/…/generation.py,
backend/services/*generation*,backend/services/*voice*-> Speech generation and voice creation - backend/…/dub_*.py, backend/…/dub_pipeline.py, backend/…/longform_render.py -> Media dubbing and long-form production
- backend/…/transcri*.py, backend/…/dictat*.py,
backend/services/*transcri*-> Transcription and dictation - backend/…/*platform*.py, backend/…/*speech*.py,
backend/cli/**-> Speech platform integration - backend/…/*call*.py, backend/…/*call*.py,
electron/src/renderer/src/features/call/**-> Voice calls and telephony - backend/…/*llm*.py,
backend/services/*agent*,backend/services/*llm*-> LLM and agent services - backend/…/*account*.py, backend/…/*sync*.py,
backend/services/*sync*-> Account and cloud synchronization backend/engines/**, backend/…/model_manager.py,backend/services/*gpu*-> Model and compute orchestrationbackend/api/routers/setup/**, backend/…/model_catalogue.py, backend/…/hf_cache_repair.py -> Model catalog and lifecyclebackend/engines/audiocpp/**,backend/engines/omnivoice_subprocess/**, backend/…/bootstrap.py -> Inference engine routingomnivoice/models/**,omnivoice/data/**,omnivoice/train/**-> OmniVoice model system- omnivoice/…/demo.py, omnivoice/…/infer.py, omnivoice/…/infer_batch.py,
omnivoice/cli/**-> OmniVoice inference and CLI omnivoice/train/**,omnivoice/data/**,omnivoice/config/**-> OmniVoice data and training pipelinedeploy/**,scripts/**,electron/build/**, electron/package.json -> Deployment and local operationstests/**, electron/…/*.test.ts,mobile/**/test/**-> Quality and contract testingelectron/src/main/**,electron/src/preload/**, electron/package.json -> Electron desktop applicationelectron/src/renderer/src/features/**,electron/src/renderer/src/pages/**, electron/…/longformStream.js -> Electron workspace interfaceelectron/src/renderer/src/features/**/*workflow*,electron/src/renderer/src/**/*workflow*-> Desktop workflow automation- electron/…/llm-agent-bridge.ts, electron/…/repair-agents.ts,
electron/src/renderer/src/features/**/*agent*-> Desktop agent and browser workspace mobile/contract/**,mobile/native/**,mobile/android/**,mobile/ios/**-> Mobile client platformmobile/android/app/**,mobile/ios/**/App/**,mobile/**/src/**-> Android and iOS client workflows- backend/…/diagnostic*.py,
electron/**/*diagnostic*,mobile/**/*diagnostic*-> Diagnostics and observability - backend/…/diagnostic*.py,
electron/**/*report*,mobile/**/*report*-> Diagnostic capture and reporting backend/**/*consent*,electron/**/*consent*,mobile/**/*consent*-> Diagnostic consent and controls