Introducing a new way to review your PRs.

Read the announcement

debpalash / voicestudio

VoiceStudio is the open-source, fully-local ElevenLabs alternative — voice cloning, voice design, video dubbing, dictation, transcription & audiobook creation in 646 languages.

View on GitHub

26 documents · Updated Nov 23, 2026

docs / electron-workspaces

Electron workspace interface

The Electron renderer is VoiceStudio's desktop work surface for creating, reviewing, and exporting speech media. It joins voice creation, dubbing, transcription, long-form narration, projects, calls, tools, gallery, and settings through one workspace shell, backend APIs, and a safe desktop bridge. See Electron desktop, voice generation, media localization, and desktop automation workflows for related behavior.

Workspace shell

The workspace shell gives the renderer one stable way to move between product areas. Voice, Stories, dubbing, and related pages form grouped navigation, while projects, transcription, calls, tools, gallery, and integrations stay close to the main work area.

The shell separates navigation state from feature state. A user can change the navigation rail, context pane, or saved-voice pane without changing the active draft. The command palette adds a second path to workspaces, settings destinations, shortcuts, saved profiles, recent takes, generation, and cancellation.

Workspace groupProduct purpose
VoiceCreate a voice from a recording or a written description.
Stories and audiobooksTurn scripts and long text into narrated audio.
Dubbing and batch dubbingLocalize audio or video into one or more languages.
TranscriptionCapture speech or transcribe audio for reuse.
Calls and workflowsPrepare phone-agent calls or run repeatable speech tasks.
Projects and libraryReopen work, profiles, transcripts, takes, renders, and exports.
Gallery and integrationsFind reusable voice material and setup help for connected services.
ToolsInspect media and derive speech or timing guidance.
Settings and ProControl models, runtime conditions, access, and product behavior.

References: electron/…/workspace-sidebar.tsx• L20-41 electron/…/workspace-menu.tsx• L48-68 electron/…/use-workspace-sidebar.ts• L5-72 electron/…/command-palette.tsx• L68-105 electron/…/command-palette.tsx• L108-305

Runtime boundary

The renderer treats product services and the operating system as separate boundaries. Backend APIs carry profiles, jobs, model state, media work, and project data. The desktop bridge exposes limited native actions such as file dialogs, saving files, folder watching, window controls, permissions, updates, account actions, global capture, diagnostics, and license state.

The application root keeps shared services above the router. These services cover authentication, native dictation, model installs, real-time events, generation activity, diagnostics, cloud sync, license acceptance, and update restart. Features use the bridge when Electron provides it and use browser or in-app fallbacks when it does not.

This diagram shows how a renderer action reaches product services or native desktop behavior.

flowchart LR
    User[User action] --> Renderer[Electron renderer workspace]
    Renderer --> API[Backend API]
    Renderer --> Bridge[Desktop bridge]
    API --> Local[Managed local backend]
    API --> Remote[Configured remote backend]
    Bridge --> OS[Files, audio, folders, permissions, updates]

References: electron/…/app.tsx• L1-27 electron/…/app.tsx• L66-109 electron/…/client.ts• L21-35 electron/…/client.ts• L139-210 electron/…/index.ts• L21-140

Backend readiness

The backend gate prepares the managed service before normal production work starts. It explains setup, dependency work, port conflicts, crashes, and recovery while keeping the shell mounted around the gate. A busy backend keeps the workspace usable; a real failure offers a repair path.

The shared status area turns backend, engine, model, translation, dictation, worker, compute, storage, and update state into links to a setting or repair action. Setup can resume an interrupted install, change the managed runtime location, save setup logs, check the connection, and offer a remote backend when the local platform cannot run the service.

References: electron/…/backend-gate.tsx• L77-191 electron/…/backend-gate.tsx• L215-363 electron/…/setup-support.tsx• L10-118 electron/…/status-bar.tsx• L145-241 electron/…/download-activity.tsx• L24-70

First-run setup

