-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
46 lines (40 loc) · 1.61 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
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Acoustic activity recognition</title>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow/tfjs@1.3.1/dist/tf.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/@tensorflow-models/speech-commands@0.4.0/dist/speech-commands.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/dat-gui/0.5/dat.gui.min.js"></script>
<link rel="stylesheet" href="styles.css" />
</head>
<body>
<section class="intro">
<div class="content">
<h1 id="headerText">Acoustic activity recognition</h1>
<p id="mainText">
This experiment needs access to your microphone. It will then use live
data to predict your activity based on the classes on the left.
</p>
<button id="start">Start</button>
</div>
</section>
<canvas id="canvas"></canvas>
<section class="classes"></section>
<section class="prediction"></section>
<script src="index.js" type="module"></script>
<script src="new-spectrogram.js" type="module"></script>
<div class="dg ac">
<div class="dg main a" style="width: 245px;">
<div
style="width: 6px; margin-left: -3px; height: 0px; cursor: ew-resize; position: absolute;"
></div>
<ul style="height: auto;"></ul>
<div id="closeControls" class="close-button" style="width: 245px;">
Close Controls
</div>
</div>
</div>
</body>
</html>