Files
VoiceStudio/docs/electron-workflows.md
T
debpalash 8872882038 UI audit fixes: workspaces
- Audiobook: script column grows without shrinking, notes stay in flow; uncast
  characters get one calm note; samples and placeholders use [pause 0.5s] and
  keep markup literal in every locale
- Stories/Audiobook: interrupted-render cards per page, deduped, dismissable,
  with a reason on a disabled Resume
- Dubbing: find/replace, stage checkpoint and readiness share one slim strip;
  segment list keeps a minimum height; segment and glossary plurals; the page
  title always leads the header; saving a dub moves from Projects to Dubbing
- Clone sidebar: one selected voice (the current workspace's), full-row target
- One not-ready notice and one Set up action everywhere; Transcribe drops ASR jargon
- Projects: All projects lists projects only, library lists grouped, no duplicate type tag
- Command palette: aliases, Integrations/Pro/Models/theme/Calls items, deduped recent takes with age and length
- Shell: one rail layout on every page, /pro header clears the account corner,
  the rail no longer runs under the bottom player, unknown routes show Page not found
- Workflows at /workflows (framed on open), Calls at /calls
- Gallery: sections in the header, Community search and dedupe, Open in Design
- Disabled primary buttons explain why (Add to Queue, Translate All, Parse/Fit/Probe, Compare, Save as voice profile, Generate)
2026-10-27 03:10:58 +05:30

65 lines
4.0 KiB
Markdown

# Electron Workflows
Workflows run one saved pipeline over many inputs. The canvas lives at `#/workflows`; the
**Calls** view it hands call drafts to lives at `#/calls`, with a button back to the canvas. A workflow is a canvas of
steps joined by connections; the list it runs over comes from the input step —
either scripts (one per `---` separator, or imported files) or uploaded audio
clips. Up to 50 items per run, each script at most 20,000 characters and each
clip at most 64 MiB. Drafts, the workflow library, duplication and deletion live
in browser storage; generated audio and uploaded media are held separately and
released when the last workflow referencing them is removed.
The left list holds your saved workflows; **New** starts a blank one and **New
from template** opens a picker grouped into Narration, Audio and Calls. The
workflow name is edited in place in the header, next to a **Saved** indicator
and the Run, Duplicate and Delete actions. Steps are added from the toolbar on
the canvas edge: click a step to add it (wired after the selected step when that
step has a free output) or drag it onto the canvas. The toolbar is reachable
with Tab and moves with the arrow keys. Selecting a step — by click, or Enter on
a focused step — opens its settings on the right. A step missing a required
setting (scripts, audio clips, a voice, languages or a condition phrase) shows
**Needs setup**, and Run stays unavailable, with the reason beside it, until
every step is set.
The executable steps are the input (**Start** or **Audio**), **Speak**,
**Convert**, **Transcribe**, **Translate**, **Normalize**, **Condition** and
**End**. **Agent** and **Call** remain local drafts: they can be placed on the
canvas, but a workflow containing one does not run. Steps are contract-checked
before anything executes — text reaches translation or speech, audio reaches
transcription or conversion, and generated speech reaches normalization — so an
incompatible draft is refused up front rather than part-way through a run.
A **Condition** routes each item down one of two branches. It compares the text
reaching it against the phrase you enter, using Contains, Is exactly, Starts
with or Ends with; capitals and surrounding blanks are ignored on both sides, so
a draft takes the same branch on every machine. The `yes` branch runs on a
match, the `no` branch otherwise. Both handles must be connected, only a
condition may fork, and a condition placed where audio rather than text arrives
is rejected. Branches may rejoin, but the paths meeting at a shared step must
carry the same kind of value — one branch speaking while the other passes text
straight through is refused, because the shared step would receive a different
kind of value depending on the item.
Each item walks the graph on its own, so a single run legitimately sends one
clip down the `yes` branch and the next down `no`, using a different voice for
each. Conditions are re-evaluated rather than recorded: the text they test is
itself checkpointed, so resuming an interrupted run re-reads the same value and
takes the same branch.
Execution is serial, which avoids competing model loads, and every completed
step is a durable checkpoint. Stopping a run keeps the work already finished;
starting again resumes from the last checkpoint instead of regenerating it, and
a failed item stops the run for explicit retry rather than being skipped. Saved
progress is tied to the executable settings — voices, languages, speeds,
normalization targets, condition phrases and the connections themselves — so
moving a branch invalidates a finished run, while moving a node on the canvas or
renaming a step does not.
Finished items expose their own playback and an explicit save; text output is
saved as `.txt` and audio as `.wav` through the native save dialog. Nothing is
downloaded automatically.
A branch that goes directly from a Condition to End keeps the incoming text as
its exportable result. Conditions have one phrase editor; the generic Instructions
field is hidden for those steps.