The first-run gate prepares the local product before normal workspaces open. It checks the system, prepares the selected model pack, collects privacy and analytics choices, offers an account choice, and configures optional dictation access.

The app keeps an early analytics choice until the backend can accept it. The backend's stored choice wins when it exists. A failed handoff remains retryable, and a machine-level analytics disable switch blocks collection even after an earlier opt-in.

References: electron/…/setup-gate.tsx• L32-103 electron/…/setup-gate.tsx• L132-269 electron/…/analytics-consent.tsx• L33-119 electron/…/download-activity.tsx• L75-97

Home workspace

Launch surface

The home workspace orients a new session and restores recent work. It links to voice, design, dubbing, Stories, audiobooks, gallery, transcription, workflows, and tools. It also shows recent exports, recent dubbing and long-form projects, and saved profiles when those sources have data.

Home does not own production state. It restores a profile or project and moves the user to the workspace that owns the next action. Opening a long-form project asks for confirmation because it replaces the current draft; canceling leaves the working draft unchanged.

References: electron/…/home-page.tsx• L84-207 electron/…/home-page.tsx• L397-475 electron/…/home-recent-projects.tsx• L13-68

Voice workspaces

Voice creation

The cloning workspace turns a reference voice and a script into speech. The design workspace creates a voice from a written description, presets, traits, and a seed. Both workflows can preview and save a profile, then reuse it in cloning or long-form narration.

The backend owns profiles and generation. The renderer checks voice, script, language, engine, and model readiness before a request. It keeps engine-specific style input safe and treats streaming preview as incomplete until a terminal event and canonical audio are available.

References: electron/…/clone-page.tsx• L36-115 electron/…/action-bar.tsx• L325-467 electron/…/voices-sidebar.tsx• L60-141 electron/…/design-page.tsx• L73-160 electron/…/design-page.tsx• L247-445 electron/…/generate.ts• L86-203 electron/…/generate.ts• L306-414

Voice library

The shared voice library gives users saved profiles and recent takes in one context surface. Search, profile filters, preview, edit, delete, starring, reuse, and playback connect the library to the owning creation workspace.

Profile and take actions carry identity or production settings into the next workspace. Design results restore design state, while clone results restore clone settings. The library is therefore a handoff surface rather than a second production editor.

References: electron/…/voices-sidebar.tsx• L60-141 electron/…/voices-sidebar.tsx• L374-467 electron/…/take-details.tsx• L44-75

Speech production workspaces

Dubbing workflow

The dubbing workspace changes spoken audio or video into one or more target languages. It prepares a source, transcribes speech, identifies speakers, translates segments, lets the user review words and timing, assigns voices, and renders translated tracks.

The review surface also controls dialect, timing, previews, quality checks, and export. Export can produce media, audio, subtitles, stems, or clips. It can also carry settled segments and cast data into Stories. Export options cover track selection, background audio, subtitle form, subtitle burn-in, dual subtitles, karaoke style, and bitrate. Before dubbing, the transcript can still export as subtitles or as an original video with its original audio.

This diagram shows the main dubbing path from source media to a reviewed result.

flowchart LR
    Source[Audio, video, URL, or captions] --> Prepare[Prepare source]
    Prepare --> Transcribe[Transcribe and identify speakers]
    Transcribe --> Review[Review text, timing, translation, and voices]
    Review --> Preview[Preview speech]
    Review --> Render[Render translated tracks]
    Render --> Check[Check timing and speech]
    Check --> Export[Export media or subtitles]
    Review --> Story[Create Stories draft]

References: electron/…/dub-page.tsx• L238-340 electron/…/dub-page.tsx• L631-796 electron/…/dub-page.tsx• L901-1077 electron/…/dub-page.tsx• L1265-1571 electron/…/dub-export-panel.tsx• L19-105 electron/…/dub-source-row.tsx• L19-160

Dubbing projects

The dubbing workspace keeps saved projects beside the active draft so a user can search, reopen, or delete work without leaving the editor. The list is backed by the projects API and sorts entries by their latest change. Opening a project loads its full record into the current dubbing session and then returns to the dubbing route.

