-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
60 lines (53 loc) · 1.89 KB
/
index.html
File metadata and controls
60 lines (53 loc) · 1.89 KB
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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Text to Speech</title>
<link rel="stylesheet" href="style.css" />
</head>
<body>
<main class="card">
<h1 class="title-animate">Text to Speech</h1>
<!-- Enter Text -->
<label class="label-left" for="textInput">ENTER TEXT</label>
<textarea id="textInput" placeholder="Type your text here..."></textarea>
<!-- Voice (label centered over dropdown only) + Preview aligned -->
<div class="voice-grid">
<div class="voice-col">
<label class="label-center" for="voiceSelect">BROWSER VOICE</label>
<select id="voiceSelect"></select>
</div>
<button id="previewBtn" class="btn-secondary">PREVIEW</button>
</div>
<!-- Speed -->
<div class="row-col">
<label class="label-center" for="speedSelect">SPEED</label>
<select id="speedSelect">
<option value="0.75">0.75x</option>
<option value="1" selected>1x</option>
<option value="1.25">1.25x</option>
<option value="1.5">1.5x</option>
</select>
</div>
<!-- Sliders -->
<div class="sliders">
<div class="slider-col">
<label class="label-center" for="pitchRange">PITCH</label>
<input id="pitchRange" type="range" min="0.5" max="2" step="0.1" value="1" />
</div>
<div class="slider-col">
<label class="label-center" for="volumeRange">VOLUME</label>
<input id="volumeRange" type="range" min="0" max="1" step="0.1" value="1" />
</div>
</div>
<!-- Buttons -->
<div class="button-row">
<button id="speakBtn" class="btn-primary">SPEAK</button>
<button id="pauseBtn" class="btn-secondary">PAUSE</button>
<button id="stopBtn" class="btn-secondary">STOP</button>
</div>
</main>
<script src="index.js"></script>
</body>
</html>