The SpeechGrammarList 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.
Documentation SpeechGrammarList by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See also:
Constructor
Variables
Methods
addFromString(string:String, ?weight:Float):Void
Takes a grammar present in a specific DOMString within the code base (e.g. stored in a variable) and adds it to the SpeechGrammarList as a new SpeechGrammar object.
Throws:
null | DOMError |
|---|
addFromURI(src:String, ?weight:Float):Void
Takes a grammar present at a specific URI and adds it to the SpeechGrammarList as a new SpeechGrammar object.
Throws:
null | DOMError |
|---|
item(index:Int):SpeechGrammar
Standard getter — allows individual SpeechGrammar objects to be retrieved from the SpeechGrammarList using array syntax.
Throws:
null | DOMError |
|---|