Because opening replaces the working project, the project pane waits during dubbing, long-form rendering, recovery, or another open/delete request. It checks that the draft did not change while the project loaded. Deletion updates the local list only after the backend accepts the request, then refreshes the project query.

References: electron/…/dub-projects.tsx• L33-39 electron/…/dub-projects.tsx• L70-148 electron/…/dub-projects.tsx• L168-306

Dubbing recovery

Dubbing treats interrupted work as recoverable until the backend confirms completion or cancellation. Restored drafts remove provider error output and invalid values. Segment edits clear stale translation, timing, and quality results so later renders use the current text.

The dub-to-Stories handoff is offered only when segment text has settled. It refuses to replace an active long-form render or a draft store that cannot accept the replacement. A successful handoff clears old imports, output, and project links before it navigates to Stories.

References: electron/…/dub-page.tsx• L647-670 electron/…/dub-session.ts• L481-553 electron/…/dub-session.ts• L949-1024 electron/…/dub-to-story.ts• L19-107 electron/…/dub-to-story-refused.test.ts• L1-19

Batch dubbing

The batch dubbing workspace applies the same localization goal to many videos and target languages. The user selects files or watches a native folder, chooses languages and a voice policy, and adds one backend job for each file and target combination.

The queue reports active, completed, and retryable jobs. Users can cancel, delete, retry, install missing translation packs, and download finished outputs. Each job and language has its own pending export key, so a repeated click cannot start the same save twice while unrelated downloads remain available. Folder watching uses the desktop bridge; native saving falls back to a browser download outside Electron.

References: electron/…/batch-page.tsx• L43-189 electron/…/batch-page.tsx• L391-470 electron/…/batch-page.tsx• L572-639 electron/…/use-pending-keys.ts• L1-23

Long-form narration

Stories and audiobooks turn long text into sustained speech. Stories use line-based scripts with speakers and per-line controls. Audiobooks use chapter-aware scripts with cast mapping, pronunciation data, book metadata, and M4B or MP3 output.

Both modes share a draft and one render session. The user can import text or supported documents, edit lines or chapters, assign voices, preview parts, set language and production choices, and render. The session keeps progress, cached chapters, failed chapters, elapsed time, and recovery state visible. The final player follows the output, and MP3 exports can include a cue sheet because MP3 does not carry chapter data.

Completed output stays linked to the backend connection that created it. A connection or data-root change keeps the draft but does not present another connection's audio as the current result. A legacy result can be checked on the current connection only after the user asks, and that check proves availability rather than file identity.

Each mode has its own project list. Users can start a new draft, save it, save a copy, reopen a saved project, or delete one after confirmation. Opening or starting a project replaces the current draft, and a render in either mode locks replacement actions until it stops or completes.

Long-form rendering consumes one shared server-sent event stream for Stories and audiobooks. The stream reports start, progress, chapter results, assembly, completion, and errors. Stopping cancels the reader and the fetch so the backend sees the disconnect and can stop scheduling more chapters. If the connection fails after the backend persisted a finished result, the session can recover that result instead of treating the render as lost.

References: electron/…/longform-page.tsx• L72-217 electron/…/longform-page.tsx• L218-365 electron/…/longform-page.tsx• L367-575 electron/…/longform-session.ts• L109-205 electron/…/longform-session.ts• L684-856 electron/…/result-recovery.tsx• L5-41 electron/…/project-settings.tsx• L39-243 electron/…/longformStream.js• L1-87

Workflow automation

The Workflows workspace lets a user arrange repeatable speech and media actions on a local canvas. A workflow can load audio, speak text, normalize audio, transcribe, translate, convert a voice, or prepare a call brief. It does not place a call or run a general call graph from the canvas.

The runner validates the graph before it creates side effects. It supports a compatible linear path, runs each step through the matching backend API, and saves local workflow data and checkpoints. See desktop automation workflows for the workflow model and runner.

