For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages
are available by appending .md to any URL.
Interface SpeechRecognitionResult
interface SpeechRecognitionResult {
isFinal: boolean;
length: number;
"[iterator]"(): ArrayIterator<SpeechRecognitionAlternative>;
item(index: number): SpeechRecognitionAlternative;
[index: number]: SpeechRecognitionAlternative;
}
isFinal: boolean;
length: number;
"[iterator]"(): ArrayIterator<SpeechRecognitionAlternative>;
item(index: number): SpeechRecognitionAlternative;
[index: number]: SpeechRecognitionAlternative;
}
Indexable
Properties
ReadonlyisFinal
isFinal: boolean
The isFinal read-only property of the SpeechRecognitionResult interface is a boolean value that states 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.
Readonlylength
length: number
The length read-only property of the SpeechRecognitionResult interface returns the length of the "array" — the number of SpeechRecognitionAlternative objects contained in the result (also referred to as "n-best alternatives".)
Methods
[iterator]
item
-
The
itemgetter of the SpeechRecognitionResult interface is a standard getter that allows SpeechRecognitionAlternative objects within the result to be accessed via array syntax.Parameters
- index: number
Returns SpeechRecognitionAlternative
The
SpeechRecognitionResultinterface of the Web Speech API represents a single recognition match, which may contain multiple SpeechRecognitionAlternative objects. Available only in secure contexts.MDN Reference