not really known
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

70 lines
3.1 KiB

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<title>Speak Activity</title>
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, viewport-fit=cover"/>
<link rel="prefetch" type="application/l10n" href="locale.ini" />
<link rel="stylesheet" media="not screen and (device-width: 1200px) and (device-height: 900px)"
href="lib/sugar-web/graphics/css/sugar-96dpi.css">
<link rel="stylesheet" media="screen and (device-width: 1200px) and (device-height: 900px)"
href="lib/sugar-web/graphics/css/sugar-200dpi.css">
<link rel="stylesheet" href="css/activity.css">
<link rel="stylesheet" href="css/inputrange.css">
<script>if (typeof module === 'object') {window.module = module; module = undefined;}</script>
<script src="lib/jquery.min.js"></script>
<script src="mespeak.js"></script>
<script>if (window.module) module = window.module;</script>
</head>
<body>
<div id="main-toolbar" class="toolbar">
<button class="toolbutton" id="activity-button" title="Speak Activity"></button>
<!-- Add more buttons here -->
<button class="toolbutton active" id="gamemode1-button" title="Type something to hear it:"></button>
<button class="toolbutton" disabled id="gamemode2-button" title="Ask robot any questions:"></button>
<button class="toolbutton" disabled id="gamemode3-button" title="Voice chat:"></button>
<button class="toolbutton" id="language-button" title="Language:"></button>
<button class="toolbutton" id="speech-button" title="Speech:"></button>
<button class="toolbutton" id="face-button" title="Face:"></button>
<!-- Buttons with class="pull-right" will be right aligned -->
<button class="toolbutton pull-right" id="stop-button" title="Stop"></button>
</div>
<!-- The content of your activity goes inside the canvas -->
<div id="userArea">
<div id="chat" style="height:30vw;width:95vw;padding:10px;">
<ul id="chatbox">
</ul>
</div>
<!-- Created select tag so user can access history of talk -->
<div style="top:60px;position:absolute;z-index:2" id="speechBox">
<!-- The select tag acts like a drop down button, so it passes its value to the input box and not to itself -->
<select id = 'combo-box' title = "Saved Talk" onchange="document.getElementById('userText').value=this.options[this.selectedIndex].text; document.getElementById('idValue').value=this.options[this.selectedIndex].value;">
</select>
<span class = "dropdown" name = "Saved Talk"></span>
<input id ="userText" name="userText" type="text" onfocus="this.select()" ></input>
<input name="idValue" id="idValue" type="hidden">
<button id="speakText" class="toolbutton" title="Speak"></button>
<hr>
</div>
<div style="top:0px;">
<canvas id="canvas" height="0" width="0" style="border: 5px solide black;"></canvas>
</div>
</div>
<p id="mode" style="display:none;">1</p>
<p id="numeyes" style="display:none;">2</p>
<p id="eyetype" style="display:none;">1</p>
<p id="rate" style="display:none;">150</p>
<p id="pitch" style="display:none;">50</p>
<p id="speaklang" style="display:none;">en</p>
<p id="speaking" style="display:none;">0</p>
</body>
<script data-main="js/loader" src="lib/require.js"></script>
</html>