References: electron/…/workflows-page.tsx• L46-171 electron/…/workflows-page.tsx• L263-385 electron/…/workflow-operations.ts• L21-90

Transcription workspace

Speech capture and history

The transcription workspace supports live dictation, microphone recording, and uploaded audio. Fast mode serves dictation. Accurate mode serves file transcription and can identify speakers. Each mode checks model readiness before it starts and stores finished transcripts in local history for search, copy, export, deletion, and reuse in voice cloning.

Live dictation sends microphone audio to the backend transcription WebSocket and shows partial text before final utterances enter history. The capture widget stays separate from page navigation so a native shortcut can deliver final utterances to a desktop action. File results can include time ranges and speaker labels, which enables plain text or subtitle export.

The page keeps fast or accurate mode and speaker identification as local preferences. Accurate mode uses its own readiness check and model state. A user can upload an audio file, record from a selected input, or start live dictation when the related service is ready.

References: electron/…/transcriptions-page.tsx• L93-177 electron/…/transcriptions-page.tsx• L179-244 electron/…/transcriptions-page.tsx• L359-527 electron/…/live-dictation.ts• L35-187 electron/…/capture-widget.tsx• L11-147

Transcription recovery

A canceled or superseded dictation session must not publish microphone, socket, timer, or delayed model results into a later session. The capture client uses one session identity and releases its audio resources on stop, cancel, error, or completion.

Missing models appear as setup actions. API failures keep repair text separate from technical details, and retry uses the selected source and mode when the request can safely run again.

References: electron/…/live-dictation.ts• L63-125 electron/…/live-dictation.ts• L189-310 electron/…/dictation-setup.tsx• L29-82 electron/…/transcription-failure.tsx• L15-59

Calls and workflows

Call readiness

The Calls workspace connects a phone service, speech models, and a saved voice into a phone-call agent. Before a call starts, it checks account access, public call path, phone number, language model, speech recognition, and voice. Each failed check points to the setting or integration that can repair it.

The call transport stays in the Calls API rather than the desktop bridge. If an older backend lacks that API, the page explains that the backend needs an update and does not show an unusable dial action.

References: electron/…/calls-page.tsx• L110-193 electron/…/calls.ts• L1-167 electron/…/inbound-settings.tsx• L21-57

Live call session

An outbound call starts from a reviewed plan with an international number, task brief, voice, disclosure choice, and time limit. The live view combines the saved call record with an event stream and shows agent state, transcript lines, elapsed time, and stream health.

During a call, the user can let the agent continue, take over, send a spoken line, or hang up. Reconnect reloads the call record so a network gap does not lose transcript lines. After completion, the view keeps the conversation, summary, outcome, and call-again action.

References: electron/…/call-view.tsx• L162-311 electron/…/use-live-call.ts• L10-86 electron/…/use-call-events.ts• L13-130

Library and discovery workspaces

Project library

The project library is the cross-workspace record of user work. It combines dubbing projects, Stories and audiobook drafts, saved profiles, transcripts, generated takes, long-form renders, and exported files into one searchable and filterable view.

The library joins backend records with local stores without claiming that they share one storage system. Project actions reopen the owning workspace. Rename, open, and delete actions are guarded while dubbing or long-form work is active or recovering. Bulk deletion keeps failed rows for retry and does not repeat successful deletes.

References: electron/…/projects-page.tsx• L123-193 electron/…/projects-page.tsx• L195-293 electron/…/projects-page.tsx• L295-435

Project handoff

Project handoff moves a selected dubbing, Stories, or audiobook project between app instances or related desktop clients. Export creates a .vsproject bundle. Import validates the bundle, includes voice material only after explicit permission, and creates a new local identity instead of adopting the sender's project ID.

The handoff surface shows incoming bundles and refreshes project, profile, and long-form views after import. It uses a local save path through the desktop bridge when available and a browser-safe fallback otherwise.

References: electron/…/project-handoff.tsx• L17-207 electron/…/project-handoff-format.ts• L4-104 electron/…/project-handoff.test.tsx• L49-87

