W3cubDocs

/Haxe JavaScript

SpeechRecognitionResult

package js.html

@:native("SpeechRecognitionResult") Available on js

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

Documentation SpeechRecognitionResult by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See:

Variables

read only isFinal:Bool

A Boolean 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.

read only length:Int

Returns the length of the "array" — the number of SpeechRecognitionAlternative objects contained in the result (also referred to as "n-best alternatives".)

Methods

item (index:Int):SpeechRecognitionAlternative

© 2005–2018 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/SpeechRecognitionResult.html