Files
swax 36d6ce96e7 feat(dub): report the speech and the room on a timing overflow (#4654)
* feat(dub): report the speech and the room on a timing overflow

A dub_timing_overflow error said that a line did not fit, but not by how
much. A client had no number to show, and a script driving the API could
not tell a near miss from a line twice too long.

Every dub_timing_overflow event now carries two lengths in seconds:
speech_s, the line's speech as it was measured, after any fitting the
timing mode had already applied, and room_s, the time it was allowed.
All five places that raise the error build it in one helper, so they
report the same fields: the per-line Concise check after synthesis, the
fixed subtitle window, Smart Fit past its limits, a line with no time to
play in, and the Concise mix of saved takes.

The messages, the error code and the other fields are unchanged.

* docs(changelog): add the overflow lengths entry for #4654

* docs(dub): call the overflow difference a measured excess

The two lengths on a timing overflow say how far the line ran over when it was measured. That is not an exact amount to change it by: Smart Fit accepts speech up to 20 ms longer than its slot, and a changed line is measured again.
2026-12-05 06:35:17 -08:00
..