The gallery is a discovery surface for reusable voice material. Catalogue and community views search and filter voice archetypes, presets, and shared voices. The community view removes duplicates across sources and pages, marks items added in the last 30 days, and searches names, descriptions, authors, and languages.

Its virtual grid keeps large catalogues usable while preserving an active preview and keyboard focus as the viewport or column count changes. Using an item creates or selects a profile before opening design, cloning, Stories, or audiobooks. Community items retain author and license information. Only a valid non-house GitHub handle becomes an external author link, and Electron opens it through the desktop bridge.

References: electron/…/community-view.tsx• L33-102 electron/…/community-view.tsx• L103-246 electron/…/community-view.tsx• L333-411 electron/…/gallery-page.tsx• L50-205 electron/…/favorites.ts• L1-80

Integration directory

The integration directory helps users connect external services to VoiceStudio. It lists supported entries by product area and opens an in-app setup page only when that setup exists. Detail pages provide setup material such as API examples, MCP configuration, container commands, Twilio steps, or an n8n workflow.

The directory prepares guidance. It does not edit external client files, run generation, or export credentials. Native file saving and external links use the desktop bridge when Electron provides it.

References: electron/…/integrations-page.tsx• L13-129 electron/…/integration-detail-page.tsx• L27-84 electron/…/setup-registry.ts• L22-68

Tool workspace

Media and speech tools

The tools workspace provides focused operations that support production without opening a full editor. It can derive speech direction from text, fit translated speech to a time slot, inspect a media file, compare two voices, and convert speech into a saved target voice.

Each tool sends a small request to a matching backend endpoint and presents the result for inspection. These tools prepare and check work; cloning, dubbing, and long-form pages own final production state.

References: electron/…/tools-page.tsx• L41-153 electron/…/compare-voices.tsx• L21-110 electron/…/convert-voice.tsx• L23-113 electron/…/convert-voice.tsx• L221-297

Settings workspace

Settings navigation

The Settings workspace controls the conditions under which other workspaces run. It uses searchable navigation and a separate content surface for language, appearance, review mode, models, translation, dictation, media tools, pronunciation, updates, support, network, sharing, credentials, compute, privacy, permissions, storage, diagnostics, API access, logs, account, and data reset.

The route remembers the last settings location. Settings also exposes general appearance choices and optional desktop behavior. The browser does not show desktop-only controls when no native bridge exists.

References: electron/…/settings-page.tsx• L51-317 electron/…/settings-index.ts• L1-38 electron/…/settings-preferences.tsx• L31-207 electron/…/close-to-tray-settings.tsx• L8-65

Privacy controls

Privacy settings let users control translator disclosure, audio watermarking, analytics, diagnostics, and history retention. Each control reflects the state that the backend or desktop service can use, and unavailable controls explain why they cannot change.

Diagnostic reporting is opt-in and does not block the original user action. History retention controls the maximum number of local transcript records and confirms changes that reduce or re-enable retention.

References: electron/…/privacy-settings.tsx• L14-45 electron/…/privacy-settings.tsx• L105-214 electron/…/diagnostic-consent.tsx• L18-131 electron/…/diagnostic-reports.ts• L82-216

Model readiness

Model settings make runtime readiness visible and actionable. The catalogue groups models by speech role and joins them to the engine families that can run them. It shows required, recommended, optional, incomplete, unsupported, gated, installed, and license-pending states.

Performance packs offer device-aware groups of models. Shared download activity keeps progress, cancellation, retry, and recent failures visible after navigation. The same license path serves generation, dictation, dubbing, and batch work. A GGUF engine can run a short real synthesis check; a failed or timed-out check does not change engine selection.

References: electron/…/model-library.tsx• L66-371 electron/…/engine-family-list.tsx• L84-342 electron/…/gguf-self-test.tsx• L8-83 electron/…/model-licence-acceptance.tsx• L46-352

Engine and provider settings

Engine settings connect the renderer to speech, language, translation, dictation, diarisation, and language-model providers. Users can install an engine, select a ready engine, configure providers, test them, list models, and activate them.

