forked from MidCamp/live-captioning
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
62 lines (58 loc) · 2.8 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
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<title>Live Captioning</title>
<meta name="description" content="HTML5 Live Captioning using Google's Web Speech API via Chrome browser.">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="apple-touch-icon" href="icon.png">
<link href='https://fonts.googleapis.com/css?family=Ubuntu:400,700' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/live-captioning.css">
</head>
<body>
<section id="lc-intro">
<details id="lc-instructions">
<summary>How To Use</summary>
<ol>
<li>Open this page in Chrome desktop browser (version 25+).</li>
<li>Click button "Click to Caption" to begin captioning.</li>
<li>Allow use of microphone.</li>
<li>Begin talking. May need to pause occasionaly.</li>
<li>Click text on screen to stop captioning.</li>
</ol>
</details>
<div id="lc">
<span id="lc-button" ><button class="lc-button" onclick="toggleSpeechRecognition(event)"><abbr title="Live Captioning">LC</abbr> Click to Caption</button></span>
<span id="lc-text" style="display: none;" onclick="toggleSpeechRecognition(event)" tabindex="0">Begin speaking. Click to stop.</span>
<div id="lc-refresh">
<button class="lc-btn" onclick="refresh(event)">Reconnect</button>
</div>
</div>
<div id="lc-rec">
<div id="new-recording">
<button class="lc-btn lc-btn-wide" onclick="newSession(event)">Start new session recording</button>
</div>
</div>
</section>
<section id="lc-sessions">
<label for="session-select">Choose a Session</label><select id="session-select"></select>
<div id="session-continue"><button class="lc-btn lc-btn-wide" onclick="continueSession(event)">Continue selected session</button></div>
<div id="session-view"><button class="lc-btn lc-btn-wide" onclick="viewSession()">View selected session transcript</button></div>
<div id="lc-transcript">
<div><textarea></textarea><div>
<div id="lc-session-types">
<span id="session-view"><button class="lc-btn" onclick="viewSession('srt')">SRT</button></span>
<span id="session-view"><button class="lc-btn" onclick="viewSession('webVTT')">WebVTT</button></span>
<span id="session-view"><button class="lc-btn" onclick="viewSession('text')">Text</button></span>
</div>
</div>
</section>
<footer>
<a href="https://opencollective.com/live-captioning-initiative">Donate to the Live Captioning Initiative on Open Collective</a>
</footer>
<script src="js/jquery.min.js"></script>
<script src="js/live-captioning.js"></script>
</body>
</html>