W3cubDocs

/Dart 2

SpeechRecognition class

Inheritance
Annotations
  • @SupportedBrowser(SupportedBrowser.CHROME, '25')
  • @Native("SpeechRecognition")

Constructors

SpeechRecognition()
factory

Properties

audioTrackMediaStreamTrack
read / write
continuousbool
read / write
grammarsSpeechGrammarList
read / write
interimResultsbool
read / write
langString
read / write
maxAlternativesint
read / write
onAudioEndStream<Event>
read-only
Stream of audioend events handled by this SpeechRecognition.
onAudioStartStream<Event>
read-only
Stream of audiostart events handled by this SpeechRecognition.
onEndStream<Event>
read-only
Stream of end events handled by this SpeechRecognition.
onErrorStream<SpeechRecognitionError>
read-only
Stream of error events handled by this SpeechRecognition.
onNoMatchStream<SpeechRecognitionEvent>
read-only
Stream of nomatch events handled by this SpeechRecognition.
onResultStream<SpeechRecognitionEvent>
read-only
Stream of result events handled by this SpeechRecognition.
onSoundEndStream<Event>
read-only
Stream of soundend events handled by this SpeechRecognition.
onSoundStartStream<Event>
read-only
Stream of soundstart events handled by this SpeechRecognition.
onSpeechEndStream<Event>
read-only
Stream of speechend events handled by this SpeechRecognition.
onSpeechStartStream<Event>
read-only
Stream of speechstart events handled by this SpeechRecognition.
onStartStream<Event>
read-only
Stream of start events handled by this SpeechRecognition.
hashCodeint
read-only, inherited
The hash code for this object. [...]
onEvents
read-only, inherited
This is an ease-of-use accessor for event streams which should only be used when an explicit accessor is not available.
runtimeTypeType
read-only, inherited
A representation of the runtime type of the object.

Methods

abort() → void
start() → void
stop() → void
addEventListener(String type, EventListener listener, [ bool useCapture ]) → void
inherited
dispatchEvent(Event event) → bool
inherited
noSuchMethod(Invocation invocation) → dynamic
inherited
Invoked when a non-existent method or property is accessed. [...]
removeEventListener(String type, EventListener listener, [ bool useCapture ]) → void
inherited
toString() → String
inherited
Returns a string representation of this object.

Operators

operator ==(dynamic other) → bool
inherited
The equality operator. [...]

Static Properties

supportedbool
read-only
Checks if this type is supported on the current platform.

Constants

audioEndEvent → const EventStreamProvider<Event>
Static factory designed to expose audioend events to event handlers that are not necessarily instances of SpeechRecognition. [...]
const EventStreamProvider<Event>('audioend')
audioStartEvent → const EventStreamProvider<Event>
Static factory designed to expose audiostart events to event handlers that are not necessarily instances of SpeechRecognition. [...]
const EventStreamProvider<Event>('audiostart')
endEvent → const EventStreamProvider<Event>
Static factory designed to expose end events to event handlers that are not necessarily instances of SpeechRecognition. [...]
const EventStreamProvider<Event>('end')
errorEvent → const EventStreamProvider<SpeechRecognitionError>
Static factory designed to expose error events to event handlers that are not necessarily instances of SpeechRecognition. [...]
const EventStreamProvider<SpeechRecognitionError>('error')
noMatchEvent → const EventStreamProvider<SpeechRecognitionEvent>
Static factory designed to expose nomatch events to event handlers that are not necessarily instances of SpeechRecognition. [...]
const EventStreamProvider<SpeechRecognitionEvent>('nomatch')
resultEvent → const EventStreamProvider<SpeechRecognitionEvent>
Static factory designed to expose result events to event handlers that are not necessarily instances of SpeechRecognition. [...]
const EventStreamProvider<SpeechRecognitionEvent>('result')
soundEndEvent → const EventStreamProvider<Event>
Static factory designed to expose soundend events to event handlers that are not necessarily instances of SpeechRecognition. [...]
const EventStreamProvider<Event>('soundend')
soundStartEvent → const EventStreamProvider<Event>
Static factory designed to expose soundstart events to event handlers that are not necessarily instances of SpeechRecognition. [...]
const EventStreamProvider<Event>('soundstart')
speechEndEvent → const EventStreamProvider<Event>
Static factory designed to expose speechend events to event handlers that are not necessarily instances of SpeechRecognition. [...]
const EventStreamProvider<Event>('speechend')
speechStartEvent → const EventStreamProvider<Event>
Static factory designed to expose speechstart events to event handlers that are not necessarily instances of SpeechRecognition. [...]
const EventStreamProvider<Event>('speechstart')
startEvent → const EventStreamProvider<Event>
Static factory designed to expose start events to event handlers that are not necessarily instances of SpeechRecognition. [...]
const EventStreamProvider<Event>('start')

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-html/SpeechRecognition-class.html