-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
144 lines (132 loc) · 6.53 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
<!DOCTYPE html>
<head>
<meta charset="utf-8">
<title>Amazon Transcribe WebSocket API - Sample Application</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css"
integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<!-- <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.css">
<link rel="stylesheet" href="https://cdn.shoelace.style/1.0.0-beta24/shoelace.css">
<link rel="stylesheet" href="styles.css"> -->
</head>
<body>
<div class="container">
<h1>
ILAB Real-time Audio Transcription
</h1>
<p class="small-caps">
Using the <a href="https://aws.amazon.com/transcribe/">Amazon Transcribe</a> WebSocket API
</p>
<!-- <hr />
<p>
Create an <a href="https://aws.amazon.com/free/">AWS Account</a>, attach the necessary <a
href="policy.json"> IAM policy</a>, and enter your Access Id and Secret Key below.
</p> -->
<div id="error" class="isa_error"></div>
<div class="row">
<!-- <div class="col">
<label>Access ID:</label>
<input type="password" id="access_id" placeholder="ACCESS ID" value="" />
<label>Secret Key:</label>
<input type="password" id="secret_key" placeholder="SECRET KEY" value="" />
<label>Session Token (if using MFA):</label>
<input type="password" id="session_token" placeholder="SESSION TOKEN" value="" />
</div> -->
<div class="col">
<label>Language: </label>
<select id="language">
<optgroup label="English">
<option value="en-US">US English (en-US)</option>
<option value="en-AU">Australian English (en-AU)</option>
<option value="en-GB">British English (en-GB)</option>
</optgroup>
<optgroup label="French">
<option value="fr-CA">Canadian French (fr-CA)</option>
<option value="fr-FR">French (fr-FR)</option>
</optgroup>
<optgroup label="Spanish">
<option value="es-US">US Spanish (es-US)</option>
</optgroup>
</select>
<!-- <label>Region:</label>
<select id="region">
<option value="us-east-1">US East (N. Virginia)</option>
<option value="us-east-2">US East (Ohio)</option>
<option value="us-west-2">US West (Oregon)</option>
<option value="ap-southeast-2">Asia Pacific (Sydney)</option>
<option value="ca-central-1">Canada (Central)</option>
<option value="eu-west-1">EU (Ireland)</option>
</select> -->
</div>
</div>
<div class="row">
<div class="col-11"><label for="transcript">Transcript Textarea</label></div>
<div class="col-1">
<div class="btn-group" role="group">
<button type="button" id="edit-button" class="btn btn-primary">Edit</button>
<button type="button" id="save-button" class="btn btn-success">Save</button>
</div>
</div>
</div>
<div id="dangerAlert" style="display: none" class=row>
<div class="col-11">
<div class="alert alert-danger" role="alert">
A simple danger alert—check it out!
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
</div>
</div>
<div class="row">
<div class="col">
<form>
<div class="form-group">
<!-- <label for="transcript">Transcript Textarea</label> -->
<textarea class="form-control" id="transcript" placeholder="Press Start and speak into your mic"
rows="5"></textarea>
</div>
</form>
</div>
</div>
<div class="row">
<div class="col-9">
<button id="start-button" class="btn btn-success" title="Start Transcription">
<i class="fa fa-microphone"></i> Start
</button>
<button id="stop-button" class="btn btn-danger" title="Stop Transcription" disabled="true"><i
class="fa fa-stop-circle"></i> Stop
</button>
<button id="reset-button" class="btn btn-secondary" title="Clear Transcript">
Clear Transcript
</button>
<button id="answer-button" class="btn btn-warning" title="Enter Answer">
Enter Answer
</button>
<button id="download-audio-button" class="btn btn-info" title="Download Audio">
Download Audio
</button>
<button id="download-transcript-button" class="btn btn-dark" title="Download Audio">
Download Transcript
</button>
<button id="test-button" class="btn btn-light" title="Test" data-dismiss="alert">
test
</button>
</div>
<div class="col-3">
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="dist/main.js"></script>
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js"
integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.0/dist/umd/popper.min.js"
integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js"
integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6"
crossorigin="anonymous"></script>
</body>
</html>