W3cubDocs

/Haxe JavaScript

SpeechGrammar

package js.html

Available on js

The SpeechGrammar interface of the Web Speech API represents a set of words or patterns of words that we want the recognition service to recognize.

Documentation SpeechGrammar by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See also:

Constructor

new()

Throws:

null

DOMError

Variables

src:String

Sets and returns a string containing the grammar from within in the SpeechGrammar object instance.

weight:Float

Sets and returns the weight of the SpeechGrammar object.

© 2005–2020 Haxe Foundation
Licensed under a MIT license.
https://api.haxe.org/js/html/SpeechGrammar.html