-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
70 lines (52 loc) · 1.55 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Simple Recorder.js demo with record, stop and pause</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="static/style.css">
</head>
<body>
<h1> 孤立词语音识别系统</h1>
<style>
canvas {
margin-top: 10px;
display: inline-block;
background: #ffffff;
width: 150%;
height: 45%;
box-shadow: 0px 0px 10px blue;
}
#viz {
height: 80%;
width: 100%;
display: flex;
flex-direction: column;
justify-content: space-around;
align-items: center;
}
@media (orientation: landscape) {
body {
flex-direction: row;
}
#viz {
height: 100%;
width: 100%;
}
}
</style>
<div id="viz" width="1024">
<canvas id="analyser" width="1024" height="500"></canvas>
</div>
<div id="controls">
<button id="recordButton">Record</button>
<button id="stopButton" disabled>Stop</button>
</div>
<div id="result">识别结果:</div>
<ol id="recordingsList"></ol>
<!-- inserting these scripts at the end to be able to use all the elements in the DOM -->
<script src="/static/recorderjs/recorder.js"></script>
<script src="/static/app.js"></script>
<script src="/static/waveview.js"></script>
</body>
</html>