Debian Codegraph @

emscripten/demo.html

raw symbols SCIP
1 <!doctype html>
2 <html>
3 <head>
4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
5 <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
6 <title>espeakng.js 1.49.1 Demo</title>
7 <style>
8 h1 {
9 max-width: 480px;
10 margin: 2rem auto;
11 font-size: 150%;
12 }
13 form {
14 max-width: 480px;
15 margin: 0 auto;
16 }
17 .speecharg label {
18 display: inline-block;
19 width: 20%;
20 }
21 .speecharg input, .speecharg select {
22 display: inline-block;
23 width: calc(80% - 3rem);
24 margin: 0;
25 }
26 .speecharg input {
27 margin: 0;
28 padding: 0;
29 border: 0;
30 }
31 .speecharg button {
32 width: 1.5rem;
33 height: 1.5rem;
34 margin: 0 0 0 1.5rem;
35 display: inline-block;
36 }
37 .bottom {
38 margin-top: 1rem;
39 display: -webkit-flex;
40 display: flex;
41 -webkit-justify-content: space-between;
42 justify-content: space-between;
43 margin: 1rem 0;
44 }
45 .bottom button {
46 flex-grow: 1;
47 -webkit-flex-grow: 1;
48 }
49 #texttospeak {
50 width: 100%;
51 height: 8rem;
52 display: block;
53 margin-bottom: 1rem;
54 }
55 #ipaarea {
56 width: 100%;
57 height: 8rem;
58 display: block;
59 margin-bottom: 1rem;
60 }
61 p.gh {
62 color: #333;
63 text-align: right;
64 display: block;
65 font-style: italic;
66 }
67
68 /* loading screen */
69 #splash {
70 position: absolute;
71 top: 0;
72 left: 0;
73 right: 0;
74 bottom: 0;
75 background-color: #fff;
76 padding-top: 4rem;
77 transition: opacity 200ms ease, visibility 200ms;
78 -webkit-transition: opacity 200ms ease, visibility 200ms;
79 visibility: hidden;
80 opacity: 0;
81 }
82 body.loading #splash {
83 visibility: visible;
84 opacity: 1;
85 }
86 #splash > * {
87 width: 10rem;
88 max-width: 480px;
89 margin: 2rem auto;
90 display: block;
91 text-align: center;
92 }
93 body.loading > *:not(#splash) {
94 visibility: hidden;
95 }
96
97 </style>
98 <script type="text/javascript" src="js/espeakng.js"></script>
99 <script type="text/javascript" src="js/demo.js"></script>
100 </head>
101 <body class="loading">
102 <div id="splash">
103 <div>Loading eSpeak-ng worker and data...</div>
104 <progress></progress>
105 </div>
106 <h1>espeakng.js 1.49.1 Demo</h1>
107 <form>
108 <textarea id="texttospeak">Call me Ishmael. Some years ago --- never mind how long precisely --- having little or no money in my purse, and nothing particular to interest me on shore, I thought I would sail about a little and see the watery part of the world. It is a way I have of driving off the spleen and regulating the circulation.</textarea>
109 <textarea readonly="true" placeholder="IPA" id="ipaarea"></textarea>
110 <div class="speecharg">
111 <label for="pitch">Pitch</label><input id="pitch" type="range" value="50" min="0" max="100" /><button type="button" aria-label="Reset pitch" title="Reset pitch" onclick="resetPitch();">&#x21b6;</button>
112 </div>
113 <div class="speecharg">
114 <label for="rate">Rate</label><input id="rate" type="range" value="175" min="80" max="450" /><button type="button" aria-label="Reset rate" title="Reset rate" onclick="resetRate();">&#x21b6;</button>
115 </div>
116 <div class="speecharg">
117 <label for="voice">Voice</label><select id="voice"></select><button type="button" aria-label="Reset voice" title="Reset voice" onclick="resetVoice();">&#x21b6;</button>
118 </div>
119 <div class="bottom">
120 <button type="button" onmousedown="speakAndIpa();">Speak</button>
121 <button type="button" onmousedown="stop();">Stop</button>
122 </div>
123 <p class="gh"><a href="https://github.com/eeejay/espeak/tree/emscripten">Original Code for eSpeak: Eitan Isaacson</a></p>
124 <p class="gh"><a href="https://github.com/pettarin/espeak-ng/tree/emscripten">Adapted Code for eSpeak-ng: Alberto Pettarin</a></p>
125 </form>
126 <script type="text/javascript">
127 initializeDemo();
128 </script>
129 </body>
130 </html>