Skip to main content

SpeechRecognitionResultList

The SpeechRecognitionResultList interface of the Web Speech API represents a list of SpeechRecognitionResult objects, or a single one if results are being captured in non-continuous mode. Available only in secure contexts.

MDN Reference

Indexable

[index: number]: SpeechRecognitionResult

Methods

[iterator]()

iterator: ArrayIterator<SpeechRecognitionResult>;

Returns

ArrayIterator<SpeechRecognitionResult>


item()

item(index): SpeechRecognitionResult;

The item getter of the SpeechRecognitionResultList interface is a standard getter — it allows SpeechRecognitionResult objects in the list to be accessed via array syntax.

MDN Reference

Parameters

ParameterType
indexnumber

Returns

SpeechRecognitionResult

Properties

length

readonly length: number;

The length read-only property of the SpeechRecognitionResultList interface returns the length of the "array" — the number of SpeechRecognitionResult objects in the list.

MDN Reference