-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
158 lines (135 loc) · 4.84 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Talkback JS Project</title>
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.99.0/css/materialize.min.css">
<link rel="stylesheet" href="./style.css">
</head>
<body>
<div class="container">
<nav class="nav-extended">
<div class="nav-wrapper cyan">
<a href="#" class="brand-logo"> <i class="material-icons">record_voice_over</i> Talkback</a>
</div>
<div class="nav-content cyan lighten-1">
<ul class="tabs tabs-transparent">
<li class="tab"><a class="active" href="#speak">Speak</a></li>
<li class="tab"><a href="#test2">Demo 2</a></li>
<li class="tab"><a href="#test3">Demo 3</a></li>
<li class="tab disabled"><a href="#test4">Disabled</a></li>
</ul>
</div>
</nav>
<div id="speak" class="container">
<br/>
<form>
<div class="row">
<div class="col s12">
<label>Choose voice</label>
<select id="voices"></select>
</div>
</div>
<div class="row">
<div class="col s6">
<label>Rate</label>
<p class="range-field">
<input type="range" id="rate" min="1" max="100" value="10" />
</p>
</div>
<div class="col s6">
<label>Pitch</label>
<p class="range-field">
<input type="range" id="pitch" min="0" max="2" value="1" />
</p>
</div>
<div class="col s12">
<p>N.B. Rate and Pitch only work with native voice.</p>
</div>
</div>
<div class="row">
<div class="input-field col s12">
<textarea id="recognitionResult" class="materialize-textarea"></textarea>
<label>Speak something</label>
</div>
</div>
<div class="row">
<div class="col s2 offset-s10">
<a id="toggleBtn" class="btn-large btn-floating cyan">
<i class="material-icons">keyboard_voice</i>
</a>
</div>
</div>
</form>
</div>
<div id="test2" class="container">
<br>
<div class="row">
<div class="chip">
<img src="http://laren2j.github.io/includes/img/profile-img.jpg" alt="Contact Person">
Jane Doe
</div>
<div class="chip">
Tag
<i class="close material-icons">close</i>
</div>
</div>
</div>
<div id="test3" class="container">
<br>
<div class="row">
<ul class="collection">
<li class="collection-item avatar">
<img src="http://laren2j.github.io/includes/img/profile-img.jpg" alt="" class="circle">
<span class="title">Title</span>
<p>First Line <br>
Second Line
</p>
<a href="#!" class="secondary-content"><i class="material-icons">grade</i></a>
</li>
<li class="collection-item avatar">
<i class="material-icons circle">folder</i>
<span class="title">Title</span>
<p>First Line <br>
Second Line
</p>
<a href="#!" class="secondary-content"><i class="material-icons">grade</i></a>
</li>
<li class="collection-item avatar">
<i class="material-icons circle green">insert_chart</i>
<span class="title">Title</span>
<p>First Line <br>
Second Line
</p>
<a href="#!" class="secondary-content"><i class="material-icons">grade</i></a>
</li>
<li class="collection-item avatar">
<i class="material-icons circle red">play_arrow</i>
<span class="title">Title</span>
<p>First Line <br>
Second Line
</p>
<a href="#!" class="secondary-content"><i class="material-icons">grade</i></a>
</li>
</ul>
</div>
</div>
<div id="test4" class="container">
<div class="row">Test 4</div>
</div>
<footer class="page-footer cyan lighten-1">
<div class="footer-copyright cyan">
<div class="container">
© 2014 Copyright Text
<a class="grey-text text-lighten-4 right" target="_blank" href="http://laren2j.github.io/">Lionel A. Dsouza</a>
</div>
</div>
</footer>
</div>
</body>
<script src="http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.99.0/js/materialize.min.js"></script>
<script src="./speak.js"></script>
</script>
</html>