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

  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8" />
  5. <title>Speak Activity</title>
  6. <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, viewport-fit=cover"/>
  7. <link rel="prefetch" type="application/l10n" href="locale.ini" />
  8. <link rel="stylesheet" media="not screen and (device-width: 1200px) and (device-height: 900px)"
  9. href="lib/sugar-web/graphics/css/sugar-96dpi.css">
  10. <link rel="stylesheet" media="screen and (device-width: 1200px) and (device-height: 900px)"
  11. href="lib/sugar-web/graphics/css/sugar-200dpi.css">
  12. <link rel="stylesheet" href="css/activity.css">
  13. <link rel="stylesheet" href="css/inputrange.css">
  14. <script>if (typeof module === 'object') {window.module = module; module = undefined;}</script>
  15. <script src="lib/jquery.min.js"></script>
  16. <script src="mespeak.js"></script>
  17. <script>if (window.module) module = window.module;</script>
  18. </head>
  19. <body>
  20. <div id="main-toolbar" class="toolbar">
  21. <button class="toolbutton" id="activity-button" title="Speak Activity"></button>
  22. <!-- Add more buttons here -->
  23. <button class="toolbutton active" id="gamemode1-button" title="Type something to hear it:"></button>
  24. <button class="toolbutton" disabled id="gamemode2-button" title="Ask robot any questions:"></button>
  25. <button class="toolbutton" disabled id="gamemode3-button" title="Voice chat:"></button>
  26. <button class="toolbutton" id="language-button" title="Language:"></button>
  27. <button class="toolbutton" id="speech-button" title="Speech:"></button>
  28. <button class="toolbutton" id="face-button" title="Face:"></button>
  29. <!-- Buttons with class="pull-right" will be right aligned -->
  30. <button class="toolbutton pull-right" id="stop-button" title="Stop"></button>
  31. </div>
  32. <!-- The content of your activity goes inside the canvas -->
  33. <div id="userArea">
  34. <div id="chat" style="height:30vw;width:95vw;padding:10px;">
  35. <ul id="chatbox">
  36. </ul>
  37. </div>
  38. <!-- Created select tag so user can access history of talk -->
  39. <div style="top:60px;position:absolute;z-index:2" id="speechBox">
  40. <!-- The select tag acts like a drop down button, so it passes its value to the input box and not to itself -->
  41. <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;">
  42. </select>
  43. <span class = "dropdown" name = "Saved Talk"></span>
  44. <input id ="userText" name="userText" type="text" onfocus="this.select()" ></input>
  45. <input name="idValue" id="idValue" type="hidden">
  46. <button id="speakText" class="toolbutton" title="Speak"></button>
  47. <hr>
  48. </div>
  49. <div style="top:0px;">
  50. <canvas id="canvas" height="0" width="0" style="border: 5px solide black;"></canvas>
  51. </div>
  52. </div>
  53. <p id="mode" style="display:none;">1</p>
  54. <p id="numeyes" style="display:none;">2</p>
  55. <p id="eyetype" style="display:none;">1</p>
  56. <p id="rate" style="display:none;">150</p>
  57. <p id="pitch" style="display:none;">50</p>
  58. <p id="speaklang" style="display:none;">en</p>
  59. <p id="speaking" style="display:none;">0</p>
  60. </body>
  61. <script data-main="js/loader" src="lib/require.js"></script>
  62. </html>