-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
77 lines (67 loc) · 2.61 KB
/
index.html
File metadata and controls
77 lines (67 loc) · 2.61 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Speech to Text Converter</title>
<link rel="stylesheet" href="styles.css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css"
integrity="sha512-DTOQO9RWCH3ppGqcWaEA1BIZOC6xxalwEsw9c2QQeAIftl+Vegovlnee1c9QX4TctnWMn13TZye+giMm8e2LwA=="
crossorigin="anonymous" referrerpolicy="no-referrer" />
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
href="https://fonts.googleapis.com/css2?family=Charm:wght@400;700&family=Lilita+One&family=Merienda:wght@300..900&display=swap"
rel="stylesheet">
</head>
<body>
<div class="container">
<header>
<div class="language-choice">
<label for="lang-select">Select Language: </label>
<select id="lang-select" onchange="changeLanguage()">
<option value="en-US">English (US)</option>
<option value="en-GB">English (UK)</option>
<option value="fr-FR">Français (FR)</option>
<option value="es-ES">Español (ES)</option>
<option value="de-DE">Deutsch (DE)</option>
<option value="sw-KE">Swahili (KE)</option>
<option value="ar-SA">Arabic (SA)</option>
<option value="zh-CN">Chinese (CN)</option>
</select>
</div>
<div class="help-text">
<p id="status-text">Click the mic to start speaking</p>
<p id="active-lang-label">Current Language: English (US)</p>
<br>
</div>
</header>
<hr>
<div class="transcript" id="result" contenteditable="true"></div>
<div class="count">
<p id="word-count">0 words</p>
<p id="char-count">0 characters</p>
<p id="read-time">Estimated Reading Time: 0 min</p>
</div>
<br>
<div class="button-container">
<button onclick="copyText()" title="Copy to Clipboard">
<i class="fa fa-copy"></i>
</button>
<button onclick="downloadText()" title="Download Transcript">
<i class="fa fa-download"></i>
</button>
<button onclick="startConverting()" title="Start Recording" class="record-btn">
<i class="fa fa-microphone"></i>
</button>
<button onclick="stopConverting()" title="Stop Recording">
<i class="fa fa-stop"></i>
</button>
<button onclick="clearTranscript()" title="Clear Text">
<i class="fa fa-trash"></i>
</button>
</div>
</div>
<script src="scripts.js"></script>
</body>
</html>