-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathindex.html
65 lines (51 loc) · 1.35 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>PocketSphinx.js</title>
<style>
body {
text-align: center;
font-family: Arial, Helvetica, sans-serif;
}
button {
background: #e6e6e6;
background: -moz-linear-gradient(top, #e6e6e6 0%, #c8c8c8 100%);
background: -ms-linear-gradient(top, #e6e6e6 0%, #c8c8c8 100%);
background: -o-linear-gradient(top, #e6e6e6 0%, #c8c8c8 100%);
background: -webkit-linear-gradient(top, #e6e6e6 0%, #c8c8c8 100%);
background: linear-gradient(top, #e6e6e6 0%, #c8c8c8 100%);
border-radius: 3px;
border: 1px solid #969696;
color: #323232;
cursor: pointer;
display: inline-block;
font-size: 1em;
font-weight: bold;
margin: .2em;
overflow: hidden;
padding-left: 0.5em;
padding-right: 0.5em;
white-space: nowrap;
}
</style>
</head>
<body>
<h2>PocketSphinx.js Demo</h2>
<p>This demo will recognize English integers from 1 to 10.</p>
<button id="start_button">
Start
</button>
<button id="stop_button">
Stop
</button>
<div id="recording_indicator" style="display: none">
Listening
</div>
<h2>Recognition Output</h2>
<div id="output"></div>
<script src="js/main.js"></script>
<script src="lib/audioRecorder.js"></script>
<script src="lib/callbackManager.js"></script>
</body>
</html>