SpeechRecognitionResult

The SpeechRecognitionResult interface of the Web Speech API represents a single recognition match, which may contain multiple SpeechRecognitionAlternative objects. Available only in secure contexts.

MDN Reference

Properties

Link copied to clipboard

The isFinal read-only property of the whether this result is final (true) or not (false) — if so, then this is the final time this result will be returned; if not, then this result is an interim result, and may be updated later on.

Link copied to clipboard
open override val length: Int

The length read-only property of the — the number of SpeechRecognitionAlternative objects contained in the result (also referred to as 'n-best alternatives'.) The number of alternatives contained in the result depends on what the recognition was first initiated.

Functions

Link copied to clipboard
open operator fun get(index: Int): SpeechRecognitionAlternative
Link copied to clipboard

The item getter of the array syntax.