mirror of
https://github.com/anomalyco/hex.git
synced 2026-11-22 03:08:04 +08:00
* 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.