forked from benetech/BeneSpeak
-
Notifications
You must be signed in to change notification settings - Fork 1
/
benespeak.html
28 lines (27 loc) · 946 Bytes
/
benespeak.html
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
<html>
<head>
<title>Test page</title>
<script type="text/javascript" src="speech.js"></script>
<script type="text/javascript" src="demo.js"></script>
<script type="text/javascript">
var voices = speechSynthesis.getVoices(); // needed to initiate async process to fetch voices
</script>
<style type="text/css">
span.ttshln {
background-color: #99CCFF;
}
</style>
</head>
<body>
<form>
<textarea id="speechInput" rows="20" cols="60">Enter HTML markup to speak here.</textarea>
</form>
<p>
<input type="button" value="Start reading" id="speakButton">
<input type="button" value="Stop reading" id="stopButton">
</p>
<div id="speechDisplay" style="border: 1px solid black; width: 80%;">
Text to speech highlighting demo.
</div>
</body>
</html>