Spaces:
Sleeping
Sleeping
Create index.htm
Browse files
index.htm
ADDED
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<!DOCTYPE html>
|
2 |
+
<html>
|
3 |
+
<head>
|
4 |
+
<title>Read It Aloud</title>
|
5 |
+
<script type="text/javascript">
|
6 |
+
function readAloud() {
|
7 |
+
const text = document.getElementById("textArea").value;
|
8 |
+
const speech = new SpeechSynthesisUtterance(text);
|
9 |
+
window.speechSynthesis.speak(speech);
|
10 |
+
}
|
11 |
+
</script>
|
12 |
+
</head>
|
13 |
+
<body>
|
14 |
+
<h1>π Read It Aloud</h1>
|
15 |
+
<textarea id="textArea" rows="4" cols="50">Type the text you want to be read aloud here.</textarea>
|
16 |
+
<br>
|
17 |
+
<button onclick="readAloud()">π Read Aloud</button>
|
18 |
+
</body>
|
19 |
+
</html>
|