SpeechRecognition class

The interface of the Web Speech API is the controller interface for the recognition service; this also handles the SpeechRecognitionEvent sent from the recognition service.

Note: On some browsers, like Chrome, using Speech Recognition on a web page involves a server-based recognition engine. Your audio is sent to a web service for recognition processing, so it won't work offline.

EventTarget

SpeechRecognition

Implemented types
Available extensions
Annotations
  • @JS()
  • @staticInterop

Constructors

SpeechRecognition()
factory

Properties

continuous bool

Available on SpeechRecognition, provided by the PropsSpeechRecognition extension

getter/setter pair
grammars SpeechGrammarList

Available on SpeechRecognition, provided by the PropsSpeechRecognition extension

getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
interimResults bool

Available on SpeechRecognition, provided by the PropsSpeechRecognition extension

getter/setter pair
lang String

Available on SpeechRecognition, provided by the PropsSpeechRecognition extension

getter/setter pair
maxAlternatives int

Available on SpeechRecognition, provided by the PropsSpeechRecognition extension

getter/setter pair
onaudioend EventHandlerNonNull<Event>?

Available on SpeechRecognition, provided by the PropsSpeechRecognition extension

getter/setter pair
onaudiostart EventHandlerNonNull<Event>?

Available on SpeechRecognition, provided by the PropsSpeechRecognition extension

getter/setter pair
onend EventHandlerNonNull<Event>?

Available on SpeechRecognition, provided by the PropsSpeechRecognition extension

getter/setter pair
onerror EventHandlerNonNull<Event>?

Available on SpeechRecognition, provided by the PropsSpeechRecognition extension

getter/setter pair
onnomatch EventHandlerNonNull<Event>?

Available on SpeechRecognition, provided by the PropsSpeechRecognition extension

getter/setter pair
onresult EventHandlerNonNull<Event>?

Available on SpeechRecognition, provided by the PropsSpeechRecognition extension

getter/setter pair
onsoundend EventHandlerNonNull<Event>?

Available on SpeechRecognition, provided by the PropsSpeechRecognition extension

getter/setter pair
onsoundstart EventHandlerNonNull<Event>?

Available on SpeechRecognition, provided by the PropsSpeechRecognition extension

getter/setter pair
onspeechend EventHandlerNonNull<Event>?

Available on SpeechRecognition, provided by the PropsSpeechRecognition extension

getter/setter pair
onspeechstart EventHandlerNonNull<Event>?

Available on SpeechRecognition, provided by the PropsSpeechRecognition extension

getter/setter pair
onstart EventHandlerNonNull<Event>?

Available on SpeechRecognition, provided by the PropsSpeechRecognition extension

getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

abort() → void

Available on SpeechRecognition, provided by the PropsSpeechRecognition extension

addEventListener(String type, EventListener? callback, [dynamic options]) → void

Available on EventTarget, provided by the PropsEventTarget extension

dispatchEvent(Event event) bool

Available on EventTarget, provided by the PropsEventTarget extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeEventListener(String type, EventListener? callback, [dynamic options]) → void

Available on EventTarget, provided by the PropsEventTarget extension

start() → void

Available on SpeechRecognition, provided by the PropsSpeechRecognition extension

stop() → void

Available on SpeechRecognition, provided by the PropsSpeechRecognition extension

toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited