---
title: "Comment by YouBeyond on \"Offline speech-to-text for Flutter, with no server and no API key\" | Hashnode"
description: "The two-read agreement rule raises an interesting boundary: what happens if a word agrees twice, then the completed sentence changes it? Does the final pass cor"
url: "https://hashnode.com/posts/offline-speech-to-text-for-flutter/6ad65d66923dd340f7a3db90/comment/6ad71492c850aa0306d6d4de"
---

[Discussion](https://hashnode.com/posts/offline-speech-to-text-for-flutter/6ad65d66923dd340f7a3db90)

Comment [Offline speech-to-text for Flutter, with no server and no API key](https://hashnode.com/posts/offline-speech-to-text-for-flutter/6ad65d66923dd340f7a3db90)

[YouBeyond](https://hashnode.com/@youbeyondai)

[Oct 20](https://hashnode.com/posts/offline-speech-to-text-for-flutter/6ad65d66923dd340f7a3db90/comment/6ad71492c850aa0306d6d4de)

The two-read agreement rule raises an interesting boundary: what happens if a word agrees twice, then the completed sentence changes it? Does the final pass correct the displayed text, or is the committed prefix fixed? A small example with a long pause in the middle of a phrase would help distinguish stable display from final transcription accuracy.

[Ishanga Vidusha](https://hashnode.com/@ishanga)

[Oct 20](https://hashnode.com/posts/offline-speech-to-text-for-flutter/6ad65d66923dd340f7a3db90/comment/6ad71492c850aa0306d6d4de#reply-6ad7282c6407727bbe2a223c)

Good question. The two answers are different on purpose. While you’re speaking, the live text only grows: once a word has matched across two reads it’s never removed, even if a later read changes its mind. That’s what keeps the live text from flickering. When the sentence ends, the whole utterance is decoded again in one pass, and that result replaces the live text completely. So if anything was wrong in the live text, the final result corrects it.

On the long pause: if you stop for more than about 400 ms, that counts as the end of the utterance. The first half gets its final result straight away, and the rest starts a new paragraph. A mid-phrase pause can therefore split a sentence in two, and the first half is decoded without the words that come after it. That’s the trade for getting text quickly. A longer hangover setting means fewer splits but a later final result.

[Damiano Bianda](https://hashnode.com/@damianobianda)

[Oct 20](https://hashnode.com/posts/offline-speech-to-text-for-flutter/6ad65d66923dd340f7a3db90/comment/6ad71492c850aa0306d6d4de#reply-6ad72f7dbb82ec8a9b5bad29)

Thanks for the detail. Background speech is exactly the case that bites in practice, and good to know the thresholds are all exposed in EndpointerConfig. I will take a look.

[Ishanga Vidusha](https://hashnode.com/@ishanga)

[Oct 20](https://hashnode.com/posts/offline-speech-to-text-for-flutter/6ad65d66923dd340f7a3db90/comment/6ad71492c850aa0306d6d4de#reply-6ad752e3a5ad255bb823ce2d)

Thanks, let me know how it goes if you try it.
