mirror of
https://github.com/debpalash/VoiceStudio.git
synced 2026-12-04 09:28:22 +00:00
* feat(stories): screenplay-style script editor with timecodes and icon controls
- Lines show an estimated start time and the speaker in a gutter, named only
when the speaker changes; characters get a colour bar, the narrator stays
neutral.
- Voice and speed chips appear under a line only when it overrides them;
defaults live in the hover toolbar.
- Auto-cast no longer invents speakers from one-off "Phrase: text" labels or
from pronouns ("she said" goes to the last named speaker), and its panel
folds away after a successful cast.
- Script and speed controls use icons with tooltips instead of text buttons
and help paragraphs; Cover and Loudness match the other setup sections.
* changelog: add fragment for #4605
* feat(stories): timeline dock with speaker tracks and a following playhead
- A dock pinned under the script holds the last render's play bar and one
track per speaker, each line a clip. Clicking a clip selects its line and
moves the playhead there; the ruler and lanes seek on click; zoom with the
buttons or +/-.
- Clip positions and the gutter timecodes come from the render's real chapter
durations (or its total length) once there is one, and from the word-rate
estimate before; the dock says when positions are estimates.
- The script highlights the line being played.
- The runtime under the script matches the timeline, including per-line
speeds.
* test(longform): check the script instructions behind their info button
* changelog: add fragment for #4606
* fix(stories): stop casting determiners and offer to fold old pronoun speakers
- "said our host" / "her mother replied" name the noun, not the determiner,
so auto-cast no longer creates speakers like "Our".
- Stories auto-cast before the pronoun fix kept members such as "She", "He"
and "I". The script now names them and offers one click to remove them and
give their lines to the last named speaker (first person to the narrator),
keeping each line's own voice override.
* fix(stories): make the timeline readable on long stories
- Lay the tracks out in pixels with the ruler pinned to the top and speaker
names pinned to the left, so both stay in view while scrolling.
- Clips too narrow to read show only their colour instead of a cut-off "L…";
the full line stays in the tooltip and accessible name.
- Ruler labels keep about 90 px apart at any zoom; zoom goes up to 32x and the
view follows the playhead.
- The track area can be resized from a handle (mouse or arrow keys); the
height is remembered and the area never pads past its tracks.
* perf(stories): keep long scripts fast and add a line inspector
- A keystroke re-rendered and re-measured every line: about 2 s per key in a
400-line story. Rows are now memoised (their handlers read the current
draft through a ref, so a skipped render can't write stale lines) and
off-screen rows skip layout with content-visibility. Typing drops to
~35 ms of script work per key; first load halves.
- A right-hand inspector shows the selected line's timing, speaker, voice and
speed, editable in place, or a per-speaker line/runtime summary.
- The Stories editor uses the full window width instead of max-w-6xl.
- The "older saved result" notice becomes a one-line row with its detail
in an info tooltip, instead of a large card in the sidebar footer.
* fix(stories): address review findings on the screenplay editor
- A pronoun after a screenplay label ("BOB: Hi." then "he said") now refers
to that speaker instead of an earlier prose one.
- Consecutive legacy lines stored with no speaker read as one speaker.
- Folding pronoun cast members also reassigns chapter markers that named
them, without a chapter counting as the last named speaker.
- The speed popup stays open while a line's first speed is set; the chip
moves under the text only after the popup closes.
- Disabled icon actions stay focusable so their tooltip still names them.
- The book speed explanation is a keyboard-reachable info button.
* fix(stories): address review findings on the timeline
- A render's timing maps only onto the script it was made from: renders now
save a timing key of the lines, and after edits the timeline falls back to
estimates and stops linking clips and highlights to the audio.
- [pause] markers count as silence, so pause-only lines and chapters keep
their place on the timeline.
- A failed chapter takes no time; a partial render without per-chapter
durations is not spread over the whole script.
- The time grid runs left to right in right-to-left languages, so the
playhead lines up with clips and ruler.
- Resize drags use pointer capture and end on cancel, lost capture or unmount.
- The inspector keeps an explicit unassigned speaker choice.
- A failed saved-audio check is shown, not only announced.
- Off-screen rows skip layout per column, so the hover toolbar isn't clipped.
* feat(stories): clip waveforms, playback keys and changed-line markers
- Clips show the render's waveform. A new GET /audio-peaks/{name} decodes a
saved output with ffmpeg at 1 kHz mono and returns its loudness outline,
cached per file version, so a long render costs the browser nothing.
- Editing-suite keys on the Stories page: Space play/pause, J back 5 s,
K pause, L play (again for faster), Home/End. Ignored in fields and with
modifiers; listed in an info button.
- Renders save a fingerprint per line, so lines edited, re-cast, re-timed or
added since the render get a marker, and the timeline counts them.
- The line toolbar shows on hover or when focus enters it, not while typing,
and sits inside the row. Rows skip layout off-screen again (column-level
skipping laid out every toolbar: 224 ms vs 111 ms per key in 400 lines).
* feat(stories): pick any gallery voice from the Stories voice lists
The cast, line and inspector voice lists only offered saved voices, so a
gallery voice took a trip to the Gallery page. They now share one picker:
a search box over the default, your voices and the whole Voice Gallery.
Your voices filter as you type; the gallery is searched on the backend,
loads 60 at a time as the list scrolls, and long lists mount only the rows
in view. Picking a gallery voice saves it to your voices (reusing an
earlier copy) and assigns the saved voice. Arrow keys and Enter pick.
* feat(stories): rework the paste box into "Add lines from text"
The panel was titled after a button ("Auto-cast"), its placeholder promised
sentence splitting whatever the mode, and both actions hid behind a button,
a scissors icon and two info tips.
- Heading and subtitle say what it does; a collapsed panel shows when text
is waiting.
- While empty it shows the three formats it recognises and an Open file
button; text files can be dropped on the box.
- While typing it previews the speakers found (in their cast colours, or
says everything goes to the narrator) and how many lines each action adds.
The parse runs deferred, so long pastes do not stall typing.
- Auto-cast is the primary action (Ctrl/Cmd+Enter); Split into lines is a
labelled button beside the split mode; a word count and Clear sit in the box.
* fix(stories): keep the speed help reachable while busy; NARRATOR lines never take a pronoun
- The busy state disabled the whole speed fieldset, which also took its help
tip out of the tab order; the slider and reset are disabled one by one now.
- An explicit NARRATOR: line became the referent for a later "she said",
casting that quote to the narrator; mergePronounCast already skipped it.
* fix(stories): address review findings on the timeline, line actions and voice picker
- Reaction-only lines ([laughter], [sigh]) took no time on the timeline, and a
chapter of them dropped out of the chapter count, shifting every later clip.
Estimates now come from the parser's spoken spans, reactions included.
- Changing a line's voice, its speaker's voice or the book voice left lines
unmarked as changed. Render keys (now v2) include each line's resolved voice,
so those lines are marked and the timeline stops mapping the old audio.
- Hovering a line put its action buttons over the first line of text. Rows now
keep an end strip for a ⋯ button; the actions expand from it only on hover or
focus of ⋯ or the actions themselves, or when ⋯ is pressed on touch screens.
- A gallery voice still saving when its picker closed could land later and
rebuild the cast from an old copy, erasing newer edits. Closing the picker
cancels it, and cast voice picks apply to the current cast.
* feat(sidebar): one line per setting in Stories, Audiobook and Batch dubbing
Title, voice, language and format (and Batch's target language, voice and
background switch) each sit on one row: muted icon and label on the left,
the control on the right, as Batch's engine row already did. The voice is a
compact button that opens the searchable voice list with the Voice Gallery;
Batch's presets appear there as their own group. Row labels are spans tied to
their fields, since the sidebar styles every label and legend as a heading.
* fix(stories): do not announce the speed help as unavailable while busy
aria-disabled on the speed group also marked its help button unavailable to
screen readers; the slider and reset carry their own disabled states.
* fix(stories): address timeline, voice picker and waveform review findings
- Time [slow]/[fast] spans at their own speed in line estimates.
- Only a render with a matching timing key maps onto the lines; resumed or
keyless renders keep estimates instead of seeking into edited text.
- Group timeline clips in linear time; ignore transport keys another
control already handled.
- The book voice picker offers no "engine default" row, which Generate
would refuse.
- Voice picker: keep loaded gallery pages when a later page fails, show the
gallery as loading until a new search settles so Enter can't pick a stale
result, and refresh profiles when a cancelled pick may have saved.
- Line actions: the hidden toolbar's box no longer reveals it or catches
clicks on the words.
- Waveform peaks rectify before the 1 kHz resample, so speech above 500 Hz
is no longer drawn as silence.
- Localize the import examples and the clip length; reword the timeline
estimate note; fix the Dutch "last render" wording.
* fix(stories): address the second round of timeline and picker review findings
- /audio-peaks needs the consumer tier: decoding a render is real work.
- The peak scan runs off the event loop.
- Timing keys include the output language, built by one timingContext()
helper shared by the saved key and the live comparison.
- Literal bracketed text ([Appendix]) gets time; only reactions are not words.
- A result recovered only by file name keeps estimated clips.
- With estimated clips the lanes don't seek, the playhead hides and the
clock shows the render's real length.
- Clips are reachable by keyboard (one tab stop, arrows/Home/End) and the
lanes no longer rebuild every waveform on each playback update.
- The waveform cache keeps the last four renders.
- A clip click selects its line even while the text is locked.
- A second pointer lifting no longer ends a resize drag.
- The inspector summary lists unassigned lines when there is no Narrator.
- Speeds use the app language's decimal mark everywhere they are shown.
- The voice picker says when the gallery failed to load, with Retry.
- The page's basics panel and result views move to their own files, so
the page stays under 500 lines.