This repository was archived by the owner on Apr 18, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 42
/
Copy pathindex.html
executable file
·366 lines (356 loc) · 17.1 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
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
<!DOCTYPE html>
<html lang='en'>
<head>
<meta charset='utf-8'>
<title>Web Neural Network API - Examples - Speech Recognition</title>
<meta content='width=device-width, initial-scale=1.0' name='viewport'>
<meta
content='Speech Recognition, WebML, Web Machine Learning, Machine Learning for Web, Neural Networks, WebNN, WebNN API, Web Neural Network API'
name='keywords'>
<meta
content='Speech Recognition, WebML, Web Machine Learning, Machine Learning for Web, Neural Networks, WebNN, WebNN API, Web Neural Network API'
name='description'>
<link rel="apple-touch-icon" sizes="180x180" href="../static/img/favicon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="../static/img/favicon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="../static/img/favicon/favicon-16x16.png">
<link rel="manifest" href="../static/img/favicon/site.webmanifest">
<link href='../static/lib/bootstrap/css/bootstrap.min.css' rel='stylesheet'>
<link href='../static/css/style.css' rel='stylesheet'>
</head>
<body id='speechrecognition'>
<header id='header'>
<div class='container'>
<div id='logo' class='pull-left'>
<a href='../index.html' id='logo'>
<svg preserveAspectRatio='xMidYMid meet'
viewBox='-1.2596205660195778 -1.002390572390567 185.26504164633673 39.987210231814544' width='181.27'
height='35.99'>
<defs>
<text id='a1Hhj0hzGw' x='548' y='158.46' font-size='18' font-weight='200' font-style='normal'
letter-spacing='0' alignment-baseline='before-edge'
transform='matrix(1 0 0 1 -286.8825161889153 -158.45741702741705)' style='line-height:100%'
xml:space='preserve' dominant-baseline='text-before-edge'>
<tspan x='548' dy='0em' alignment-baseline='before-edge' dominant-baseline='text-before-edge'
text-anchor='end'>Neural Network</tspan>
<tspan x='538' dy='1em' alignment-baseline='before-edge' dominant-baseline='text-before-edge'
text-anchor='end'>For Web</tspan>
</text>
</defs>
<g>
<g id='b1RcgdDiGU'>
<use xlink:href='#a1Hhj0hzGw' opacity='1' fill='#ffffff' fill-opacity='1'></use>
</g>
</g>
</svg>
</a>
</div>
<nav id='nav-container'>
<ul class='nav-menu'>
<li class='menu-has-children'>
<a href='../'>Examples</a>
<ul>
<li><a href='../image_classification/'>Image Classification</a></li>
<li><a href='../object_detection/'>Person/Object Detection</a></li>
<li><a href='../semantic_segmentation/'>Semantic Segmentation</a></li>
<li><a href='../skeleton_detection/'>Skeleton Detection</a></li>
<li><a href='../face_recognition/'>Face Recognition</a></li>
<li><a href='../facial_landmark_detection/'>Facial Landmark Detection</a></li>
<li><a href='../style_transfer/'>Style Transfer</a></li>
<li><a href='../super_resolution/'>Super Resolution</a></li>
<li><a href='../emotion_analysis/'>Emotion Analysis</a></li>
<li><a href='../speech_commands/'>Speech Commands</a></li>
<li><a href='../speech_recognition/'>Speech Recognition</a></li>
</ul>
</li>
<li><a href='../model.html'>Models</a></li>
</ul>
</nav>
</div>
</header>
<form id='query' action='' method='get' class='container'>
<div class='filter mb-3 mt-2'>
<table id='filter' class='t-filter table table-condensed'>
<tbody>
<tr class='backend'>
<th class='text-center backendtitle'>Backend</th>
<td>
<div class='custom-control custom-switch'>
<input type='checkbox' class='custom-control-input' id='backendswitch'>
<label class='custom-control-label' for='backendswitch'>Dual</label>
</div>
<div class='g b-polyfill'>
<span id='backendpolyfilltitle'>Polyfill</span>
<input type='radio' name='bp' class='d-none' id='WASM' value='WASM'>
<label id='l-WASM' for='WASM'>WASM</label>
<input type='radio' name='bp' class='d-none' id='WebGL' value='WebGL'>
<label id='l-WebGL' for='WebGL'>WebGL</label>
</div>
<div class='g b-webnn'>
<span id='backendwebnntitle'>WebNN</span>
<input type='radio' name='bw' class='d-none' id='fast' value='fast'>
<label id='l-fast' for='fast' class='lml'>FAST_SINGLE_ANSWER</label>
<input type='radio' name='bw' class='d-none' id='sustained' value='sustained'>
<label id='l-sustained' for='sustained' class='lml'>SUSTAINED_SPEED</label>
<input type='radio' name='bw' class='d-none' id='low' value='low'>
<label id='l-low' for='low' class='lml'>LOW_POWER</label>
<input type='radio' name='bw' class='d-none' id='ultra_low' value='ultra_low'>
<label id='l-ultra_low' for='ultra_low' class='lml'>ULTRA_LOW_POWER</label>
</div>
</td>
</tr>
<tr class='offload' style='display:none'>
<th class='text-center'>Note</th>
<td>
<div id='offloadops'>
Dual backends selected, following ops were offloaded to <span id='nnbackend'
class='ols'></span> from <span id='polyfillbackend' class='ols'></span>:
</div>
</td>
</tr>
<tr class="openvinojsbackend", style="display:none;">
<th class='text-center'>Backend</th>
<td>
<input type='radio' name='openvinojsbackend' class='d-none' id='openvinojscpu' value='CPU'>
<label id='l-openvinojscpu' for='openvinojscpu' class='checked'>CPU</label>
<input type='radio' name='openvinojsbackend' class='d-none' id='openvinojsgpu' value='GPU'>
<label id='l-openvinojsgpu' for='openvinojsgpu'>GPU</label>
</td>
</tr>
</tbody>
</table>
</div>
</form>
<section class='ic' id='ic'>
<div class='container' id='container'>
<a id='extra' href='#' class='mb-1 mt-3'>
<h3 class='text-center ex' id='ictitle'>
Speech Recognition
</h3>
<span class='fa chevron-up'>
<svg aria-hidden='true' data-prefix='fas' data-icon='chevron-up' class='svg-inline--fa fa-chevron-up fa-w-14'
viewBox='0 0 448 512'>
<path fill='currentColor'
d='M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z'>
</path>
</svg>
</span>
<span class='fa chevron-down' style='display:none;'>
<svg aria-hidden='true' data-prefix='fas' data-icon='chevron-down'
class='svg-inline--fa fa-chevron-down fa-w-14' viewBox='0 0 448 512'>
<path fill='currentColor'
d='M207.029 381.476L12.686 187.132c-9.373-9.373-9.373-24.569 0-33.941l22.667-22.667c9.357-9.357 24.522-9.375 33.901-.04L224 284.505l154.745-154.021c9.379-9.335 24.544-9.317 33.901.04l22.667 22.667c9.373 9.373 9.373 24.569 0 33.941L240.971 381.476c-9.373 9.372-24.569 9.372-33.942 0z'>
</path>
</svg>
</span>
</a>
<ul class='nav nav-pills'>
<li id='img' class='active'>
<a href='#image' data-toggle='tab'>Audio</a>
</li>
<!-- <li id='cam'>
<a href='#camera' data-toggle='tab'>Live Microphone</a>
</li> -->
</ul>
<div id='progressContainer'>
<div class='mb-2'>
<div class='progress'>
<div class='progress-bar' role='progressbar' style='width: 0%;' aria-valuenow='0' aria-valuemin='0'
aria-valuemax='100' id='progressBar'></div>
</div>
</div>
</div>
<div class='tab-content clearfix' style='display: none;' id='progressmodel'>
<div class='loading-page'>
<div class='counter'>
<div class='loading'>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
<div></div>
</div>
<h1>0%</h1>
<p id='progressstep'>Loading model ...</p>
</div>
</div>
</div>
<div class='tab-content clearfix' style='display: none;' id='resulterror'>
<div class='c'>
<div class='errortitle'>Prediction Failed</div>
<div class='errordescription'>Please check error log for more details</div>
</div>
</div>
<div class='tab-content clearfix row'>
<div class='tab-pane text-center active col-sm' id='imagetab'>
<div class='icdisplay' style='display: none;'>
<div id='inferenceCycles' style="text-transform: capitalize; width: 100%;"></div>
<div style="text-transform: capitalize; margin-bottom: 10px; width: 100%;">inference text:</div>
<div id='inferenceText' style="color: rgba(25, 190, 225, 1.0); width: 100%;"></div>
<div class='col-lg-12 col-xs-12 text-center'>
<div class='row mt-3'>
<div class='col'>
<div class='box'>
<input type='file' name='f[]' id='input' accept='*' class='inputfile inputf' />
<label for='input'>
<svg width='20' height='17' viewBox='0 0 20 17'>
<path d='M10 0l-5.2 4.9h3.3v5.1h3.8v-5.1h3.3l-5.2-4.9zm9.3 11.5l-3.2-2.1h-2l3.4 2.6h-3.5c-.1 0-.2.1-.2.1l-.8 2.3h-6l-.8-2.2c-.1-.1-.1-.2-.2-.2h-3.6l3.4-2.6h-2l-3.2 2.1c-.4.3-.7 1-.6 1.5l.6 3.1c.1.5.7.9 1.2.9h16.3c.6 0 1.1-.4 1.3-.9l.6-3.1c.1-.5-.2-1.2-.7-1.5z' />
</svg>
<span>Select Ark File</span>
</label>
</div>
</div>
</div>
</div>
</div>
</div>
<div id='inference' class='shoulddisplay col-sm' style='display: none;'>
<div class='row text-center tc' id='inferencetitle'>
<div id='inferenceTime'></div>
<div id='averageTime' style="text-transform: capitalize; width: 100%;"></div>
</div>
<div class='row text-center' id='inferenceresult'>
<table class='table table-sm'>
<thead>
<tr>
<th scope='col'>#</th>
<th scope='col'>error</th>
<th scope='col'>result</th>
</tr>
</thead>
<tbody>
<tr>
<th scope='row'>1</th>
<td id='type0'>max</td>
<td id='result0'></td>
</tr>
<tr>
<th scope='row'>2</th>
<td id='type1'>avg</td>
<td id='result1'></td>
</tr>
<tr>
<th scope='row'>3</th>
<td id='type2'>avg rms</td>
<td id='result2'></td>
</tr>
<tr>
<th scope='row'>4</th>
<td id='type3'>stdDev</td>
<td id='result3'></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</section>
<footer>
<div class='container'>
<div class='row'>
<div class='col-lg-12 col-xs-12 text-lg-center text-center'>
<div id='trademark' class='mb-4'></div>
<div class='webmlbadge mb-4'>
<div class='webml-title'>WebNN API</div>
<div id='webmlstatus'></div>
</div>
<div class='webmlbadge mb-4'>
<div class='webml-title'>W3C Spec</div>
<div class='webml-status-true'>
<a href='https://webmachinelearning.github.io/webnn/#usecases'
title='W3C Web Neural Network API Use Cases'>Use Cases</a>
</div>
</div>
<p>©2019 <a href='../index.html'>WebNN API</a></p>
</div>
</div>
</div>
</footer>
<div id='overlay'></div>
<a href='https://github.com/intel/webml-polyfill/' class='github-corner' aria-label='View source on GitHub'>
<svg width='70' height='70' viewBox='0 0 250 250'
style='fill:rgba(255, 255, 255, 0.1); color:rgba(255, 255, 255, 0.9); position: absolute; top: 0; border: 0; left: 0; transform: scale(-1, 1);'
aria-hidden='true'>
<path d='M0,0 L115,115 L130,115 L142,142 L250,250 L250,0 Z'></path>
<path d='M128.3,109.0 C113.8,99.7 119.0,89.6 119.0,89.6 C122.0,82.7 120.5,78.6 120.5,78.6 C119.2,72.0 123.4,76.3 123.4,76.3 C127.3,80.9 125.5,87.3 125.5,87.3 C122.9,97.6 130.6,101.9 134.4,103.2'
fill='currentColor' style='transform-origin: 130px 106px;' class='octo-arm'></path>
<path d='M115.0,115.0 C114.9,115.1 118.7,116.5 119.8,115.4 L133.7,101.6 C136.9,99.2 139.9,98.4 142.2,98.6 C133.8,88.0 127.5,74.4 143.8,58.0 C148.5,53.4 154.0,51.2 159.7,51.0 C160.3,49.4 163.2,43.6 171.4,40.1 C171.4,40.1 176.1,42.5 178.8,56.2 C183.1,58.6 187.2,61.8 190.9,65.4 C194.5,69.0 197.7,73.2 200.1,77.6 C213.8,80.2 216.3,84.9 216.3,84.9 C212.7,93.1 206.9,96.0 205.4,96.6 C205.1,102.4 203.0,107.8 198.3,112.5 C181.9,128.9 168.3,122.5 157.7,114.1 C157.9,116.9 156.7,120.9 152.7,124.9 L141.0,136.5 C139.8,137.7 141.6,141.9 141.8,141.8 Z'
fill='currentColor' class='octo-body'></path>
</svg>
</a>
<a class='scrolltop' href='#'>
<svg aria-hidden='true' data-prefix='fas' data-icon='chevron-up' class='svg-inline--fa fa-chevron-up fa-w-14'
viewBox='0 0 448 512'>
<path fill='currentColor'
d='M240.971 130.524l194.343 194.343c9.373 9.373 9.373 24.569 0 33.941l-22.667 22.667c-9.357 9.357-24.522 9.375-33.901.04L224 227.495 69.255 381.516c-9.379 9.335-24.544 9.317-33.901-.04l-22.667-22.667c-9.373-9.373-9.373-24.569 0-33.941L207.03 130.525c9.372-9.373 24.568-9.373 33.941-.001z'>
</path>
</svg>
</a>
<div class='modal fade' id='subgraphModal' tabindex='-1' role='dialog' aria-labelledby='subgraphModalTitle'
aria-hidden='true'>
<div class='modal-dialog' role='document'>
<div class='modal-content'>
<div class='modal-header'>
<h5 class='modal-title' id='modaltitle'>Subgraphs Summary</h5>
</div>
<div class='modal-body'>
<div id='timeline'>
<ul class='timeline' id='subgraph'></ul>
</div>
</div>
<div class='modal-footer'>
<button type='button' class='modal-btn' data-dismiss='modal'>Close</button>
</div>
</div>
</div>
</div>
<script>
try {
window.nodeRequire = require;
delete window.exports;
delete window.module;
} catch(e) {
console.log("Node module is not supported");
}
</script>
<script src='../static/lib/jquery/jquery.min.js'></script>
<script src='../static/lib/jquery/jquery-migrate-3.0.1.min.js'></script>
<script src='../static/lib/superfish/superfish.min.js'></script>
<script src='../static/lib/bootstrap/js/bootstrap.bundle.min.js'></script>
<script src='../static/lib/easing/easing.js'></script>
<script src='../static/lib/stickyjs/sticky.js'></script>
<script src='../static/lib/greensock/tweenmax.js'></script>
<script src='../static/lib/stats.customized.min.js'></script>
<script src='../static/lib/protobuf.min.js'></script>
<script src='../static/js/ui.common.js'></script>
<script src='../../dist/webml-polyfill.js'></script>
<script src='../util/base.js'></script>
<script src='../util/modelZoo.js'></script>
<script src='../util/BaseRunner.js'></script>
<script src='../util/WebNNRunner.js'></script>
<script src='../util/OpenVINORunner.js'></script>
<script src='../util/BaseApp.js'></script>
<script src='../util/BaseExample.js'></script>
<script src='../util/BaseMircophoneExample.js'></script>
<script src='../util/onnx/onnx.js'></script>
<script src='../util/openvino/openvino.js'></script>
<script src='../util/openvino/OpenVINOModelUtils.js'></script>
<script src='../util/openvino/OpenVINOModelImporter.js'></script>
<script src='SpeechRecognitionRunner.js'></script>
<script src='SpeechRecognitionOpenVINORunner.js'></script>
<script src='SpeechRecognitionExample.js'></script>
<script src='main.js'></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-147662084-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'UA-147662084-1');
</script>
</body>
</html>