SpeechGrammarList class

Experimental: This is an experimental technologyCheck the Browser compatibility table carefully before using this in production. The interface of the Web Speech API represents a list of SpeechGrammar objects containing words or patterns of words that we want the recognition service to recognize. Grammar is defined using JSpeech Grammar Format (JSGF.) Other formats may also be supported in the future.

Available extensions
Annotations
  • @experimental
  • @JS()
  • @staticInterop

Constructors

SpeechGrammarList()
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
length int

Available on SpeechGrammarList, provided by the PropsSpeechGrammarList extension

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

Methods

addFromString(String string, [double? weight = 1.0]) → void

Available on SpeechGrammarList, provided by the PropsSpeechGrammarList extension

addFromURI(String src, [double? weight = 1.0]) → void

Available on SpeechGrammarList, provided by the PropsSpeechGrammarList extension

item(int index) SpeechGrammar

Available on SpeechGrammarList, provided by the PropsSpeechGrammarList extension

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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