Translation settings keep online, offline, and language-model choices distinct. Environment-pinned values remain read-only and saved secrets do not return to visible form state. Readiness refreshes after selection and provider actions so production pages use current state.

References: electron/…/model-settings.tsx• L56-94 electron/…/engine-family-list.tsx• L61-128 electron/…/translation-settings.tsx• L41-205 electron/…/llm-providers.tsx• L47-449

Runtime performance

Performance settings show how the local machine runs speech work. They connect model choices, compute-device selection, GPU capability, system use, time budgets, and memory controls.

The GPU report explains when the host or installed runtime prevents acceleration. It names engines that can still use a device, shows CPU fallbacks, and hides unknown backend codes instead of presenting them as user guidance. Close-to-tray is an Electron-only opt-in that hides the window instead of quitting so running jobs can continue.

References: electron/…/performance-settings.tsx• L92-643 electron/…/gpu-acceleration.tsx• L11-195 electron/…/close-to-tray-settings.tsx• L8-65

Pronunciation dictionaries

Pronunciation settings control how names and terms are spoken. A dictionary can apply by language or to one saved voice. Entries use respelling, IPA, or CMU forms and can be enabled, removed, tested, imported, or exported.

The test view shows substituted text before generation uses it. Imports stay tied to the selected dictionary, and changing voice scope clears a pending replacement choice.

References: electron/…/pronunciation-settings.tsx• L23-523

Network and sharing settings

Network settings control proxy and remote backend use. Sharing settings can expose the backend on the local network with a PIN, show addresses and QR codes, check listening interfaces, set the share port, and prepare a Tailscale path.

Sharing is explicit and guarded. The page refreshes addresses after network changes and uses the desktop bridge for external links in Electron. Remote backend and MCP binding stay separate from media production controls.

References: electron/…/sharing-settings.tsx• L95-406

Diagnostics and updates

Diagnostics provide read-only views of runtime health, device data, models, data paths, logs, API description, and model credits. Updates check releases, download a selected version, show progress and notes, and ask the native updater to restart.

Update restart checks renderer activity, dubbing recovery, rendering, model installs, and batch jobs before it interrupts work. Slow backend or release sources become retryable errors instead of permanent loading states.

References: electron/…/diagnostics-settings.tsx• L86-384 electron/…/update-settings.tsx• L34-647

Cross-workspace lifecycle

Persistence and handoffs

Long-running work can outlive a single view. The renderer persists dubbing drafts, long-form drafts, workflow documents and checkpoints, local transcripts, gallery preferences, and project links in the store that owns each kind of data. It flushes long-form state when the desktop process asks for persistence.

Cross-workspace actions restore the owning draft before navigation. A dub-to-Stories handoff carries reviewed lines and cast data. A profile, transcript, take, or project handoff carries its identity or recipe into cloning, design, or long-form work. Active rendering and recovery lock actions that could replace current work.

References: electron/…/app.tsx• L76-87 electron/…/longform-session.ts• L568-652 electron/…/dub-to-story.ts• L63-107 electron/…/project-handoff.tsx• L50-68 electron/…/project-settings.tsx• L73-114

Asynchronous work

The renderer treats streamed work as complete only after a terminal event. Requests are abortable. Session identities, revisions, and current-draft checks reject late results so an old preview, translation, import, or render cannot replace newer user edits.

Long-form rendering keeps activity above the page so progress remains visible after navigation. It can resume an interrupted backend job, stop active work, and retain completed results without presenting media from another backend connection as current output.

References: electron/…/longform-session.ts• L684-856 electron/…/longform-session.ts• L514-567 electron/…/event-stream.ts• L14-70 electron/…/longformStream.js• L20-86 electron/…/use-pending-keys.ts• L8-21

Change checklist

