-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
237 lines (219 loc) · 14.4 KB
/
index.html
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
<!--
created by:Jean Louis
intial word prediction:Stanley Celestin
date:7/2018
this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED,
INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A
PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE
-->
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="styles.css">
<title></title>
</head>
<body>
<h4>After pressing START press 'z' to make selections</h4>
<hr>
<div >
<div id="chat-window" class="ex3">
<h5>Messages:</h5>
</div>
</div>
<div class="TTS">
<h6 id="msg">Speech Synth</h6>
<div class="option">
<label for="voice">Voice</label>
<select name="voice" id="voice"></select>
</div>
<div class="option">
<label for="volume">Voice Volume</label>
<input type="range" min="0" max="1" step="0.1" name="volume" id="volume" value="1">
</div>
<div class="option">
<label for="rate">Voice Speed</label>
<input type="range" min="0.1" max="10" step="0.1" name="rate" id="rate" value="1">
</div>
<div class="option">
<label for="pitch">Voice Pitch</label>
<input type="range" min="0" max="2" step="0.1" name="pitch" id="pitch" value="1">
</div>
<div class="option">
<label for="Hrate">Highlight Rate</label>
<input type="range" min=".05" max="2.5" step="0.1" name="pitch" id="Hrate" value="1">
</div>
</div>
<div class="Sentence">
<label>Sentence:</label>
<h3 id="output"></h3>
</div>
<section>
<div class="btn-group-vertical ml-4 mt-4" role="group" aria-label="Basic example" id="keybPad0">
<div class="btn-group suggestion" name="suggestion">
<button type="button" class="btn btn-outline-secondary rounded-0" id="output0">🍔</button>
<button type="button" class="btn btn-outline-secondary" id="output1">😂</button>
<button type="button" class="btn btn-outline-secondary" id="output2">😊</button>
<button type="button" class="btn btn-outline-secondary rounded-0" id="output3">😞</button>
<button type="button" class="btn btn-outline-secondary" id="output4">😮</button>
</div>
<br>
<div class="btn-group" name="options">
<button type="button" class="button btn-outline-secondary border-bottom-0 rounded-0">Letters</button>
<button type="button" class="button btn-outline-secondary border-bottom-0 rounded-0">Numbers</button>
<button type="button" class="button btn-outline-secondary border-bottom-0 rounded-0">Emoji</button>
</div>
<div class="btn-group" name="chars">
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">A</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">E</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">I</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">O</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">U</button>
</div>
<div class="btn-group" name="chars">
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">B</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">C</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">D</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">F</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">G</button>
</div>
<div class="btn-group" name="chars">
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">H</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">J</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">K</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">L</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">M</button>
</div>
<div class="btn-group" name="chars">
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">N</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">P</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">Q</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">R</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">S</button>
</div>
<div class="btn-group" name="chars">
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">T</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">V</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">W</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">X</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">Y</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">Z</button>
</div>
<div class="btn-group" name="functions">
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">ENTER</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">[Space]</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">Backspace</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">ALT</button>
</div>
</div>
<div class="btn-group-vertical ml-4 mt-4" role="group" aria-label="Basic example" id="keybPad1" style="display: none;">
<div class="btn-group suggestion" name="suggestion">
<button type="button" class="btn btn-outline-secondary rounded-0">🍔</button>
<button type="button" class="btn btn-outline-secondary">😂</button>
<button type="button" class="btn btn-outline-secondary">😊</button>
<button type="button" class="btn btn-outline-secondary rounded-0">😞</button>
<button type="button" class="btn btn-outline-secondary">😮</button>
</div>
<br>
<div class="btn-group" name="options">
<button type="button" class="button btn-outline-secondary border-bottom-0 rounded-0">Letters</button>
<button type="button" class="button btn-outline-secondary border-bottom-0 rounded-0">Numbers</button>
<button type="button" class="button btn-outline-secondary border-bottom-0 rounded-0">Emoji</button>
</div>
<div class="btn-group" id="row2" name="chars">
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">0</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">1</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">2</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">3</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">4</button>
</div>
<div class="btn-group" id="row2" name="chars">
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">5</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">6</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">7</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">8</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">9</button>
</div>
<div class="btn-group" name="functions">
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">ENTER</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">[Space]</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">Backspace</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">ALT</button>
</div>
</div>
<div class="btn-group-vertical ml-4 mt-4" role="group" aria-label="Basic example" id="keybPad2" name="optionBtn" style="display: none">
<div class="btn-group suggestion" name="suggestion">
<button type="button" class="btn btn-outline-secondary rounded-0">🍔</button>
<button type="button" class="btn btn-outline-secondary">😂</button>
<button type="button" class="btn btn-outline-secondary">😊</button>
<button type="button" class="btn btn-outline-secondary rounded-0">😞</button>
<button type="button" class="btn btn-outline-secondary">😮</button>
</div>
<br>
<div class="btn-group" name="options">
<button type="button" class="button btn-outline-secondary border-bottom-0 rounded-0">Letters</button>
<button type="button" class="button btn-outline-secondary border-bottom-0 rounded-0">Numbers</button>
<button type="button" class="button btn-outline-secondary border-bottom-0 rounded-0">Emoji</button>
</div>
<div class="btn-group" id="row2"name="chars">
<button type="button" class="btn btn-outline-secondary rounded-0">😂</button>
<button type="button" class="btn btn-outline-secondary">😊</button>
<button type="button" class="btn btn-outline-secondary">😞</button>
<button type="button" class="btn btn-outline-secondary rounded-0">🤷</button>
<button type="button" class="btn btn-outline-secondary">😠</button>
</div>
<!--var emojis = ['😂','😊','😞','😮','🤷','😠','🖕','👎','👍','✊🏿','🥣','🥤','🛀','🚽','💤','💲','📰','📺','📻','🌡','⏳',💀,👀];-->
<div class="btn-group" id="row2" name="chars">
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">👍</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">👎</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">🥤</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">👀</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">🥣</button>
</div>
<div class="btn-group" id="row2" name="chars">
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">❤️</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">😍</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">🔥</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">🤔</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">🇭🇹</button>
</div>
<div class="btn-group" id="row2" name="chars">
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">🤢</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">🥣</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">🛀</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">💤</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">💲</button>
</div>
<div class="btn-group" id="row2" name="chars">
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">🌡</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">⏳</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">📺</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">📰</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">🚽</button>
</div>
<div class="btn-group" name="functions">
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">ENTER</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">[Space]</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">Backspace</button>
<button type="button" class="btn btn-outline-secondary border-bottom-0 rounded-0">ALT</button>
</div>
</div>
</section>
<br>
<button class ="button" onclick="myFunction()">Start</button>
<!-- for manul testing
button class ="button" onclick="myStopFunction()">Stop Row</button>
<button class ="button" onclick="myStopInnerFunction()">Enter</button>
<br>
<br-->
<button class ="button" onclick="myGlobalStop()">stop all</button>
<script src="js/Keyboard.js"></script>
<script src="js/Dictionary.js"></script>
<script src="js/TTS.js"></script>
<script src="js/Predict.js"></script>
</body>
</html>