W3cubDocs

/Haxe JavaScript

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:

Constructor

new ()

Throws:

null DOMError

Variables

read only length:Int

Returns the number of SpeechGrammar objects contained in the SpeechGrammarList.

Methods

addFromString (string:String, ?weight:Float):Void

Throws:

null DOMError

addFromURI (src:String, ?weight:Float):Void

Throws:

null DOMError

item (index:Int):SpeechGrammar

Throws:

null DOMError

© 2005–2016 Haxe Foundation
Licensed under a MIT license.
http://api.haxe.org/js/html/SpeechGrammarList.html