Files
Dax 8cffd94db7 annotate: count words from transcript text when the model has no word timings (#1918)
* annotate: count words from transcript text when the model has no word timings

A model that requests no timestamps (GigaAM v3) returns its text with an
empty word list, so `transcript.words.len()` read 0: lists and JSON said
"0 words" and the capsule called it "no speech". `transcribe::word_count`
counts the model's own word times, or the words in the text when it has
none, and every capture count goes through it (finished captures, the
iPhone and screen paths, replay, and `hex capture list|show`).

* annotate: spread untimed words over the clip for the editor

A model that gives no word times (GigaAM v3) left a capture's words empty,
so a recording or annotation opened from the Captures pane read "Nothing
was said" and its Send used the placeholder text. The words path now
spreads the text over the clip with estimated times, as `hex` does out of
process, and the pane spreads a bundle already on disk the same way.
`word_count` still counts those bundles when they are listed.

* annotate: spread each untimed piece over its own audio

A model with no word times (GigaAM v3) had a multi-minute capture's whole
text spread over the entire clip, so words landed minutes away from where
they were said. Each `audio.wav` piece now spreads its own untimed text
over its own 30 s, on the same offset base as measured words, and the
estimate reaches `transcript()` so it never spreads the text again; a clip
held in memory still spreads over the whole of it.

Also fix the Captures pane's wording: an annotation's times stay on the
capture's clock, not the movie's.
2026-11-16 16:15:24 -05:00
..
2026-11-12 09:14:48 -05:00
2026-11-12 09:14:48 -05:00