File size: 570 Bytes
9241b02
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<!DOCTYPE html>
<html>
<head>
    <title>Read It Aloud</title>
    <script type="text/javascript">
        function readAloud() {
            const text = document.getElementById("textArea").value;
            const speech = new SpeechSynthesisUtterance(text);
            window.speechSynthesis.speak(speech);
        }
    </script>
</head>
<body>
    <h1>πŸ”Š Read It Aloud</h1>
    <textarea id="textArea" rows="4" cols="50">Type the text you want to be read aloud here.</textarea>
    <br>
    <button onclick="readAloud()">πŸ”Š Read Aloud</button>
</body>
</html>