-
Notifications
You must be signed in to change notification settings - Fork 0
/
frontend.html
157 lines (150 loc) · 5.2 KB
/
frontend.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Browser voices</title>
<style type="text/css">
* {
box-sizing: border-box;
}
html,
body {
min-height: 100vh;
margin: 0;
padding: 0;
}
body {
font-family: Helvetica, Arial, sans-serif;
color: #0d122b;
display: flex;
flex-direction: column;
padding-left: 1em;
padding-right: 1em;
}
h1 {
text-align: center;
font-weight: 100;
}
header {
border-bottom: 1px solid #0d122b;
margin-bottom: 2em;
}
main {
flex-grow: 2;
display: flex;
justify-content: space-around;
align-items: center;
background-color: #fff;
border-radius: 12px;
margin-bottom: 2em;
}
@keyframes bg-pulse {
0% {
background-color: #fff;
}
50% {
background-color: #c7ecee;
}
100% {
backgrouond-color: #fff;
}
}
main.speaking {
animation: bg-pulse 1.5s alternate ease-in-out infinite;
}
.input {
text-align: center;
width: 100%;
}
label {
display: block;
font-size: 18px;
margin-bottom: 1em;
}
.field {
margin-bottom: 2em;
}
input {
font-size: 24px;
padding: 0.5em;
border: 1px solid rgba(13, 18, 43, 0.25);
border-radius: 6px;
width: 75%;
display: inline-block;
transition: border-color 0.25s;
text-align: center;
}
input:focus,
select:focus {
border-color: rgba(13, 18, 43, 1);
}
select {
width: 75%;
font-size: 24px;
padding: 0.5em;
border: 1px solid rgba(13, 18, 43, 0.25);
border-radius: 6px;
transition: border-color 0.25s;
}
button {
font-size: 18px;
font-weight: 200;
padding: 1em;
width: 200px;
background: transparent;
border: 4px solid #f2a12f;
border-radius: 4px;
transition: all 0.4s ease 0s;
cursor: pointer;
color: #f2a12f;
margin-bottom: 2em;
}
button:hover,
button:focus {
background: #f2a12f;
color: #fff;
}
a {
color: #0d122b;
}
.error {
color: #f2a12f;
text-align: center;
}
footer {
border-top: 1px solid #0d122b;
text-align: center;
}
</style>
</head>
<body>
<header>
<h1>Text to Speech</h1>
</header>
<main>
<form class="input" id="voice-form" method="post">
<div class="field">
<label for="speech">Type Text</label>
<input type="text" name="speech" id="speech" required />
</div>
<div class="field">
<label for="voices">Choose Source Voice</label>
<select name="voices" id="voices">
<option value="TaeYeon">TaeYeon</option>
<option value="KSS">KSS</option>
</select>
</div>
<button>
Say it!
</button>
</form>
</main>
<footer>
<p>
Built by <a href=https://github.com/SiliconWildCat>Silicon Wild Cat</a>
</p>
</footer>
</body>
</html>