-
Notifications
You must be signed in to change notification settings - Fork 0
/
SpeechGrammar.cljs
66 lines (45 loc) · 1.77 KB
/
SpeechGrammar.cljs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
(ns web.speech.SpeechGrammar
"The SpeechGrammar interface of the Web Speech API represents
set of words or patterns of words that we want the recognition
to recognize."
(:refer-clojure :exclude []))
(def constructor
"Constructor.
The SpeechGrammar constructor of the `web.speech.SpeechGrammar` interface creates a new SpeechGrammar object instance.
None.
See also: `https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammar/SpeechGrammar`"
js/SpeechGrammar)
(defn src
"Property.
The src property of the `web.speech.SpeechGrammar` interface
and returns a string containing the grammar from within in the
object.
`var myGrammar = speechGrammarInstance.src;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammar/src`"
[this]
(-> this (.-src)))
(defn set-src!
"Property.
The src property of the `web.speech.SpeechGrammar` interface
and returns a string containing the grammar from within in the
object.
`var myGrammar = speechGrammarInstance.src;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammar/src`"
[this val]
(aset this "src" val))
(defn weight
"Property.
The optional weight property of the `web.speech.SpeechGrammar`
sets and returns the weight of the SpeechGrammar object.
`var myGrammarWeight = speechGrammarInstance.weight;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammar/weight`"
[this]
(-> this (.-weight)))
(defn set-weight!
"Property.
The optional weight property of the `web.speech.SpeechGrammar`
sets and returns the weight of the SpeechGrammar object.
`var myGrammarWeight = speechGrammarInstance.weight;`
See also: `https://developer.mozilla.org/en-US/docs/Web/API/SpeechGrammar/weight`"
[this val]
(aset this "weight" val))