When these files or sections are changed, remember to consider these:

  • Keep route groups, home destinations, compact-sidebar rules, context-pane routes, settings back-links, command-palette destinations, and workflow-to-call handoffs aligned.
  • Keep the shell header, account corner spacing, title-bar controls, status bar, download activity, repair dock, now-playing dock, and secondary-sidebar behavior aligned across platforms.
  • Keep window.voicestudio types, preload handlers, renderer fallbacks, native saving, folder watching, global capture, external links, and update actions aligned.
  • Keep API paths, request bodies, stream terminal events, WebSocket routes, readiness states, license events, and structured failure guidance aligned with each workspace.
  • Keep profile kind, take mode, design recipe, transcript reuse, long-form voice mapping, gallery destinations, and project restore fields aligned across handoffs.
  • Keep dubbing segment identity, source and target language state, translation revisions, cast assignments, timing choices, quality results, recovery state, export preferences, and dub-to-Stories replacement rules aligned.
  • Keep dubbing project listing, open/delete locks, draft-change checks, query invalidation, and project library records aligned.
  • Keep long-form draft fields, result ownership, connection changes, recovery checks, project replacement, chapter status, cached output, and output formats aligned.
  • Keep the shared long-form stream event shapes, abort behavior, reader release, persisted-finish recovery, and terminal completion checks aligned between Stories and audiobooks.
  • Keep batch job status, retry setup, per-output pending keys, translation-pack installation, folder watching, and native export behavior aligned.
  • Keep gallery source keys, duplicate removal, search fields, new-item dates, author-link validation, virtual-grid focus, pinned previews, and profile placement aligned.
  • Keep model catalogue roles, performance tiers, engine selection, install jobs, license acceptance, shared download activity, provider readiness, and GPU report codes aligned.
  • Keep close-to-tray support optional and keep failed native saves tied to the last confirmed value.
  • Keep project library source records, filters, row keys, replacement boundaries, deletion retry behavior, handoff permission, and query refreshes aligned.
  • Keep call readiness identifiers, international number rules, disclosure choices, event names, transcript finality, reconnect resync, and terminal call records aligned.
  • Keep dictation mode readiness, microphone cleanup, partial and final frame meaning, capture session delivery, native shortcut state, local preference storage, and subtitle eligibility aligned.
  • Keep update release filtering, progress, backups, active-work checks, and native restart behavior aligned.

Important failure modes

TriggerConsequenceGuard
The managed backend is incomplete, crashed, or unreachableNormal workspace requests cannot start.The backend gate shows setup or recovery while repair and settings surfaces remain available.
A model is missing, unsupported, incomplete, or license-pendingSpeech, translation, dictation, dubbing, tools, or long-form work stays blocked.Readiness notices link to model setup and the shared license flow handles acceptance before retry.
A repeated batch export click occurs while the same output is savingThe same file save can run more than once.A pending key blocks only that job-and-language pair until the action settles.
A batch job needs translation packs or a licenseRetry can fail again or remain opaque.The job exposes setup state, installs the required pack or license, then retries.
A dub export has no settled transcript or translated trackThe export request has no valid source.The export panel requires a job, track, and segments or completed tracks for the selected format.
A dub project opens while the active draft, dubbing session, recovery, or long-form render is changingThe current work can be replaced by stale project data.The project pane locks replacement, snapshots the session, aborts inactive requests, and checks for draft changes before opening.
A dub handoff occurs during a long-form render or a refused draft replacementThe user can navigate to an editor that still shows old work.The handoff returns false and leaves the draft and import epoch unchanged.
A project open or delete uses a stale listA deleted project can be opened or the wrong draft can change.Project controls re-read the list after confirmation and refresh it after each operation.
A long-form result belongs to another backend connectionThe renderer can show audio that the selected backend does not own.Result ownership is tracked privately and only a user-requested availability check can show a legacy result.
A streamed render ends without a terminal eventPartial output can appear complete.Stream readers require terminal completion and recovery keeps unfinished work visible.
A long-form stop breaks only the read loopThe fetch can stay open and the backend can keep rendering unused chapters.Abort the fetch and cancel the response reader so the backend sees the disconnect.
A late import, preview, or dictation result follows a cancel or newer editOld media or text can replace current work.Abort signals, session identities, revisions, and current-draft checks reject stale work.
Fast or accurate transcription readiness is not checked for the selected modeA capture or file job can fail before useful work starts.Each mode uses its own readiness query and exposes setup before the action.
A transcription entry has no time rangesSubtitle export can produce invalid timing.Subtitle export stays disabled until the selected entry has usable segment timing.
A large gallery changes size while a preview is activeThe active player or keyboard focus can be lost.Virtual-grid pinning preserves the active preview and focus while cards mount and unmount.
A community item has a duplicate source, invalid author, or untrusted external valueThe gallery can show duplicate voices or unsafe author links.Source-aware keys deduplicate items and only validated non-house handles become links.
The host or runtime cannot use the selected GPUSpeech work can run on CPU or appear accelerated when it is not.The GPU report names the host limit, supported engines, and repair path.
Close-to-tray save fails or overlaps another saveThe setting can show an unsaved optimistic value.The renderer rolls back to the last main-process-confirmed value and reports the failure.
A native bridge is absent or a native save is canceledA desktop-only action cannot save, watch, capture, or open an external target.Renderer features use the bridge when present and browser or in-app fallbacks where possible.
An update is ready while rendering, batch work, model install, or recovery is activeRestart can interrupt work.Update restart checks active work before it installs or restarts.

Key files

FileWhy to read it
electron/…/app.tsxShows shared providers, native event hooks, model license handling, and persistence flush.
electron/…/app-shell.tsx and electron/…/workspace-sidebar.tsxShow the shell boundary, navigation, compact rail, backend gate, and shared docks.
electron/…/client.ts and electron/…/index.tsDefine backend request behavior and the safe desktop bridge.
electron/…/home-page.tsx and electron/…/home-recent-projects.tsxShow launch destinations, recent work, exports, profile restoration, and project replacement confirmation.
electron/…/clone-page.tsx, electron/…/design-page.tsx, and electron/…/voices-sidebar.tsxIllustrate voice creation, saved profiles, and take handoffs.
electron/…/dub-page.tsx, electron/…/dub-session.ts, electron/…/dub-projects.tsx, electron/…/dub-export-panel.tsx, and electron/…/dub-to-story.tsIllustrate staged dubbing, saved project replacement, export choices, recovery, and the Stories handoff.
electron/…/batch-page.tsx and electron/…/use-pending-keys.tsShow multi-file localization, queue actions, retry setup, folder watching, and guarded exports.
electron/…/longform-page.tsx, electron/…/longform-session.ts, electron/…/project-settings.tsx, and electron/…/longformStream.jsIllustrate Stories and audiobook editing, the shared render stream, result ownership, recovery, and projects.
electron/…/transcriptions-page.tsx and electron/…/live-dictation.tsIllustrate mode-specific readiness, file transcription, live capture, history, exports, reuse, and cleanup.
electron/…/calls-page.tsx, electron/…/use-call-events.ts, and electron/…/call-view.tsxDefine call readiness, live events, reconnect, controls, and final records.
electron/…/projects-page.tsx and electron/…/project-handoff.tsxIllustrate the mixed-source library, restore contract, deletion retry, and portable handoff.
electron/…/community-view.tsx and electron/…/gallery-page.tsxShow catalogue, community search, deduplication, virtual browsing, favorites, and profile placement.
electron/…/tools-page.tsx and electron/…/convert-voice.tsxShow focused media analysis, comparison, and voice conversion.
electron/…/settings-page.tsx, electron/…/settings-preferences.tsx, and electron/…/close-to-tray-settings.tsxShow settings routing, general preferences, and the Electron-only close-to-tray control.
electron/…/model-library.tsx, electron/…/gpu-acceleration.tsx, and electron/…/translation-settings.tsxShow model readiness, device limits, GPU guidance, and provider selection.
electron/…/update-settings.tsx and electron/…/diagnostics-settings.tsxShow update safety checks, release state, diagnostics, and native restart behavior.