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.
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.
Parameters
| Parameter | Type |
|---|---|
index | number |
Returns
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.