SpeechTranscript

data class SpeechTranscript(val finalizedUtterances: List<RecognizedUtterance> = emptyList(), val volatileText: String = "")

Everything recognized so far in one recognition run.

finalizedUtterances won't change again. volatileText is the recognizer's current guess at speech it hasn't finalized yet, and is replaced by each update, so show it as a preview.

Constructors

Link copied to clipboard
constructor(finalizedUtterances: List<RecognizedUtterance> = emptyList(), volatileText: String = "")

Properties

Link copied to clipboard

The finalized text, without the volatile preview.

Link copied to clipboard

Utterances the recognizer has finalized, in order.

Link copied to clipboard

Whether nothing is pending finalization.

Link copied to clipboard

The finalized text followed by the volatile preview, parts trimmed and joined by single spaces.

Link copied to clipboard

The recognizer's current guess at not-yet-final speech; empty when nothing is pending.

Link copied to clipboard

Every finalized word, in order.