SpeechGrammarList
package js.html
Available on js
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
new()
Throws:
null |
DOMError |
---|
Variables
read onlylength:Int
Returns the number of SpeechGrammar
objects contained in the SpeechGrammarList
.
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 |
---|
© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/SpeechGrammarList.html