-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathNoice-Level.html
More file actions
63 lines (61 loc) · 1.63 KB
/
Noice-Level.html
File metadata and controls
63 lines (61 loc) · 1.63 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Real-Time Noise Detection and Speech Recognition</title>
<style>
#level-meter {
border: 1px solid black;
background-color: lightgray;
width: 100%;
height: 100px;
}
#controls {
margin: 20px 0;
text-align: center;
}
.warning-box {
position: absolute;
padding: 10px;
font-size: 16px;
display: none;
width: 80%;
max-width: 200px;
text-align: center;
border-radius: 5px;
left: 50%;
transform: translateX(-50%);
}
.red {
background-color: red;
color: white;
}
.orange {
background-color: orange;
color: black;
}
.yellow {
background-color: yellow;
color: black;
}
.green {
background-color: green;
color: white;
}
</style>
</head>
<body>
<h1>Real-Time Noise Detection and Speech Recognition</h1>
<div id="controls">
<button id="start-button">Start Listening</button>
<button id="stop-button" disabled>Stop Listening</button>
</div>
<canvas id="level-meter"></canvas>
<div id="warning-box" class="warning-box green">
<span id="warning-text">Good level</span>
</div>
<!-- Connect external JavaScript file -->
<script src="app.js"></script>
</body>
</html>