Skip to content

Conversation

@backportbot
Copy link

@backportbot backportbot bot commented Sep 4, 2025

Backport of PR #15783

Signed-off-by: Daniel Calviño Sánchez <[email protected]>
Signed-off-by: Daniel Calviño Sánchez <[email protected]>
Originally the live_transcription app sent the transcripts once they
were definitive, so each transcript could take several seconds to be
received until the app was "confident" enough and settled on a text. Now
it will send transcripts as soon as possible instead, and a "final"
attribute is now included in the signaling message to mark whether a
transcript is "frozen" or should be replaced with the next transcript.

For backwards compatibility any transcript message without an explicit
"final" attribute is seen as final.

Signed-off-by: Daniel Calviño Sánchez <[email protected]>
Now that the last chunk can be replaced with a different one it is
necessary to remove the cached line information for the last known chunk
and generate it again, rather than updating the cache from the chunk
after the last known one.

Signed-off-by: Daniel Calviño Sánchez <[email protected]>
Now that the last chunk can be replaced with a different one it could
happen that the new one is shorter than the previous one and the total
number of lines is reduced. To prevent all the lines from moving down
if the last one(s) are removed the "min-height" property now guarantees
that the transcript block will not reduce its height even if the number
of lines is reduced by forcing it to the largest known height of the
element.

Nevertheless, the "min-height" property is reset when the whole
transcript is resized, as in that case the text is expected to be
adjusted to the new size and therefore the number of lines is expected
to change.

Signed-off-by: Daniel Calviño Sánchez <[email protected]>
@Antreesy Antreesy merged commit 59d3cb0 into stable32 Sep 4, 2025
55 checks passed
@Antreesy Antreesy deleted the backport/15783/stable32 branch September 4, 2025 12:31
Copy link
Member

@danxuliu danxuliu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am late to the party, and there was no reason not to, but just in case... tested and works 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants