Skip to content

Voice-over: a moved line takes its audio and captions along - #11

Merged
tinygusie2 merged 1 commit into
mainfrom
vo-follows-line
Sep 28, 2026
Merged

tinygusie2 merged 1 commit into
mainfrom
vo-follows-line

Conversation

@tinygusie2

@tinygusie2 tinygusie2 commented Sep 28, 2026 •

Copy link
Copy Markdown
Owner

What does this change?

Moving a voice-over line on the timeline didn't move its audio: a generated voice-over is one mixed file, so the words kept playing at the old time. Each line now remembers its spot in that file (at), and the voice plays per line from there, at the line's current time. This works in both the preview and the render, without generating the voice again. Captions that start within a line move along with it (drag, multi-drag, ,/. nudge, the Start field).

Voice-overs made before this have no at yet. They keep playing as one track, and the line inspector asks to click Make voice-over once. That is quick, since spoken lines come from the cache.

How did you check it?

  • npm run check, npm test (31, new: voiceSegments, template output) and npm run test:ui (12, new: VO line drag + nudge with split captions)
  • Tried it in the editor: dragged a line, both halves of its split caption followed, the preview's audio moved
  • Rendered a video: a test voice with tones at 0.5 s and 3.0 s, lines moved to 2.0 s and 4.2 s → the MP4 is silent until 2.0, sound 2.0–3.0 and 4.2–5.2 (ffmpeg silencedetect)

A generated voice-over is one file with every line mixed in at the time it had.
Moving a line afterwards only moved its block: the words still played at the old
spot. Each line now keeps its spot in the file (`at`), and the template plays
the voice per line from there, at the line's current time (voiceSegments), in
the preview and the render. Changing a line's text drops `at` until the voice is
made again; voice-overs made before this show a hint to make them once more
(spoken lines come from the cache).

Captions that start within a voice-over line move with it: dragging, dragging
with several selected, nudging, and the Start field.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@tinygusie2
tinygusie2 merged commit 766a10a into main Sep 28, 2026
2 checks passed
@tinygusie2
tinygusie2 deleted the vo-follows-line branch September 28, 2026 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant