forked from ONLYOFFICE/plugin-speech
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.html
251 lines (246 loc) · 9.05 KB
/
settings.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
<!--
(c) Copyright Ascensio System SIA 2020
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Speech settings</title>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js"></script>
<link rel="stylesheet" href="vendor/select2-4.0.6-rc.1/dist/css/select2.css"/>
<script src="vendor/select2-4.0.6-rc.1/dist/js/select2.js"></script>
<script type="text/javascript" src="https://onlyoffice.github.io/sdkjs-plugins/v1/plugins.js"></script>
<script type="text/javascript" src="https://onlyoffice.github.io/sdkjs-plugins/v1/plugins-ui.js"></script>
<link rel="stylesheet" href="https://onlyoffice.github.io/sdkjs-plugins/v1/plugins.css">
<script src="scripts/settings.js"></script>
<style>
</style>
</head>
<style>
html, body {
height: 100% !important;
}
.select2-container--default .select2-results > .select2-results__options {
max-height: 115px;
}
input[type=range] {
width: 100%;
margin: 11px 0;
background-color: transparent;
-webkit-appearance: none;
}
input[type=range]:focus {
outline: none;
}
input[type=range]::-webkit-slider-runnable-track {
background: #ffffff;
border: 0.1px solid #010101;
width: 100%;
height: 0px;
cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
margin-top: -11.1px;
width: 16px;
height: 22px;
background: #ffffff;
border: 0.2px solid rgba(0, 0, 0, 0.4);
border-radius: 5px;
cursor: pointer;
-webkit-appearance: none;
}
input[type=range]:focus::-webkit-slider-runnable-track {
background: #ffffff;
}
input[type=range]::-moz-range-track {
background: #ffffff;
border: 0.1px solid #010101;
width: 100%;
height: 0px;
cursor: pointer;
}
input[type=range]::-moz-range-thumb {
width: 16px;
height: 22px;
background: #ffffff;
border: 0.2px solid rgba(0, 0, 0, 0.4);
border-radius: 5px;
cursor: pointer;
}
input[type=range]::-ms-track {
background: transparent;
border-color: transparent;
border-width: 11px 0;
color: transparent;
width: 100%;
height: 0px;
cursor: pointer;
}
input[type=range]::-ms-fill-lower {
background: #f2f2f2;
border: 0.1px solid #010101;
}
input[type=range]::-ms-fill-upper {
background: #ffffff;
border: 0.1px solid #010101;
}
input[type=range]::-ms-thumb {
width: 16px;
height: 22px;
background: #ffffff;
border: 0.2px solid rgba(0, 0, 0, 0.4);
border-radius: 5px;
cursor: pointer;
margin-top: 0px;
/*Needed to keep the Edge thumb centred*/
}
input[type=range]:focus::-ms-fill-lower {
background: #ffffff;
}
input[type=range]:focus::-ms-fill-upper {
background: #ffffff;
}
/*TODO: Use one of the selectors from https://stackoverflow.com/a/20541859/7077589 and figure out
how to remove the virtical space around the range input in IE*/
@supports (-ms-ime-align:auto) {
/* Pre-Chromium Edge only styles, selector taken from hhttps://stackoverflow.com/a/32202953/7077589 */
input[type=range] {
margin: 0;
/*Edge starts the margin from the thumb, not the track as other browsers do*/
}
}
input[type=range] {
width: 100%;
margin: 11px 0;
background-color: transparent;
-webkit-appearance: none;
}
input[type=range]:focus {
outline: none;
}
input[type=range]::-webkit-slider-runnable-track {
background: #ffffff;
border: 0.1px solid #010101;
width: 100%;
height: 0px;
cursor: pointer;
}
input[type=range]::-webkit-slider-thumb {
margin-top: -11.1px;
width: 16px;
height: 22px;
background: #ffffff;
border: 0.2px solid rgba(0, 0, 0, 0.4);
border-radius: 5px;
cursor: pointer;
-webkit-appearance: none;
}
input[type=range]:focus::-webkit-slider-runnable-track {
background: #ffffff;
}
input[type=range]::-moz-range-track {
background: #ffffff;
border: 0.1px solid #010101;
width: 100%;
height: 0px;
cursor: pointer;
}
input[type=range]::-moz-range-thumb {
width: 16px;
height: 22px;
background: #ffffff;
border: 0.2px solid rgba(0, 0, 0, 0.4);
border-radius: 5px;
cursor: pointer;
}
input[type=range]::-ms-track {
background: transparent;
border-color: transparent;
border-width: 11px 0;
color: transparent;
width: 100%;
height: 0px;
cursor: pointer;
}
input[type=range]::-ms-fill-lower {
background: #f2f2f2;
border: 0.1px solid #010101;
}
input[type=range]::-ms-fill-upper {
background: #ffffff;
border: 0.1px solid #010101;
}
input[type=range]::-ms-thumb {
width: 16px;
height: 22px;
background: #ffffff;
border: 0.2px solid rgba(0, 0, 0, 0.4);
border-radius: 5px;
cursor: pointer;
margin-top: 0px;
/*Needed to keep the Edge thumb centred*/
}
input[type=range]:focus::-ms-fill-lower {
background: #ffffff;
}
input[type=range]:focus::-ms-fill-upper {
background: #ffffff;
}
/*TODO: Use one of the selectors from https://stackoverflow.com/a/20541859/7077589 and figure out
how to remove the virtical space around the range input in IE*/
@supports (-ms-ime-align:auto) {
/* Pre-Chromium Edge only styles, selector taken from hhttps://stackoverflow.com/a/32202953/7077589 */
input[type=range] {
margin: 0;
/*Edge starts the margin from the thumb, not the track as other browsers do*/
}
}
</style>
<body style="padding-left: 20px; padding-right: 20px">
<select id="voice-lang">
<option data-lang="id-ID" data-name="Google Bahasa Indonesia">Google Bahasa Indonesia (id-ID)</option>
<option data-lang="de-DE" data-name="Google Deutsch">Google Deutsch (de-DE)</option>
<option data-lang="es-ES" data-name="Google español">Google español (es-ES)</option>
<option data-lang="es-US" data-name="Google español de Estados Unidos">Google español de Estados Unidos (es-US)</option>
<option data-lang="fr-FR" data-name="Google français">Google français (fr-FR)</option>
<option data-lang="it-IT" data-name="Google italiano">Google italiano (it-IT)</option>
<option data-lang="nl-NL" data-name="Google Nederlands">Google Nederlands (nl-NL)</option>
<option data-lang="pl-PL" data-name="Google polski">Google polski (pl-PL)</option>
<option data-lang="pt-BR" data-name="Google português do Brasil">Google português do Brasil (pt-BR)</option>
<option data-lang="en-GB" data-name="Google UK English Female">Google UK English Female (en-GB)</option>
<option data-lang="en-GB" data-name="Google UK English Male">Google UK English Male (en-GB)</option>
<option data-lang="en-US" data-name="Google US English">Google US English (en-US)</option>
<option data-lang="ru-RU" data-name="Google русский">Google русский (ru-RU)</option>
<option data-lang="hi-IN" data-name="Google हिन्दी">Google हिन्दी (hi-IN)</option>
<option data-lang="zh-TW" data-name="Google 國語(臺灣)">Google 國語(臺灣) (zh-TW)</option>
<option data-lang="ja-JP" data-name="Google 日本語">Google 日本語 (ja-JP)</option>
<option data-lang="ko-KR" data-name="Google 한국의">Google 한국의 (ko-KR)</option>
<option data-lang="zh-CN" data-name="Google 普通话(中国大陆)">Google 普通话(中国大陆) (zh-CN)</option>
<option data-lang="zh-HK" data-name="Google 粤語(香港)">Google 粤語(香港) (zh-HK)</option>
<option data-lang="en-US" data-name="Microsoft David - English (United States)">Microsoft David - English (United States) (en-US) -- DEFAULT</option>
<option data-lang="ru-RU" data-name="Microsoft Irina - Russian (Russia)">Microsoft Irina - Russian (Russia) (ru-RU)</option>
<option data-lang="en-US" data-name="Microsoft Mark - English (United States)">Microsoft Mark - English (United States) (en-US)</option>
<option data-lang="ru-RU" data-name="Microsoft Pavel - Russian (Russia)">Microsoft Pavel - Russian (Russia) (ru-RU)</option>
<option data-lang="en-US" data-name="Microsoft Zira - English (United States)">Microsoft Zira - English (United States) (en-US)</option>
</select>
<div style="margin-top: 12px; display: flex; flex-direction: column;">
<div style="display: flex; flex-direction: row; justify-content: space-between;"><label for="rate">Rate</label><div class="rate-value">1</div></div>
<div class="clearfix"></div>
<input type="range" min="0.5" max="2" value="1" step="0.1" id="rate">
</div>
<div style="margin-top: 12px; display: flex; flex-direction: column;">
<div style="display: flex; flex-direction: row; justify-content: space-between;"><label for="pitch">Pitch</label><div class="pitch-value">1</div></div>
<input type="range" min="0" max="2" value="1" step="0.1" id="pitch">
<div class="clearfix"></div>
</div>
</body>
</html>