awacke1 commited on
Commit
9241b02
Β·
1 Parent(s): 0199f05

Create index.htm

Browse files
Files changed (1) hide show
  1. index.htm +19 -0
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>