Removes the text a final just locked from the interim tail.
Streaming ASR revises punctuation between the last partial and the final, so the
overlap is matched word by word. Keeping the unmatched tail is what stops on-screen
words from disappearing and re-appearing when a final lands mid-sentence.
Parameters
interim: string
Interim text currently displayed.
finalText: string
Text just finalized.
Returns string
Interim text still ahead of the final, or an empty string when fully covered.
Removes the text a final just locked from the interim tail.
Streaming ASR revises punctuation between the last partial and the final, so the overlap is matched word by word. Keeping the unmatched tail is what stops on-screen words from disappearing and re-appearing when a final lands mid-sentence.