Files
VoiceStudio/docs/electron-batch.md
Palash Debnath d6bd82844c Restart a crashed engine, ask before quitting running work, keep the batch queue across restarts (#4623)
* feat(desktop): restart a crashed engine, ask before quitting running work, keep the batch queue across restarts

- A local engine that crashed after it had started restarts on its own
  (1, 3, 6, 12, 30 s); a sixth crash in ten minutes, or a crash before it
  ever started, stays on the recovery screen.
- A quit the user starts asks first while the engine reports running work;
  confirmed update installs, OS shutdown and relaunches do not ask.
- Unfinished batch jobs keep a record beside their upload and are queued
  again, in order, on the next backend start.
- Interrupted audiobook/story renders are announced once after launch with
  a Resume action.

* changelog: add fragment for #4623

* test(dub): wait for the voice search to take focus

* fix(desktop): close the gaps review found in job resume and the quit prompt

- Quitting during a generation, clone, design or transcription now asks
  first: the engine reports open requests that do work, not just jobs.
- Restart on CPU withdraws a pending automatic restart before it saves the
  device choice, so the engine cannot start on the old device.
- Batch queue records hold only the upload's name, so they carry no home
  path and still restore after the data folder moves.
- A save racing a cancel, a job skipped as cancelled, or a record that
  cannot be deleted no longer brings finished or cancelled work back.
- One malformed record is dropped on its own instead of stopping every
  saved job from restoring.
- A queued or restored job whose speech model was removed fails with the
  enqueue message instead of downloading it.
- The interrupted-render notice retries a failed check a few times.
2026-12-04 03:43:28 +05:30

2.2 KiB

Electron batch dubbing

Open Batch dubbing from the cloning sidebar or command search. Add video files, choose one or more target languages, optionally select a saved voice, and choose whether to preserve background audio. Add to Queue submits through the existing backend. Successfully submitted files leave the upload list; failed files remain. The backend enforces ASR readiness and owns translation, generation and mixing. The Electron setup sidebar accepts file picking or drag-and-drop, groups media, languages and voice/audio choices into stable cards, and exposes the same Add Videos action from the empty job view. Selecting videos there reopens the setup pane. Add to Queue stays at the bottom of the pane while the file list scrolls.

Active, Completed and Failed views poll backend jobs. Progress shows backend stages and percentages. Active jobs can be cancelled; finished records require an inline confirmation before deletion. Completed language outputs use the native save dialog. Reloading the renderer reads existing jobs and never re-enqueues them. Jobs that have not finished survive a quit, crash or update restart: each keeps a small record beside its upload, and the next backend start queues them again in their original order. A job that was mid-pipeline starts over, with its partial outputs reset. Finishing, failing, cancelling or deleting a job removes its record. Quitting while a batch or another task runs asks first (see electron-runtime.md). Native watch folders detect settled files through a capability-scoped directory handle and stream multipart uploads directly to the selected local or HTTPS remote backend. Remote uploads receive the scoped session from Electron main; the renderer never handles it.

Verification: node electron/tests/batch-smoke.mjs uses mocked jobs to check file selection, enqueue, progress, renderer reload, cancellation, export availability and confirmed deletion. The enqueue unit regression covers partial failure and language/voice fields. The native helper smoke verifies confined streaming, authorization replacement, rename detection and revocation. No test yet establishes real model-backed batch completion or a separate remote-machine transfer.