-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
213 lines (189 loc) · 5.56 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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>Intelloid STT(Speech-To-Text) stream web example</title>
<meta name="referrer" content="no-referrer-when-downgrade" />
<link href="data:image/gif;" rel="icon" type="image/x-icon" />
<!-- wavesurfer.js -->
<script src="https://unpkg.com/[email protected]/dist/wavesurfer.js"></script>
<!-- microphone plugin -->
<script src="wavesurfer.microphone.js"></script>
<!-- App -->
<script src="app.js" defer></script>
<style>
body {
background: linear-gradient(
135deg,
rgba(245, 246, 252, 0.7),
rgba(175, 200, 255, 0.7)
);
font-family: "Orbitron", sans-serif;
color: #333333;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
overflow: hidden;
}
@import url("https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&display=swap");
.container {
width: 60%;
background: rgba(255, 255, 255, 0.5);
border: 1px solid rgba(200, 200, 255, 0.5);
padding: 30px;
border-radius: 15px;
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
backdrop-filter: blur(10px);
text-align: center;
box-sizing: border-box; /* 패딩과 경계를 요소의 크기에 포함 */
}
.header h1 {
font-size: 36px;
font-weight: 800;
letter-spacing: 2px;
margin-bottom: 30px;
background: linear-gradient(
90deg,
rgba(255, 168, 255, 1),
rgba(168, 208, 255, 1),
rgba(255, 250, 205, 1)
);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
}
#waveform {
background-color: rgba(255, 255, 255, 0.3);
border-radius: 10px;
padding: 15px;
margin-bottom: 20px;
border: 1px solid rgba(200, 200, 255, 0.5);
}
#sttresult {
width: 90%;
height: 200px;
padding: 15px;
background-color: rgba(255, 255, 255, 0.5);
border: 1px solid rgba(200, 200, 255, 0.5);
border-radius: 10px;
color: #0056b3;
font-size: 16px;
font-family: "Courier New", Courier, monospace;
resize: none;
overflow-y: auto;
box-shadow: inset 0 1px 10px rgba(0, 0, 255, 0.1);
}
#sttresult::placeholder {
color: #888;
}
#llmresult {
width: 90%;
height: 200px;
padding: 15px;
background-color: rgba(255, 255, 255, 0.5);
border: 1px solid rgba(200, 200, 255, 0.5);
border-radius: 10px;
color: #ff1493;
font-size: 16px;
font-family: "Courier New", Courier, monospace;
resize: none;
margin-top: 20px;
overflow-y: auto;
box-shadow: inset 0 1px 10px rgba(255, 20, 147, 0.2);
}
#llmresult::placeholder {
color: #888;
}
.controls button {
background: linear-gradient(
90deg,
rgba(0, 182, 255, 0.7),
rgba(72, 219, 251, 0.7)
);
border: none;
color: #fff;
padding: 12px 25px;
font-size: 18px;
font-family: "Orbitron", sans-serif;
text-transform: uppercase;
letter-spacing: 2px;
border-radius: 50px;
box-shadow: 0 8px 15px rgba(0, 123, 255, 0.3);
cursor: pointer;
transition: all 0.3s ease;
}
.controls button:hover {
background: linear-gradient(
90deg,
rgba(0, 255, 182, 0.7),
rgba(72, 251, 219, 0.7)
);
box-shadow: 0 8px 15px rgba(0, 123, 255, 0.4);
}
.github-fork-ribbon-wrapper {
top: 0;
}
.github-fork-ribbon {
background-color: rgba(255, 192, 203, 0.7);
color: white;
padding: 10px;
font-size: 14px;
font-weight: bold;
text-transform: uppercase;
}
.github-fork-ribbon a {
color: white;
text-decoration: none;
}
.github-fork-ribbon a:hover {
text-decoration: underline;
}
button:active {
box-shadow: 0 0 10px rgba(72, 219, 251, 0.6),
0 0 20px rgba(0, 182, 255, 0.4);
}
textarea:hover,
#waveform:hover {
box-shadow: 0 0 20px rgba(200, 200, 255, 0.3);
}
</style>
</head>
<body itemscope itemtype="http://schema.org/WebApplication">
<div class="container">
<div class="header">
<h1 itemprop="name">Intelloid STT(Speech-To-Text) Stream</h1>
</div>
<div id="demo">
<div id="waveform" style="display: none"></div>
<textarea
id="sttresult"
placeholder="Your transcription will appear here..."
></textarea>
<div class="controls">
<button id="micBtn" class="btn" data-action="start">
Microphone:
<i class="glyphicon glyphicon-play"></i>
Start /
<i class="glyphicon glyphicon-stop"></i>
Stop
</button>
</div>
<textarea
id="llmresult"
placeholder="LLM analysis result will appear here..."
></textarea>
</div>
</div>
<!--
<div class="github-fork-ribbon-wrapper right">
<div class="github-fork-ribbon">
<a
itemprop="isBasedOnUrl"
href="https://github.com/intelloid/stt-stream-web"
>Fork me on GitHub</a
>
</div>
</div> -->
</body>
</html>