jodit 4.0.0-beta.44 → 4.0.0-beta.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/es2015/jodit.css +1 -1
- package/es2015/jodit.js +414 -333
- package/es2015/jodit.min.js +2 -2
- package/es2015/plugins/debug/debug.js +1 -1
- package/es2015/plugins/debug/debug.min.js +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2015/plugins/speech-recognize/speech-recognize.js +781 -761
- package/es2015/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es2018/jodit.css +1 -1
- package/es2018/jodit.js +412 -331
- package/es2018/jodit.min.js +2 -2
- package/es2018/plugins/debug/debug.js +1 -1
- package/es2018/plugins/debug/debug.min.js +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2018/plugins/speech-recognize/speech-recognize.js +781 -761
- package/es2018/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es2021/jodit.css +1 -1
- package/es2021/jodit.js +412 -331
- package/es2021/jodit.min.js +2 -2
- package/es2021/plugins/debug/debug.js +1 -1
- package/es2021/plugins/debug/debug.min.js +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021/plugins/speech-recognize/speech-recognize.js +780 -760
- package/es2021/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es2021.en/jodit.css +1 -1
- package/es2021.en/jodit.js +12 -11
- package/es2021.en/jodit.min.js +2 -2
- package/es2021.en/plugins/debug/debug.js +1 -1
- package/es2021.en/plugins/debug/debug.min.js +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es2021.en/plugins/speech-recognize/speech-recognize.js +3 -3
- package/es2021.en/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/es5/jodit.css +2 -2
- package/es5/jodit.js +1103 -1023
- package/es5/jodit.min.css +1 -1
- package/es5/jodit.min.js +2 -2
- package/es5/plugins/debug/debug.js +2 -2
- package/es5/plugins/debug/debug.min.js +2 -2
- package/es5/plugins/speech-recognize/speech-recognize.css +1 -1
- package/es5/plugins/speech-recognize/speech-recognize.js +798 -778
- package/es5/plugins/speech-recognize/speech-recognize.min.js +2 -2
- package/esm/config.js +2 -1
- package/esm/core/constants.js +1 -1
- package/esm/plugins/preview/preview.js +1 -1
- package/package.json +1 -1
- package/types/config.d.ts +2 -1
- package/types/tsconfig.json +2 -20
- package/esm/plugins/source/editor/engines/custom.js +0 -34
- package/esm/plugins/speech-recognize/config.js +0 -92
- package/esm/plugins/speech-recognize/constants.js +0 -11
- package/esm/plugins/speech-recognize/helpers/api.js +0 -7
- package/esm/plugins/speech-recognize/helpers/exec-spell-command.js +0 -9
- package/esm/plugins/speech-recognize/helpers/recognize-manager.js +0 -168
- package/esm/plugins/speech-recognize/helpers/sound.js +0 -30
- package/esm/plugins/speech-recognize/interface.js +0 -6
- package/esm/plugins/speech-recognize/langs/ar.js +0 -14
- package/esm/plugins/speech-recognize/langs/cs_cz.js +0 -14
- package/esm/plugins/speech-recognize/langs/de.js +0 -14
- package/esm/plugins/speech-recognize/langs/es.js +0 -14
- package/esm/plugins/speech-recognize/langs/fa.js +0 -14
- package/esm/plugins/speech-recognize/langs/fr.js +0 -14
- package/esm/plugins/speech-recognize/langs/he.js +0 -14
- package/esm/plugins/speech-recognize/langs/hu.js +0 -14
- package/esm/plugins/speech-recognize/langs/id.js +0 -14
- package/esm/plugins/speech-recognize/langs/index.js +0 -1
- package/esm/plugins/speech-recognize/langs/it.js +0 -14
- package/esm/plugins/speech-recognize/langs/ja.js +0 -14
- package/esm/plugins/speech-recognize/langs/ko.js +0 -14
- package/esm/plugins/speech-recognize/langs/mn.js +0 -14
- package/esm/plugins/speech-recognize/langs/nl.js +0 -14
- package/esm/plugins/speech-recognize/langs/pl.js +0 -14
- package/esm/plugins/speech-recognize/langs/pt_br.js +0 -14
- package/esm/plugins/speech-recognize/langs/ru.js +0 -14
- package/esm/plugins/speech-recognize/langs/tr.js +0 -14
- package/esm/plugins/speech-recognize/langs/zh_cn.js +0 -14
- package/esm/plugins/speech-recognize/langs/zh_tw.js +0 -14
- package/esm/plugins/speech-recognize/speech-recognize.js +0 -115
- package/esm/polyfills.js +0 -54
- package/types/plugins/source/editor/engines/custom.d.ts +0 -27
- package/types/polyfills.d.ts +0 -10
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* jodit - Jodit is awesome and usefully wysiwyg editor with filebrowser
|
|
3
3
|
* Author: Chupurnov <chupurnov@gmail.com> (https://xdsoft.net/jodit/)
|
|
4
|
-
* Version: v4.0.0-beta.
|
|
4
|
+
* Version: v4.0.0-beta.49
|
|
5
5
|
* Url: https://xdsoft.net/jodit/
|
|
6
6
|
* License(s): MIT
|
|
7
7
|
*/
|
|
@@ -18,989 +18,1009 @@
|
|
|
18
18
|
})(self, function() {
|
|
19
19
|
return (self["webpackChunkjodit"] = self["webpackChunkjodit"] || []).push([[781],{
|
|
20
20
|
|
|
21
|
-
/***/
|
|
22
|
-
/***/ (function(
|
|
21
|
+
/***/ 57998:
|
|
22
|
+
/***/ (function(module) {
|
|
23
23
|
|
|
24
24
|
"use strict";
|
|
25
|
-
// ESM COMPAT FLAG
|
|
26
|
-
__webpack_require__.r(__webpack_exports__);
|
|
27
25
|
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
26
|
+
/*!
|
|
27
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
28
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
29
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
30
|
+
*/
|
|
31
|
+
module.exports = {
|
|
32
|
+
newline: 'الخط الجديد',
|
|
33
|
+
delete: 'حذف',
|
|
34
|
+
space: 'الفضاء',
|
|
35
|
+
'Speech Recognize': 'التعرف على الكلام',
|
|
36
|
+
Sound: 'الصوت',
|
|
37
|
+
'Interim Results': 'النتائج المؤقتة'
|
|
38
|
+
};
|
|
32
39
|
|
|
33
|
-
// NAMESPACE OBJECT: ./src/plugins/speech-recognize/langs/index.ts
|
|
34
|
-
var langs_namespaceObject = {};
|
|
35
|
-
__webpack_require__.r(langs_namespaceObject);
|
|
36
|
-
__webpack_require__.d(langs_namespaceObject, {
|
|
37
|
-
"ar": function() { return ar; },
|
|
38
|
-
"cs_cz": function() { return cs_cz; },
|
|
39
|
-
"de": function() { return de; },
|
|
40
|
-
"es": function() { return es; },
|
|
41
|
-
"fa": function() { return fa; },
|
|
42
|
-
"fr": function() { return fr; },
|
|
43
|
-
"he": function() { return he; },
|
|
44
|
-
"hu": function() { return hu; },
|
|
45
|
-
"id": function() { return id; },
|
|
46
|
-
"it": function() { return it; },
|
|
47
|
-
"ja": function() { return ja; },
|
|
48
|
-
"ko": function() { return ko; },
|
|
49
|
-
"mn": function() { return mn; },
|
|
50
|
-
"nl": function() { return nl; },
|
|
51
|
-
"pl": function() { return pl; },
|
|
52
|
-
"pt_br": function() { return pt_br; },
|
|
53
|
-
"ru": function() { return ru; },
|
|
54
|
-
"tr": function() { return tr; },
|
|
55
|
-
"zh_cn": function() { return zh_cn; },
|
|
56
|
-
"zh_tw": function() { return zh_tw; }
|
|
57
|
-
});
|
|
58
40
|
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
var utils = __webpack_require__(87398);
|
|
67
|
-
// EXTERNAL MODULE: ./src/core/global.ts
|
|
68
|
-
var global = __webpack_require__(79102);
|
|
69
|
-
// EXTERNAL MODULE: ./src/core/dom/dom.ts
|
|
70
|
-
var dom = __webpack_require__(9162);
|
|
71
|
-
// EXTERNAL MODULE: ./src/core/decorators/debounce/debounce.ts
|
|
72
|
-
var debounce = __webpack_require__(62294);
|
|
73
|
-
;// CONCATENATED MODULE: ./src/plugins/speech-recognize/helpers/exec-spell-command.ts
|
|
41
|
+
/***/ }),
|
|
42
|
+
|
|
43
|
+
/***/ 90833:
|
|
44
|
+
/***/ (function(module) {
|
|
45
|
+
|
|
46
|
+
"use strict";
|
|
47
|
+
|
|
74
48
|
/*!
|
|
75
49
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
76
50
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
77
51
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
78
52
|
*/
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
53
|
+
module.exports = {
|
|
54
|
+
newline: 'řádek',
|
|
55
|
+
delete: 'odstranit',
|
|
56
|
+
space: 'prostora',
|
|
57
|
+
'Speech Recognize': 'Rozpoznání Řeči',
|
|
58
|
+
Sound: 'Zvuk',
|
|
59
|
+
'Interim Results': 'Průběžné Výsledky'
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
/***/ }),
|
|
64
|
+
|
|
65
|
+
/***/ 36373:
|
|
66
|
+
/***/ (function(module) {
|
|
67
|
+
|
|
68
|
+
"use strict";
|
|
83
69
|
|
|
84
|
-
// EXTERNAL MODULE: ./src/plugins/speech-recognize/langs/ar.js
|
|
85
|
-
var ar = __webpack_require__(5466);
|
|
86
|
-
// EXTERNAL MODULE: ./src/plugins/speech-recognize/langs/cs_cz.js
|
|
87
|
-
var cs_cz = __webpack_require__(65226);
|
|
88
|
-
// EXTERNAL MODULE: ./src/plugins/speech-recognize/langs/de.js
|
|
89
|
-
var de = __webpack_require__(87541);
|
|
90
|
-
// EXTERNAL MODULE: ./src/plugins/speech-recognize/langs/es.js
|
|
91
|
-
var es = __webpack_require__(87104);
|
|
92
|
-
// EXTERNAL MODULE: ./src/plugins/speech-recognize/langs/fa.js
|
|
93
|
-
var fa = __webpack_require__(53808);
|
|
94
|
-
// EXTERNAL MODULE: ./src/plugins/speech-recognize/langs/fr.js
|
|
95
|
-
var fr = __webpack_require__(48954);
|
|
96
|
-
// EXTERNAL MODULE: ./src/plugins/speech-recognize/langs/he.js
|
|
97
|
-
var he = __webpack_require__(14694);
|
|
98
|
-
// EXTERNAL MODULE: ./src/plugins/speech-recognize/langs/hu.js
|
|
99
|
-
var hu = __webpack_require__(67381);
|
|
100
|
-
// EXTERNAL MODULE: ./src/plugins/speech-recognize/langs/id.js
|
|
101
|
-
var id = __webpack_require__(99549);
|
|
102
|
-
// EXTERNAL MODULE: ./src/plugins/speech-recognize/langs/it.js
|
|
103
|
-
var it = __webpack_require__(28428);
|
|
104
|
-
// EXTERNAL MODULE: ./src/plugins/speech-recognize/langs/ja.js
|
|
105
|
-
var ja = __webpack_require__(25363);
|
|
106
|
-
// EXTERNAL MODULE: ./src/plugins/speech-recognize/langs/ko.js
|
|
107
|
-
var ko = __webpack_require__(96929);
|
|
108
|
-
// EXTERNAL MODULE: ./src/plugins/speech-recognize/langs/mn.js
|
|
109
|
-
var mn = __webpack_require__(26781);
|
|
110
|
-
// EXTERNAL MODULE: ./src/plugins/speech-recognize/langs/nl.js
|
|
111
|
-
var nl = __webpack_require__(58499);
|
|
112
|
-
// EXTERNAL MODULE: ./src/plugins/speech-recognize/langs/pl.js
|
|
113
|
-
var pl = __webpack_require__(59430);
|
|
114
|
-
// EXTERNAL MODULE: ./src/plugins/speech-recognize/langs/pt_br.js
|
|
115
|
-
var pt_br = __webpack_require__(70297);
|
|
116
|
-
// EXTERNAL MODULE: ./src/plugins/speech-recognize/langs/ru.js
|
|
117
|
-
var ru = __webpack_require__(98949);
|
|
118
|
-
// EXTERNAL MODULE: ./src/plugins/speech-recognize/langs/tr.js
|
|
119
|
-
var tr = __webpack_require__(61232);
|
|
120
|
-
// EXTERNAL MODULE: ./src/plugins/speech-recognize/langs/zh_cn.js
|
|
121
|
-
var zh_cn = __webpack_require__(56775);
|
|
122
|
-
// EXTERNAL MODULE: ./src/plugins/speech-recognize/langs/zh_tw.js
|
|
123
|
-
var zh_tw = __webpack_require__(97957);
|
|
124
|
-
;// CONCATENATED MODULE: ./src/plugins/speech-recognize/langs/index.ts
|
|
125
70
|
/*!
|
|
126
71
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
127
72
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
128
73
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
129
74
|
*/
|
|
75
|
+
module.exports = {
|
|
76
|
+
newline: 'Zeilenumbruch',
|
|
77
|
+
delete: 'löschen',
|
|
78
|
+
space: 'Raum',
|
|
79
|
+
'Speech Recognize': 'Sprache Erkennen',
|
|
80
|
+
Sound: 'Sound',
|
|
81
|
+
'Interim Results': 'Zwischenergebnis'
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
/***/ }),
|
|
130
86
|
|
|
87
|
+
/***/ 97192:
|
|
88
|
+
/***/ (function(module) {
|
|
89
|
+
|
|
90
|
+
"use strict";
|
|
131
91
|
|
|
92
|
+
/*!
|
|
93
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
94
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
95
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
96
|
+
*/
|
|
97
|
+
module.exports = {
|
|
98
|
+
newline: 'nueva línea',
|
|
99
|
+
delete: 'eliminar',
|
|
100
|
+
space: 'espacio',
|
|
101
|
+
'Speech Recognize': 'Reconocimiento de Voz',
|
|
102
|
+
Sound: 'Sonido',
|
|
103
|
+
'Interim Results': 'Resultados Provisionales'
|
|
104
|
+
};
|
|
132
105
|
|
|
133
106
|
|
|
107
|
+
/***/ }),
|
|
134
108
|
|
|
109
|
+
/***/ 6043:
|
|
110
|
+
/***/ (function(module) {
|
|
135
111
|
|
|
112
|
+
"use strict";
|
|
136
113
|
|
|
114
|
+
/*!
|
|
115
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
116
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
117
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
118
|
+
*/
|
|
119
|
+
module.exports = {
|
|
120
|
+
newline: 'خط جدید',
|
|
121
|
+
delete: 'حذف',
|
|
122
|
+
space: 'فضا',
|
|
123
|
+
'Speech Recognize': 'گفتار را تشخیص دهید',
|
|
124
|
+
Sound: 'صدا',
|
|
125
|
+
'Interim Results': 'نتایج موقت'
|
|
126
|
+
};
|
|
137
127
|
|
|
138
128
|
|
|
129
|
+
/***/ }),
|
|
139
130
|
|
|
131
|
+
/***/ 76305:
|
|
132
|
+
/***/ (function(module) {
|
|
140
133
|
|
|
134
|
+
"use strict";
|
|
141
135
|
|
|
136
|
+
/*!
|
|
137
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
138
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
139
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
140
|
+
*/
|
|
141
|
+
module.exports = {
|
|
142
|
+
newline: 'nouvelle ligne',
|
|
143
|
+
delete: 'supprimer',
|
|
144
|
+
space: 'espace',
|
|
145
|
+
'Speech Recognize': 'Reconnaissance Vocale',
|
|
146
|
+
Sound: 'Son',
|
|
147
|
+
'Interim Results': 'Résultats Intermédiaires'
|
|
148
|
+
};
|
|
142
149
|
|
|
143
150
|
|
|
151
|
+
/***/ }),
|
|
144
152
|
|
|
153
|
+
/***/ 45834:
|
|
154
|
+
/***/ (function(module) {
|
|
145
155
|
|
|
156
|
+
"use strict";
|
|
146
157
|
|
|
158
|
+
/*!
|
|
159
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
160
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
161
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
162
|
+
*/
|
|
163
|
+
module.exports = {
|
|
164
|
+
newline: 'חדשות',
|
|
165
|
+
delete: 'מחק',
|
|
166
|
+
space: 'שטח',
|
|
167
|
+
'Speech Recognize': 'דיבור מזהה',
|
|
168
|
+
Sound: 'קול',
|
|
169
|
+
'Interim Results': 'תוצאות ביניים'
|
|
170
|
+
};
|
|
147
171
|
|
|
148
172
|
|
|
173
|
+
/***/ }),
|
|
149
174
|
|
|
175
|
+
/***/ 40509:
|
|
176
|
+
/***/ (function(module) {
|
|
150
177
|
|
|
178
|
+
"use strict";
|
|
151
179
|
|
|
152
|
-
// EXTERNAL MODULE: ./src/config.ts
|
|
153
|
-
var config = __webpack_require__(37446);
|
|
154
|
-
// EXTERNAL MODULE: ./src/core/helpers/utils/data-bind.ts
|
|
155
|
-
var data_bind = __webpack_require__(25920);
|
|
156
|
-
// EXTERNAL MODULE: ./src/core/helpers/checker/is-boolean.ts
|
|
157
|
-
var is_boolean = __webpack_require__(88751);
|
|
158
|
-
// EXTERNAL MODULE: ./src/core/ui/icon.ts
|
|
159
|
-
var icon = __webpack_require__(30052);
|
|
160
|
-
// EXTERNAL MODULE: ./src/core/event-emitter/eventify.ts
|
|
161
|
-
var eventify = __webpack_require__(3569);
|
|
162
|
-
// EXTERNAL MODULE: ./src/core/decorators/index.ts + 7 modules
|
|
163
|
-
var decorators = __webpack_require__(90283);
|
|
164
|
-
;// CONCATENATED MODULE: ./src/plugins/speech-recognize/constants.ts
|
|
165
180
|
/*!
|
|
166
181
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
167
182
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
168
183
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
169
184
|
*/
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
185
|
+
module.exports = {
|
|
186
|
+
newline: 'újsor',
|
|
187
|
+
delete: 'törlés',
|
|
188
|
+
space: 'tér',
|
|
189
|
+
'Speech Recognize': 'A Beszéd Felismeri',
|
|
190
|
+
Sound: 'Hang',
|
|
191
|
+
'Interim Results': 'Időközi Eredmények'
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
/***/ }),
|
|
196
|
+
|
|
197
|
+
/***/ 75720:
|
|
198
|
+
/***/ (function(module) {
|
|
199
|
+
|
|
200
|
+
"use strict";
|
|
201
|
+
|
|
202
|
+
/*!
|
|
203
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
204
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
205
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
173
206
|
*/
|
|
174
|
-
|
|
175
|
-
|
|
207
|
+
module.exports = {
|
|
208
|
+
newline: 'newline',
|
|
209
|
+
delete: 'Hapus',
|
|
210
|
+
space: 'ruang',
|
|
211
|
+
'Speech Recognize': 'Pidato Mengenali',
|
|
212
|
+
Sound: 'Suara',
|
|
213
|
+
'Interim Results': 'Hasil Sementara'
|
|
214
|
+
};
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
/***/ }),
|
|
218
|
+
|
|
219
|
+
/***/ 88369:
|
|
220
|
+
/***/ (function(module) {
|
|
221
|
+
|
|
222
|
+
"use strict";
|
|
176
223
|
|
|
177
|
-
;// CONCATENATED MODULE: ./src/plugins/speech-recognize/helpers/sound.ts
|
|
178
224
|
/*!
|
|
179
225
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
180
226
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
181
227
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
182
228
|
*/
|
|
183
|
-
|
|
184
|
-
|
|
229
|
+
module.exports = {
|
|
230
|
+
newline: 'nuova riga',
|
|
231
|
+
delete: 'eliminare',
|
|
232
|
+
space: 'spazio',
|
|
233
|
+
'Speech Recognize': 'Discorso Riconoscere',
|
|
234
|
+
Sound: 'Suono',
|
|
235
|
+
'Interim Results': 'Risultati intermedi'
|
|
236
|
+
};
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
/***/ }),
|
|
240
|
+
|
|
241
|
+
/***/ 30878:
|
|
242
|
+
/***/ (function(module) {
|
|
243
|
+
|
|
244
|
+
"use strict";
|
|
245
|
+
|
|
246
|
+
/*!
|
|
247
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
248
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
249
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
185
250
|
*/
|
|
251
|
+
module.exports = {
|
|
252
|
+
newline: '改行',
|
|
253
|
+
delete: '削除',
|
|
254
|
+
space: 'スペース',
|
|
255
|
+
'Speech Recognize': '音声認識',
|
|
256
|
+
Sound: '音',
|
|
257
|
+
'Interim Results': '中間結果'
|
|
258
|
+
};
|
|
186
259
|
|
|
187
|
-
|
|
188
|
-
|
|
260
|
+
|
|
261
|
+
/***/ }),
|
|
262
|
+
|
|
263
|
+
/***/ 37780:
|
|
264
|
+
/***/ (function(module) {
|
|
265
|
+
|
|
266
|
+
"use strict";
|
|
267
|
+
|
|
268
|
+
/*!
|
|
269
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
270
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
271
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
189
272
|
*/
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
vol.gain.value = gain;
|
|
207
|
-
}
|
|
273
|
+
module.exports = {
|
|
274
|
+
newline: '줄 바꿈',
|
|
275
|
+
delete: '삭제',
|
|
276
|
+
space: '공간',
|
|
277
|
+
'Speech Recognize': '음성 인식',
|
|
278
|
+
Sound: '소리',
|
|
279
|
+
'Interim Results': '중간 결과'
|
|
280
|
+
};
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
/***/ }),
|
|
284
|
+
|
|
285
|
+
/***/ 4105:
|
|
286
|
+
/***/ (function(module) {
|
|
287
|
+
|
|
288
|
+
"use strict";
|
|
208
289
|
|
|
209
|
-
;// CONCATENATED MODULE: ./src/plugins/speech-recognize/helpers/recognize-manager.ts
|
|
210
290
|
/*!
|
|
211
291
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
212
292
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
213
293
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
214
294
|
*/
|
|
215
|
-
|
|
295
|
+
module.exports = {
|
|
296
|
+
newline: 'Шинэ мөр',
|
|
297
|
+
delete: 'Устгах',
|
|
298
|
+
space: 'Зай',
|
|
299
|
+
'Speech Recognize': 'Дуу хоолой таних',
|
|
300
|
+
Sound: 'Дуу',
|
|
301
|
+
'Interim Results': 'Түр зуурын үр дүн'
|
|
302
|
+
};
|
|
216
303
|
|
|
217
304
|
|
|
305
|
+
/***/ }),
|
|
218
306
|
|
|
307
|
+
/***/ 2589:
|
|
308
|
+
/***/ (function(module) {
|
|
219
309
|
|
|
310
|
+
"use strict";
|
|
220
311
|
|
|
221
|
-
let RecognizeManager = RecognizeManager_1 = class RecognizeManager extends eventify/* Eventify */.a {
|
|
222
|
-
set lang(v) {
|
|
223
|
-
this._lang = v;
|
|
224
|
-
this._api.lang = v;
|
|
225
|
-
}
|
|
226
|
-
get lang() {
|
|
227
|
-
return this._lang;
|
|
228
|
-
}
|
|
229
|
-
set continuous(v) {
|
|
230
|
-
this._continuous = v;
|
|
231
|
-
this._api.continuous = v;
|
|
232
|
-
}
|
|
233
|
-
get continuous() {
|
|
234
|
-
return this._continuous;
|
|
235
|
-
}
|
|
236
|
-
set interimResults(v) {
|
|
237
|
-
this._interimResults = v;
|
|
238
|
-
this._api.interimResults = v;
|
|
239
|
-
}
|
|
240
|
-
get interimResults() {
|
|
241
|
-
return this._interimResults;
|
|
242
|
-
}
|
|
243
|
-
constructor(async, api) {
|
|
244
|
-
super();
|
|
245
|
-
this.async = async;
|
|
246
|
-
this._continuous = false;
|
|
247
|
-
this._interimResults = false;
|
|
248
|
-
this.sound = true;
|
|
249
|
-
this._isEnabled = false;
|
|
250
|
-
this._restartTimeout = 0;
|
|
251
|
-
this._onSpeechStart = (e) => {
|
|
252
|
-
if (!this._isEnabled) {
|
|
253
|
-
return;
|
|
254
|
-
}
|
|
255
|
-
this.async.clearTimeout(this._restartTimeout);
|
|
256
|
-
this._restartTimeout = this.async.setTimeout(() => {
|
|
257
|
-
this.restart();
|
|
258
|
-
this.emit('pulse', false);
|
|
259
|
-
this._makeSound(WARN);
|
|
260
|
-
}, 5000);
|
|
261
|
-
this.emit('pulse', true);
|
|
262
|
-
};
|
|
263
|
-
this._progressTimeout = 0;
|
|
264
|
-
this._api = api;
|
|
265
|
-
RecognizeManager_1._instances.add(this);
|
|
266
|
-
}
|
|
267
|
-
destruct() {
|
|
268
|
-
this.stop();
|
|
269
|
-
RecognizeManager_1._instances.delete(this);
|
|
270
|
-
super.destruct();
|
|
271
|
-
}
|
|
272
|
-
get isEnabled() {
|
|
273
|
-
return this._isEnabled;
|
|
274
|
-
}
|
|
275
|
-
start() {
|
|
276
|
-
if (this._isEnabled) {
|
|
277
|
-
return;
|
|
278
|
-
}
|
|
279
|
-
this._isEnabled = true;
|
|
280
|
-
RecognizeManager_1._instances.forEach(instance => {
|
|
281
|
-
if (instance !== this) {
|
|
282
|
-
instance.stop();
|
|
283
|
-
}
|
|
284
|
-
});
|
|
285
|
-
this._api.start();
|
|
286
|
-
this.__on('speechstart', this._onSpeechStart)
|
|
287
|
-
.__on('error', this._onError)
|
|
288
|
-
.__on('result', this._onResult);
|
|
289
|
-
}
|
|
290
|
-
stop() {
|
|
291
|
-
if (!this._isEnabled) {
|
|
292
|
-
return;
|
|
293
|
-
}
|
|
294
|
-
try {
|
|
295
|
-
this._api.abort();
|
|
296
|
-
this._api.stop();
|
|
297
|
-
}
|
|
298
|
-
catch { }
|
|
299
|
-
this.__off('speechstart', this._onSpeechStart)
|
|
300
|
-
.__off('error', this._onError)
|
|
301
|
-
.__off('result', this._onResult);
|
|
302
|
-
this.async.clearTimeout(this._restartTimeout);
|
|
303
|
-
this._isEnabled = false;
|
|
304
|
-
this.emit('pulse', false);
|
|
305
|
-
}
|
|
306
|
-
toggle() {
|
|
307
|
-
if (!this._isEnabled) {
|
|
308
|
-
this.start();
|
|
309
|
-
}
|
|
310
|
-
else {
|
|
311
|
-
this.stop();
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
restart() {
|
|
315
|
-
this.stop();
|
|
316
|
-
this.start();
|
|
317
|
-
}
|
|
318
|
-
__on(event, callback) {
|
|
319
|
-
this._api.addEventListener(event, callback);
|
|
320
|
-
return this;
|
|
321
|
-
}
|
|
322
|
-
__off(event, callback) {
|
|
323
|
-
this._api.removeEventListener(event, callback);
|
|
324
|
-
return this;
|
|
325
|
-
}
|
|
326
|
-
_onResult(e) {
|
|
327
|
-
if (!this._isEnabled) {
|
|
328
|
-
return;
|
|
329
|
-
}
|
|
330
|
-
this.async.clearTimeout(this._progressTimeout);
|
|
331
|
-
const resultItem = e.results.item(e.resultIndex);
|
|
332
|
-
const { transcript } = resultItem.item(0);
|
|
333
|
-
const resultHandler = () => {
|
|
334
|
-
try {
|
|
335
|
-
this.async.clearTimeout(this._restartTimeout);
|
|
336
|
-
this.emit('result', transcript);
|
|
337
|
-
}
|
|
338
|
-
catch { }
|
|
339
|
-
this.restart();
|
|
340
|
-
this.emit('pulse', false);
|
|
341
|
-
this._makeSound(PII);
|
|
342
|
-
};
|
|
343
|
-
if (resultItem.isFinal === false) {
|
|
344
|
-
this.emit('progress', transcript);
|
|
345
|
-
this._progressTimeout = this.async.setTimeout(resultHandler, 500);
|
|
346
|
-
return;
|
|
347
|
-
}
|
|
348
|
-
resultHandler();
|
|
349
|
-
}
|
|
350
|
-
_onError() {
|
|
351
|
-
if (!this._isEnabled) {
|
|
352
|
-
return;
|
|
353
|
-
}
|
|
354
|
-
this._makeSound(WARN);
|
|
355
|
-
this.emit('pulse', false);
|
|
356
|
-
this.restart();
|
|
357
|
-
}
|
|
358
|
-
_makeSound(frequency) {
|
|
359
|
-
if (this.sound) {
|
|
360
|
-
sound({ frequency });
|
|
361
|
-
}
|
|
362
|
-
}
|
|
363
|
-
};
|
|
364
|
-
RecognizeManager._instances = new Set();
|
|
365
|
-
RecognizeManager = RecognizeManager_1 = (0,tslib_es6/* __decorate */.gn)([
|
|
366
|
-
decorators.autobind
|
|
367
|
-
], RecognizeManager);
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
;// CONCATENATED MODULE: ./src/plugins/speech-recognize/helpers/api.ts
|
|
371
312
|
/*!
|
|
372
313
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
373
314
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
374
315
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
375
316
|
*/
|
|
376
|
-
|
|
377
|
-
|
|
317
|
+
module.exports = {
|
|
318
|
+
newline: 'regel',
|
|
319
|
+
delete: 'verwijderen',
|
|
320
|
+
space: 'ruimte',
|
|
321
|
+
'Speech Recognize': 'Spraak Herkennen',
|
|
322
|
+
Sound: 'Geluid',
|
|
323
|
+
'Interim Results': 'Tussentijdse Resultaten'
|
|
324
|
+
};
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
/***/ }),
|
|
328
|
+
|
|
329
|
+
/***/ 72556:
|
|
330
|
+
/***/ (function(module) {
|
|
331
|
+
|
|
332
|
+
"use strict";
|
|
378
333
|
|
|
379
|
-
// EXTERNAL MODULE: ./src/plugins/speech-recognize/speech-recognize.svg
|
|
380
|
-
var speech_recognize = __webpack_require__(55106);
|
|
381
|
-
var speech_recognize_default = /*#__PURE__*/__webpack_require__.n(speech_recognize);
|
|
382
|
-
;// CONCATENATED MODULE: ./src/plugins/speech-recognize/config.ts
|
|
383
334
|
/*!
|
|
384
335
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
385
336
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
386
337
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
387
338
|
*/
|
|
339
|
+
module.exports = {
|
|
340
|
+
newline: 'newline',
|
|
341
|
+
delete: 'usunąć',
|
|
342
|
+
space: 'przestrzeń',
|
|
343
|
+
'Speech Recognize': 'Rozpoznawanie Mowy',
|
|
344
|
+
Sound: 'Dźwięk',
|
|
345
|
+
'Interim Results': 'Wyniki Okresowe'
|
|
346
|
+
};
|
|
388
347
|
|
|
389
348
|
|
|
349
|
+
/***/ }),
|
|
390
350
|
|
|
351
|
+
/***/ 11695:
|
|
352
|
+
/***/ (function(module) {
|
|
391
353
|
|
|
354
|
+
"use strict";
|
|
392
355
|
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
config/* Config.prototype.speechRecognize */.D.prototype.speechRecognize = {
|
|
396
|
-
api: SpeechRecognition,
|
|
397
|
-
sound: true,
|
|
398
|
-
continuous: true,
|
|
399
|
-
interimResults: true,
|
|
400
|
-
commands: {
|
|
401
|
-
'newline|enter': 'enter',
|
|
402
|
-
'delete|remove word|delete word': 'backspaceWordButton',
|
|
403
|
-
comma: 'inserthtml::,',
|
|
404
|
-
underline: 'inserthtml::_',
|
|
405
|
-
hyphen: 'inserthtml::-',
|
|
406
|
-
space: 'inserthtml:: ',
|
|
407
|
-
question: 'inserthtml::?',
|
|
408
|
-
dot: 'inserthtml::.',
|
|
409
|
-
'quote|quotes|open quote': "inserthtml::'",
|
|
410
|
-
'header|header h1': 'formatblock::h1',
|
|
411
|
-
'select all': 'selectall'
|
|
412
|
-
}
|
|
413
|
-
};
|
|
414
|
-
icon/* Icon.set */.J.set('speech-recognize', (speech_recognize_default()));
|
|
415
|
-
config/* Config.prototype.controls.speechRecognize */.D.prototype.controls.speechRecognize = {
|
|
416
|
-
isActive(jodit, _) {
|
|
417
|
-
const api = (0,data_bind/* dataBind */.q)(jodit, 'speech');
|
|
418
|
-
return Boolean(api?.isEnabled);
|
|
419
|
-
},
|
|
420
|
-
isDisabled(jodit) {
|
|
421
|
-
return !jodit.o.speechRecognize.api;
|
|
422
|
-
},
|
|
423
|
-
exec(jodit, current, { button, control }) {
|
|
424
|
-
const { api: Api, lang, continuous, interimResults, sound } = jodit.o.speechRecognize;
|
|
425
|
-
if (!Api) {
|
|
426
|
-
jodit.alert('Speech recognize API unsupported in your browser');
|
|
427
|
-
return;
|
|
428
|
-
}
|
|
429
|
-
let api = (0,data_bind/* dataBind */.q)(jodit, 'speech');
|
|
430
|
-
if (!api) {
|
|
431
|
-
const nativeApi = new Api();
|
|
432
|
-
api = new RecognizeManager(jodit.async, nativeApi);
|
|
433
|
-
api.lang = lang;
|
|
434
|
-
api.continuous = continuous;
|
|
435
|
-
api.interimResults = interimResults;
|
|
436
|
-
api.sound = sound;
|
|
437
|
-
(0,data_bind/* dataBind */.q)(jodit, 'speech', api);
|
|
438
|
-
api.on('pulse', (enable) => {
|
|
439
|
-
button.setMod('pulse', enable);
|
|
440
|
-
});
|
|
441
|
-
api.on('result', (text) => jodit.e.fire('speechRecognizeResult', text));
|
|
442
|
-
api.on('progress', (text) => jodit.e.fire('speechRecognizeProgressResult', text));
|
|
443
|
-
button.hookStatus('beforeDestruct', () => {
|
|
444
|
-
api.destruct();
|
|
445
|
-
});
|
|
446
|
-
}
|
|
447
|
-
if (control.args) {
|
|
448
|
-
const key = control.args[0];
|
|
449
|
-
if ((0,is_boolean/* isBoolean */.j)(api[key])) {
|
|
450
|
-
api[key] = !api[key];
|
|
451
|
-
if (api.isEnabled) {
|
|
452
|
-
api.restart();
|
|
453
|
-
}
|
|
454
|
-
return;
|
|
455
|
-
}
|
|
456
|
-
}
|
|
457
|
-
api.toggle();
|
|
458
|
-
button.state.activated = api.isEnabled;
|
|
459
|
-
},
|
|
460
|
-
name: 'speechRecognize',
|
|
461
|
-
command: 'toggleSpeechRecognize',
|
|
462
|
-
tooltip: 'Speech Recognize',
|
|
463
|
-
list: {
|
|
464
|
-
sound: 'Sound',
|
|
465
|
-
interimResults: 'Interim Results'
|
|
466
|
-
},
|
|
467
|
-
childTemplate(jodit, key, value) {
|
|
468
|
-
const api = (0,data_bind/* dataBind */.q)(jodit, 'speech'), checked = api?.[key] ?? jodit.o.speechRecognize[key];
|
|
469
|
-
return `<span class='jodit-speech-recognize__list-item'><input ${checked ? 'checked' : ''} class='jodit-checkbox' type='checkbox'> ${value}</span>`;
|
|
470
|
-
},
|
|
471
|
-
mods: {
|
|
472
|
-
stroke: false
|
|
473
|
-
}
|
|
474
|
-
};
|
|
475
|
-
|
|
476
|
-
;// CONCATENATED MODULE: ./src/plugins/speech-recognize/speech-recognize.ts
|
|
477
356
|
/*!
|
|
478
357
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
479
358
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
480
359
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
481
360
|
*/
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
361
|
+
module.exports = {
|
|
362
|
+
newline: 'linha',
|
|
363
|
+
delete: 'excluir',
|
|
364
|
+
space: 'espaco',
|
|
365
|
+
'Speech Recognize': 'Discurso Reconhecer',
|
|
366
|
+
Sound: 'Som',
|
|
367
|
+
'Interim Results': 'Resultados Provisórios'
|
|
368
|
+
};
|
|
493
369
|
|
|
494
370
|
|
|
371
|
+
/***/ }),
|
|
495
372
|
|
|
373
|
+
/***/ 52415:
|
|
374
|
+
/***/ (function(module) {
|
|
496
375
|
|
|
376
|
+
"use strict";
|
|
497
377
|
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
if (commands) {
|
|
512
|
-
(0,global/* extendLang */.xl)(langs_namespaceObject);
|
|
513
|
-
(0,utils/* keys */.XP)(commands, false).forEach(words => {
|
|
514
|
-
const keys = words.split('|');
|
|
515
|
-
keys.forEach(key => {
|
|
516
|
-
key = key.trim().toLowerCase();
|
|
517
|
-
this._commandToWord[key] = commands[words];
|
|
518
|
-
const translatedKeys = jodit.i18n(key);
|
|
519
|
-
if (translatedKeys !== key) {
|
|
520
|
-
translatedKeys.split('|').forEach(translatedKey => {
|
|
521
|
-
this._commandToWord[translatedKey.trim().toLowerCase()] = commands[words].trim();
|
|
522
|
-
});
|
|
523
|
-
}
|
|
524
|
-
});
|
|
525
|
-
});
|
|
526
|
-
}
|
|
527
|
-
}
|
|
528
|
-
beforeDestruct(jodit) { }
|
|
529
|
-
onSpeechRecognizeProgressResult(text) {
|
|
530
|
-
if (!this.messagePopup) {
|
|
531
|
-
this.messagePopup = this.j.create.div('jodit-speech-recognize__popup');
|
|
532
|
-
}
|
|
533
|
-
this.j.workplace.appendChild(this.messagePopup);
|
|
534
|
-
this.j.async.setTimeout(() => {
|
|
535
|
-
dom/* Dom.safeRemove */.i.safeRemove(this.messagePopup);
|
|
536
|
-
}, {
|
|
537
|
-
label: 'onSpeechRecognizeProgressResult',
|
|
538
|
-
timeout: 1000
|
|
539
|
-
});
|
|
540
|
-
this.messagePopup.innerText = text + '|';
|
|
541
|
-
}
|
|
542
|
-
onSpeechRecognizeResult(text) {
|
|
543
|
-
const { j } = this, { s } = j;
|
|
544
|
-
dom/* Dom.safeRemove */.i.safeRemove(this.messagePopup);
|
|
545
|
-
if (!this._checkCommand(text)) {
|
|
546
|
-
const { range } = s, node = s.current();
|
|
547
|
-
if (s.isCollapsed() &&
|
|
548
|
-
dom/* Dom.isText */.i.isText(node) &&
|
|
549
|
-
dom/* Dom.isOrContains */.i.isOrContains(j.editor, node) &&
|
|
550
|
-
node.nodeValue) {
|
|
551
|
-
const sentence = node.nodeValue;
|
|
552
|
-
node.nodeValue =
|
|
553
|
-
sentence +
|
|
554
|
-
(/[\u00A0 ]\uFEFF*$/.test(sentence) ? '' : ' ') +
|
|
555
|
-
text;
|
|
556
|
-
range.setStartAfter(node);
|
|
557
|
-
s.selectRange(range);
|
|
558
|
-
j.synchronizeValues();
|
|
559
|
-
}
|
|
560
|
-
else {
|
|
561
|
-
s.insertHTML(text);
|
|
562
|
-
}
|
|
563
|
-
}
|
|
564
|
-
}
|
|
565
|
-
_checkCommand(command) {
|
|
566
|
-
command = command.toLowerCase().replace(/\./g, '');
|
|
567
|
-
if (this._commandToWord[command]) {
|
|
568
|
-
execSpellCommand(this.j, this._commandToWord[command]);
|
|
569
|
-
return true;
|
|
570
|
-
}
|
|
571
|
-
return false;
|
|
572
|
-
}
|
|
573
|
-
}
|
|
574
|
-
(0,tslib_es6/* __decorate */.gn)([
|
|
575
|
-
(0,watch/* watch */.YP)(':speechRecognizeProgressResult'),
|
|
576
|
-
(0,debounce/* debounce */.D)()
|
|
577
|
-
], SpeechRecognizeNative.prototype, "onSpeechRecognizeProgressResult", null);
|
|
578
|
-
(0,tslib_es6/* __decorate */.gn)([
|
|
579
|
-
(0,watch/* watch */.YP)(':speechRecognizeResult')
|
|
580
|
-
], SpeechRecognizeNative.prototype, "onSpeechRecognizeResult", null);
|
|
581
|
-
if (typeof Jodit !== 'undefined') {
|
|
582
|
-
Jodit.plugins.add('speech-recognize', SpeechRecognizeNative);
|
|
583
|
-
}
|
|
378
|
+
/*!
|
|
379
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
380
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
381
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
382
|
+
*/
|
|
383
|
+
module.exports = {
|
|
384
|
+
newline: 'новая строка|перенос|энтер',
|
|
385
|
+
delete: 'удалить',
|
|
386
|
+
space: 'пробел',
|
|
387
|
+
'Speech Recognize': 'Распознавание речи',
|
|
388
|
+
Sound: 'Звук',
|
|
389
|
+
'Interim Results': 'Промежуточные результаты'
|
|
390
|
+
};
|
|
584
391
|
|
|
585
392
|
|
|
586
393
|
/***/ }),
|
|
587
394
|
|
|
588
|
-
/***/
|
|
395
|
+
/***/ 14569:
|
|
589
396
|
/***/ (function(module) {
|
|
590
397
|
|
|
398
|
+
"use strict";
|
|
399
|
+
|
|
591
400
|
/*!
|
|
592
401
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
593
402
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
594
403
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
595
404
|
*/
|
|
596
|
-
|
|
597
405
|
module.exports = {
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
406
|
+
newline: 'yeni satır',
|
|
407
|
+
delete: 'silmek',
|
|
408
|
+
space: 'uzay',
|
|
409
|
+
'Speech Recognize': 'Konuşma Tanıma',
|
|
410
|
+
Sound: 'Ses',
|
|
411
|
+
'Interim Results': 'Ara Sonuçlar'
|
|
604
412
|
};
|
|
605
413
|
|
|
606
414
|
|
|
607
415
|
/***/ }),
|
|
608
416
|
|
|
609
|
-
/***/
|
|
417
|
+
/***/ 58649:
|
|
610
418
|
/***/ (function(module) {
|
|
611
419
|
|
|
420
|
+
"use strict";
|
|
421
|
+
|
|
612
422
|
/*!
|
|
613
423
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
614
424
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
615
425
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
616
426
|
*/
|
|
617
|
-
|
|
618
427
|
module.exports = {
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
428
|
+
newline: '新行',
|
|
429
|
+
delete: '删除',
|
|
430
|
+
space: '空间',
|
|
431
|
+
'Speech Recognize': '言语识别',
|
|
432
|
+
Sound: '声音',
|
|
433
|
+
'Interim Results': '中期业绩'
|
|
625
434
|
};
|
|
626
435
|
|
|
627
436
|
|
|
628
437
|
/***/ }),
|
|
629
438
|
|
|
630
|
-
/***/
|
|
439
|
+
/***/ 66040:
|
|
631
440
|
/***/ (function(module) {
|
|
632
441
|
|
|
442
|
+
"use strict";
|
|
443
|
+
|
|
633
444
|
/*!
|
|
634
445
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
635
446
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
636
447
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
637
448
|
*/
|
|
638
|
-
|
|
639
449
|
module.exports = {
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
450
|
+
newline: 'นิวไลน์',
|
|
451
|
+
delete: 'ลบ',
|
|
452
|
+
space: 'พื้นที่',
|
|
453
|
+
'Speech Recognize': 'การรับรู้คำพูด',
|
|
454
|
+
Sound: 'เสียง',
|
|
455
|
+
'Interim Results': 'ผลระหว่างกาล'
|
|
646
456
|
};
|
|
647
457
|
|
|
648
458
|
|
|
649
459
|
/***/ }),
|
|
650
460
|
|
|
651
|
-
/***/
|
|
652
|
-
/***/ (function(
|
|
461
|
+
/***/ 29204:
|
|
462
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
463
|
+
|
|
464
|
+
"use strict";
|
|
465
|
+
// ESM COMPAT FLAG
|
|
466
|
+
__webpack_require__.r(__webpack_exports__);
|
|
467
|
+
|
|
468
|
+
// EXPORTS
|
|
469
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
470
|
+
"SpeechRecognizeNative": function() { return /* binding */ SpeechRecognizeNative; }
|
|
471
|
+
});
|
|
653
472
|
|
|
473
|
+
// NAMESPACE OBJECT: ./src/plugins/speech-recognize/langs/index.ts
|
|
474
|
+
var langs_namespaceObject = {};
|
|
475
|
+
__webpack_require__.r(langs_namespaceObject);
|
|
476
|
+
__webpack_require__.d(langs_namespaceObject, {
|
|
477
|
+
"ar": function() { return ar; },
|
|
478
|
+
"cs_cz": function() { return cs_cz; },
|
|
479
|
+
"de": function() { return de; },
|
|
480
|
+
"es": function() { return es; },
|
|
481
|
+
"fa": function() { return fa; },
|
|
482
|
+
"fr": function() { return fr; },
|
|
483
|
+
"he": function() { return he; },
|
|
484
|
+
"hu": function() { return hu; },
|
|
485
|
+
"id": function() { return id; },
|
|
486
|
+
"it": function() { return it; },
|
|
487
|
+
"ja": function() { return ja; },
|
|
488
|
+
"ko": function() { return ko; },
|
|
489
|
+
"mn": function() { return mn; },
|
|
490
|
+
"nl": function() { return nl; },
|
|
491
|
+
"pl": function() { return pl; },
|
|
492
|
+
"pt_br": function() { return pt_br; },
|
|
493
|
+
"ru": function() { return ru; },
|
|
494
|
+
"tr": function() { return tr; },
|
|
495
|
+
"zh_cn": function() { return zh_cn; },
|
|
496
|
+
"zh_tw": function() { return zh_tw; }
|
|
497
|
+
});
|
|
498
|
+
|
|
499
|
+
// EXTERNAL MODULE: ./node_modules/tslib/tslib.es6.js
|
|
500
|
+
var tslib_es6 = __webpack_require__(85699);
|
|
501
|
+
// EXTERNAL MODULE: ./src/core/plugin/index.ts
|
|
502
|
+
var core_plugin = __webpack_require__(7331);
|
|
503
|
+
// EXTERNAL MODULE: ./src/core/decorators/watch/watch.ts
|
|
504
|
+
var watch = __webpack_require__(69082);
|
|
505
|
+
// EXTERNAL MODULE: ./src/core/helpers/utils/utils.ts
|
|
506
|
+
var utils = __webpack_require__(87398);
|
|
507
|
+
// EXTERNAL MODULE: ./src/core/global.ts
|
|
508
|
+
var global = __webpack_require__(79102);
|
|
509
|
+
// EXTERNAL MODULE: ./src/core/dom/dom.ts
|
|
510
|
+
var dom = __webpack_require__(9162);
|
|
511
|
+
// EXTERNAL MODULE: ./src/core/decorators/debounce/debounce.ts
|
|
512
|
+
var debounce = __webpack_require__(62294);
|
|
513
|
+
;// CONCATENATED MODULE: ./src/plugins/speech-recognize/helpers/exec-spell-command.ts
|
|
514
|
+
/*!
|
|
515
|
+
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
516
|
+
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
517
|
+
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
518
|
+
*/
|
|
519
|
+
function execSpellCommand(jodit, commandSentence) {
|
|
520
|
+
const [command, value] = commandSentence.split('::');
|
|
521
|
+
jodit.execCommand(command, null, value);
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
// EXTERNAL MODULE: ./src/plugins/speech-recognize/langs/ar.js
|
|
525
|
+
var ar = __webpack_require__(57998);
|
|
526
|
+
// EXTERNAL MODULE: ./src/plugins/speech-recognize/langs/cs_cz.js
|
|
527
|
+
var cs_cz = __webpack_require__(90833);
|
|
528
|
+
// EXTERNAL MODULE: ./src/plugins/speech-recognize/langs/de.js
|
|
529
|
+
var de = __webpack_require__(36373);
|
|
530
|
+
// EXTERNAL MODULE: ./src/plugins/speech-recognize/langs/es.js
|
|
531
|
+
var es = __webpack_require__(97192);
|
|
532
|
+
// EXTERNAL MODULE: ./src/plugins/speech-recognize/langs/fa.js
|
|
533
|
+
var fa = __webpack_require__(6043);
|
|
534
|
+
// EXTERNAL MODULE: ./src/plugins/speech-recognize/langs/fr.js
|
|
535
|
+
var fr = __webpack_require__(76305);
|
|
536
|
+
// EXTERNAL MODULE: ./src/plugins/speech-recognize/langs/he.js
|
|
537
|
+
var he = __webpack_require__(45834);
|
|
538
|
+
// EXTERNAL MODULE: ./src/plugins/speech-recognize/langs/hu.js
|
|
539
|
+
var hu = __webpack_require__(40509);
|
|
540
|
+
// EXTERNAL MODULE: ./src/plugins/speech-recognize/langs/id.js
|
|
541
|
+
var id = __webpack_require__(75720);
|
|
542
|
+
// EXTERNAL MODULE: ./src/plugins/speech-recognize/langs/it.js
|
|
543
|
+
var it = __webpack_require__(88369);
|
|
544
|
+
// EXTERNAL MODULE: ./src/plugins/speech-recognize/langs/ja.js
|
|
545
|
+
var ja = __webpack_require__(30878);
|
|
546
|
+
// EXTERNAL MODULE: ./src/plugins/speech-recognize/langs/ko.js
|
|
547
|
+
var ko = __webpack_require__(37780);
|
|
548
|
+
// EXTERNAL MODULE: ./src/plugins/speech-recognize/langs/mn.js
|
|
549
|
+
var mn = __webpack_require__(4105);
|
|
550
|
+
// EXTERNAL MODULE: ./src/plugins/speech-recognize/langs/nl.js
|
|
551
|
+
var nl = __webpack_require__(2589);
|
|
552
|
+
// EXTERNAL MODULE: ./src/plugins/speech-recognize/langs/pl.js
|
|
553
|
+
var pl = __webpack_require__(72556);
|
|
554
|
+
// EXTERNAL MODULE: ./src/plugins/speech-recognize/langs/pt_br.js
|
|
555
|
+
var pt_br = __webpack_require__(11695);
|
|
556
|
+
// EXTERNAL MODULE: ./src/plugins/speech-recognize/langs/ru.js
|
|
557
|
+
var ru = __webpack_require__(52415);
|
|
558
|
+
// EXTERNAL MODULE: ./src/plugins/speech-recognize/langs/tr.js
|
|
559
|
+
var tr = __webpack_require__(14569);
|
|
560
|
+
// EXTERNAL MODULE: ./src/plugins/speech-recognize/langs/zh_cn.js
|
|
561
|
+
var zh_cn = __webpack_require__(58649);
|
|
562
|
+
// EXTERNAL MODULE: ./src/plugins/speech-recognize/langs/zh_tw.js
|
|
563
|
+
var zh_tw = __webpack_require__(66040);
|
|
564
|
+
;// CONCATENATED MODULE: ./src/plugins/speech-recognize/langs/index.ts
|
|
654
565
|
/*!
|
|
655
566
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
656
567
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
657
568
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
658
569
|
*/
|
|
659
570
|
|
|
660
|
-
module.exports = {
|
|
661
|
-
newline: 'nueva línea',
|
|
662
|
-
delete: 'eliminar',
|
|
663
|
-
space: 'espacio',
|
|
664
|
-
'Speech Recognize': 'Reconocimiento de Voz',
|
|
665
|
-
Sound: 'Sonido',
|
|
666
|
-
'Interim Results': 'Resultados Provisionales'
|
|
667
|
-
};
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
/***/ }),
|
|
671
|
-
|
|
672
|
-
/***/ 53808:
|
|
673
|
-
/***/ (function(module) {
|
|
674
571
|
|
|
675
|
-
/*!
|
|
676
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
677
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
678
|
-
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
679
|
-
*/
|
|
680
572
|
|
|
681
|
-
module.exports = {
|
|
682
|
-
newline: 'خط جدید',
|
|
683
|
-
delete: 'حذف',
|
|
684
|
-
space: 'فضا',
|
|
685
|
-
'Speech Recognize': 'گفتار را تشخیص دهید',
|
|
686
|
-
Sound: 'صدا',
|
|
687
|
-
'Interim Results': 'نتایج موقت'
|
|
688
|
-
};
|
|
689
573
|
|
|
690
574
|
|
|
691
|
-
/***/ }),
|
|
692
575
|
|
|
693
|
-
/***/ 48954:
|
|
694
|
-
/***/ (function(module) {
|
|
695
576
|
|
|
696
|
-
/*!
|
|
697
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
698
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
699
|
-
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
700
|
-
*/
|
|
701
577
|
|
|
702
|
-
module.exports = {
|
|
703
|
-
newline: 'nouvelle ligne',
|
|
704
|
-
delete: 'supprimer',
|
|
705
|
-
space: 'espace',
|
|
706
|
-
'Speech Recognize': 'Reconnaissance Vocale',
|
|
707
|
-
Sound: 'Son',
|
|
708
|
-
'Interim Results': 'Résultats Intermédiaires'
|
|
709
|
-
};
|
|
710
578
|
|
|
711
579
|
|
|
712
|
-
/***/ }),
|
|
713
580
|
|
|
714
|
-
/***/ 14694:
|
|
715
|
-
/***/ (function(module) {
|
|
716
581
|
|
|
717
|
-
/*!
|
|
718
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
719
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
720
|
-
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
721
|
-
*/
|
|
722
582
|
|
|
723
|
-
module.exports = {
|
|
724
|
-
newline: 'חדשות',
|
|
725
|
-
delete: 'מחק',
|
|
726
|
-
space: 'שטח',
|
|
727
|
-
'Speech Recognize': 'דיבור מזהה',
|
|
728
|
-
Sound: 'קול',
|
|
729
|
-
'Interim Results': 'תוצאות ביניים'
|
|
730
|
-
};
|
|
731
583
|
|
|
732
584
|
|
|
733
|
-
/***/ }),
|
|
734
585
|
|
|
735
|
-
/***/ 67381:
|
|
736
|
-
/***/ (function(module) {
|
|
737
586
|
|
|
738
|
-
/*!
|
|
739
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
740
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
741
|
-
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
742
|
-
*/
|
|
743
587
|
|
|
744
|
-
module.exports = {
|
|
745
|
-
newline: 'újsor',
|
|
746
|
-
delete: 'törlés',
|
|
747
|
-
space: 'tér',
|
|
748
|
-
'Speech Recognize': 'A Beszéd Felismeri',
|
|
749
|
-
Sound: 'Hang',
|
|
750
|
-
'Interim Results': 'Időközi Eredmények'
|
|
751
|
-
};
|
|
752
588
|
|
|
753
589
|
|
|
754
|
-
/***/ }),
|
|
755
590
|
|
|
756
|
-
/***/ 99549:
|
|
757
|
-
/***/ (function(module) {
|
|
758
591
|
|
|
592
|
+
// EXTERNAL MODULE: ./src/config.ts
|
|
593
|
+
var config = __webpack_require__(37446);
|
|
594
|
+
// EXTERNAL MODULE: ./src/core/helpers/utils/data-bind.ts
|
|
595
|
+
var data_bind = __webpack_require__(25920);
|
|
596
|
+
// EXTERNAL MODULE: ./src/core/helpers/checker/is-boolean.ts
|
|
597
|
+
var is_boolean = __webpack_require__(88751);
|
|
598
|
+
// EXTERNAL MODULE: ./src/core/ui/icon.ts
|
|
599
|
+
var icon = __webpack_require__(30052);
|
|
600
|
+
// EXTERNAL MODULE: ./src/core/event-emitter/eventify.ts
|
|
601
|
+
var eventify = __webpack_require__(3569);
|
|
602
|
+
// EXTERNAL MODULE: ./src/core/decorators/index.ts + 7 modules
|
|
603
|
+
var decorators = __webpack_require__(98928);
|
|
604
|
+
;// CONCATENATED MODULE: ./src/plugins/speech-recognize/constants.ts
|
|
759
605
|
/*!
|
|
760
606
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
761
607
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
762
608
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
763
609
|
*/
|
|
610
|
+
/**
|
|
611
|
+
* @module plugins/speech-recognize
|
|
612
|
+
* @internal
|
|
613
|
+
*/
|
|
614
|
+
const PII = 440;
|
|
615
|
+
const WARN = 940;
|
|
764
616
|
|
|
765
|
-
|
|
766
|
-
newline: 'newline',
|
|
767
|
-
delete: 'Hapus',
|
|
768
|
-
space: 'ruang',
|
|
769
|
-
'Speech Recognize': 'Pidato Mengenali',
|
|
770
|
-
Sound: 'Suara',
|
|
771
|
-
'Interim Results': 'Hasil Sementara'
|
|
772
|
-
};
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
/***/ }),
|
|
776
|
-
|
|
777
|
-
/***/ 28428:
|
|
778
|
-
/***/ (function(module) {
|
|
779
|
-
|
|
617
|
+
;// CONCATENATED MODULE: ./src/plugins/speech-recognize/helpers/sound.ts
|
|
780
618
|
/*!
|
|
781
619
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
782
620
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
783
621
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
784
622
|
*/
|
|
623
|
+
/**
|
|
624
|
+
* @module plugins/speech-recognize
|
|
625
|
+
*/
|
|
785
626
|
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
}
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
627
|
+
/**
|
|
628
|
+
* @internal
|
|
629
|
+
*/
|
|
630
|
+
function sound({ sec = 0.1, frequency = PII, gain = 0.1, type = 'sine' } = {}) {
|
|
631
|
+
if (typeof window.AudioContext === 'undefined' &&
|
|
632
|
+
typeof window.webkitAudioContext === 'undefined') {
|
|
633
|
+
return;
|
|
634
|
+
}
|
|
635
|
+
// one context per document
|
|
636
|
+
const context = new (window.AudioContext ||
|
|
637
|
+
window.webkitAudioContext)();
|
|
638
|
+
const vol = context.createGain();
|
|
639
|
+
const osc = context.createOscillator();
|
|
640
|
+
osc.type = type;
|
|
641
|
+
osc.frequency.value = frequency; // Hz
|
|
642
|
+
osc.connect(vol);
|
|
643
|
+
vol.connect(context.destination);
|
|
644
|
+
osc.start(); // start the oscillator
|
|
645
|
+
osc.stop(context.currentTime + sec);
|
|
646
|
+
vol.gain.value = gain;
|
|
647
|
+
}
|
|
800
648
|
|
|
649
|
+
;// CONCATENATED MODULE: ./src/plugins/speech-recognize/helpers/recognize-manager.ts
|
|
801
650
|
/*!
|
|
802
651
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
803
652
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
804
653
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
805
654
|
*/
|
|
806
|
-
|
|
807
|
-
module.exports = {
|
|
808
|
-
newline: '改行',
|
|
809
|
-
delete: '削除',
|
|
810
|
-
space: 'スペース',
|
|
811
|
-
'Speech Recognize': '音声認識',
|
|
812
|
-
Sound: '音',
|
|
813
|
-
'Interim Results': '中間結果'
|
|
814
|
-
};
|
|
655
|
+
var RecognizeManager_1;
|
|
815
656
|
|
|
816
657
|
|
|
817
|
-
/***/ }),
|
|
818
658
|
|
|
819
|
-
/***/ 96929:
|
|
820
|
-
/***/ (function(module) {
|
|
821
659
|
|
|
822
|
-
/*!
|
|
823
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
824
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
825
|
-
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
826
|
-
*/
|
|
827
660
|
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
661
|
+
let RecognizeManager = RecognizeManager_1 = class RecognizeManager extends eventify/* Eventify */.a {
|
|
662
|
+
set lang(v) {
|
|
663
|
+
this._lang = v;
|
|
664
|
+
this._api.lang = v;
|
|
665
|
+
}
|
|
666
|
+
get lang() {
|
|
667
|
+
return this._lang;
|
|
668
|
+
}
|
|
669
|
+
set continuous(v) {
|
|
670
|
+
this._continuous = v;
|
|
671
|
+
this._api.continuous = v;
|
|
672
|
+
}
|
|
673
|
+
get continuous() {
|
|
674
|
+
return this._continuous;
|
|
675
|
+
}
|
|
676
|
+
set interimResults(v) {
|
|
677
|
+
this._interimResults = v;
|
|
678
|
+
this._api.interimResults = v;
|
|
679
|
+
}
|
|
680
|
+
get interimResults() {
|
|
681
|
+
return this._interimResults;
|
|
682
|
+
}
|
|
683
|
+
constructor(async, api) {
|
|
684
|
+
super();
|
|
685
|
+
this.async = async;
|
|
686
|
+
this._continuous = false;
|
|
687
|
+
this._interimResults = false;
|
|
688
|
+
this.sound = true;
|
|
689
|
+
this._isEnabled = false;
|
|
690
|
+
this._restartTimeout = 0;
|
|
691
|
+
this._onSpeechStart = (e) => {
|
|
692
|
+
if (!this._isEnabled) {
|
|
693
|
+
return;
|
|
694
|
+
}
|
|
695
|
+
this.async.clearTimeout(this._restartTimeout);
|
|
696
|
+
this._restartTimeout = this.async.setTimeout(() => {
|
|
697
|
+
this.restart();
|
|
698
|
+
this.emit('pulse', false);
|
|
699
|
+
this._makeSound(WARN);
|
|
700
|
+
}, 5000);
|
|
701
|
+
this.emit('pulse', true);
|
|
702
|
+
};
|
|
703
|
+
this._progressTimeout = 0;
|
|
704
|
+
this._api = api;
|
|
705
|
+
RecognizeManager_1._instances.add(this);
|
|
706
|
+
}
|
|
707
|
+
destruct() {
|
|
708
|
+
this.stop();
|
|
709
|
+
RecognizeManager_1._instances.delete(this);
|
|
710
|
+
super.destruct();
|
|
711
|
+
}
|
|
712
|
+
get isEnabled() {
|
|
713
|
+
return this._isEnabled;
|
|
714
|
+
}
|
|
715
|
+
start() {
|
|
716
|
+
if (this._isEnabled) {
|
|
717
|
+
return;
|
|
718
|
+
}
|
|
719
|
+
this._isEnabled = true;
|
|
720
|
+
RecognizeManager_1._instances.forEach(instance => {
|
|
721
|
+
if (instance !== this) {
|
|
722
|
+
instance.stop();
|
|
723
|
+
}
|
|
724
|
+
});
|
|
725
|
+
this._api.start();
|
|
726
|
+
this.__on('speechstart', this._onSpeechStart)
|
|
727
|
+
.__on('error', this._onError)
|
|
728
|
+
.__on('result', this._onResult);
|
|
729
|
+
}
|
|
730
|
+
stop() {
|
|
731
|
+
if (!this._isEnabled) {
|
|
732
|
+
return;
|
|
733
|
+
}
|
|
734
|
+
try {
|
|
735
|
+
this._api.abort();
|
|
736
|
+
this._api.stop();
|
|
737
|
+
}
|
|
738
|
+
catch { }
|
|
739
|
+
this.__off('speechstart', this._onSpeechStart)
|
|
740
|
+
.__off('error', this._onError)
|
|
741
|
+
.__off('result', this._onResult);
|
|
742
|
+
this.async.clearTimeout(this._restartTimeout);
|
|
743
|
+
this._isEnabled = false;
|
|
744
|
+
this.emit('pulse', false);
|
|
745
|
+
}
|
|
746
|
+
toggle() {
|
|
747
|
+
if (!this._isEnabled) {
|
|
748
|
+
this.start();
|
|
749
|
+
}
|
|
750
|
+
else {
|
|
751
|
+
this.stop();
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
restart() {
|
|
755
|
+
this.stop();
|
|
756
|
+
this.start();
|
|
757
|
+
}
|
|
758
|
+
__on(event, callback) {
|
|
759
|
+
this._api.addEventListener(event, callback);
|
|
760
|
+
return this;
|
|
761
|
+
}
|
|
762
|
+
__off(event, callback) {
|
|
763
|
+
this._api.removeEventListener(event, callback);
|
|
764
|
+
return this;
|
|
765
|
+
}
|
|
766
|
+
_onResult(e) {
|
|
767
|
+
if (!this._isEnabled) {
|
|
768
|
+
return;
|
|
769
|
+
}
|
|
770
|
+
this.async.clearTimeout(this._progressTimeout);
|
|
771
|
+
const resultItem = e.results.item(e.resultIndex);
|
|
772
|
+
const { transcript } = resultItem.item(0);
|
|
773
|
+
const resultHandler = () => {
|
|
774
|
+
try {
|
|
775
|
+
this.async.clearTimeout(this._restartTimeout);
|
|
776
|
+
this.emit('result', transcript);
|
|
777
|
+
}
|
|
778
|
+
catch { }
|
|
779
|
+
this.restart();
|
|
780
|
+
this.emit('pulse', false);
|
|
781
|
+
this._makeSound(PII);
|
|
782
|
+
};
|
|
783
|
+
if (resultItem.isFinal === false) {
|
|
784
|
+
this.emit('progress', transcript);
|
|
785
|
+
this._progressTimeout = this.async.setTimeout(resultHandler, 500);
|
|
786
|
+
return;
|
|
787
|
+
}
|
|
788
|
+
resultHandler();
|
|
789
|
+
}
|
|
790
|
+
_onError() {
|
|
791
|
+
if (!this._isEnabled) {
|
|
792
|
+
return;
|
|
793
|
+
}
|
|
794
|
+
this._makeSound(WARN);
|
|
795
|
+
this.emit('pulse', false);
|
|
796
|
+
this.restart();
|
|
797
|
+
}
|
|
798
|
+
_makeSound(frequency) {
|
|
799
|
+
if (this.sound) {
|
|
800
|
+
sound({ frequency });
|
|
801
|
+
}
|
|
802
|
+
}
|
|
835
803
|
};
|
|
804
|
+
RecognizeManager._instances = new Set();
|
|
805
|
+
RecognizeManager = RecognizeManager_1 = (0,tslib_es6/* __decorate */.gn)([
|
|
806
|
+
decorators.autobind
|
|
807
|
+
], RecognizeManager);
|
|
836
808
|
|
|
837
809
|
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
/***/ 26781:
|
|
841
|
-
/***/ (function(module) {
|
|
842
|
-
|
|
810
|
+
;// CONCATENATED MODULE: ./src/plugins/speech-recognize/helpers/api.ts
|
|
843
811
|
/*!
|
|
844
812
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
845
813
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
846
814
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
847
815
|
*/
|
|
816
|
+
const SpeechRecognition = window.SpeechRecognition ||
|
|
817
|
+
window.webkitSpeechRecognition;
|
|
848
818
|
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
'Speech Recognize': 'Дуу хоолой таних',
|
|
854
|
-
Sound: 'Дуу',
|
|
855
|
-
'Interim Results': 'Түр зуурын үр дүн'
|
|
856
|
-
};
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
/***/ }),
|
|
860
|
-
|
|
861
|
-
/***/ 58499:
|
|
862
|
-
/***/ (function(module) {
|
|
863
|
-
|
|
819
|
+
// EXTERNAL MODULE: ./src/plugins/speech-recognize/speech-recognize.svg
|
|
820
|
+
var speech_recognize = __webpack_require__(55106);
|
|
821
|
+
var speech_recognize_default = /*#__PURE__*/__webpack_require__.n(speech_recognize);
|
|
822
|
+
;// CONCATENATED MODULE: ./src/plugins/speech-recognize/config.ts
|
|
864
823
|
/*!
|
|
865
824
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
866
825
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
867
826
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
868
827
|
*/
|
|
869
828
|
|
|
870
|
-
module.exports = {
|
|
871
|
-
newline: 'regel',
|
|
872
|
-
delete: 'verwijderen',
|
|
873
|
-
space: 'ruimte',
|
|
874
|
-
'Speech Recognize': 'Spraak Herkennen',
|
|
875
|
-
Sound: 'Geluid',
|
|
876
|
-
'Interim Results': 'Tussentijdse Resultaten'
|
|
877
|
-
};
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
/***/ }),
|
|
881
|
-
|
|
882
|
-
/***/ 59430:
|
|
883
|
-
/***/ (function(module) {
|
|
884
|
-
|
|
885
|
-
/*!
|
|
886
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
887
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
888
|
-
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
889
|
-
*/
|
|
890
829
|
|
|
891
|
-
module.exports = {
|
|
892
|
-
newline: 'newline',
|
|
893
|
-
delete: 'usunąć',
|
|
894
|
-
space: 'przestrzeń',
|
|
895
|
-
'Speech Recognize': 'Rozpoznawanie Mowy',
|
|
896
|
-
Sound: 'Dźwięk',
|
|
897
|
-
'Interim Results': 'Wyniki Okresowe'
|
|
898
|
-
};
|
|
899
830
|
|
|
900
831
|
|
|
901
|
-
/***/ }),
|
|
902
832
|
|
|
903
|
-
/***/ 70297:
|
|
904
|
-
/***/ (function(module) {
|
|
905
833
|
|
|
906
|
-
/*!
|
|
907
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
908
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
909
|
-
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
910
|
-
*/
|
|
911
834
|
|
|
912
|
-
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
835
|
+
config/* Config.prototype.speechRecognize */.D.prototype.speechRecognize = {
|
|
836
|
+
api: SpeechRecognition,
|
|
837
|
+
sound: true,
|
|
838
|
+
continuous: true,
|
|
839
|
+
interimResults: true,
|
|
840
|
+
commands: {
|
|
841
|
+
'newline|enter': 'enter',
|
|
842
|
+
'delete|remove word|delete word': 'backspaceWordButton',
|
|
843
|
+
comma: 'inserthtml::,',
|
|
844
|
+
underline: 'inserthtml::_',
|
|
845
|
+
hyphen: 'inserthtml::-',
|
|
846
|
+
space: 'inserthtml:: ',
|
|
847
|
+
question: 'inserthtml::?',
|
|
848
|
+
dot: 'inserthtml::.',
|
|
849
|
+
'quote|quotes|open quote': "inserthtml::'",
|
|
850
|
+
'header|header h1': 'formatblock::h1',
|
|
851
|
+
'select all': 'selectall'
|
|
852
|
+
}
|
|
919
853
|
};
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
854
|
+
icon/* Icon.set */.J.set('speech-recognize', (speech_recognize_default()));
|
|
855
|
+
config/* Config.prototype.controls.speechRecognize */.D.prototype.controls.speechRecognize = {
|
|
856
|
+
isActive(jodit, _) {
|
|
857
|
+
const api = (0,data_bind/* dataBind */.q)(jodit, 'speech');
|
|
858
|
+
return Boolean(api?.isEnabled);
|
|
859
|
+
},
|
|
860
|
+
isDisabled(jodit) {
|
|
861
|
+
return !jodit.o.speechRecognize.api;
|
|
862
|
+
},
|
|
863
|
+
exec(jodit, current, { button, control }) {
|
|
864
|
+
const { api: Api, lang, continuous, interimResults, sound } = jodit.o.speechRecognize;
|
|
865
|
+
if (!Api) {
|
|
866
|
+
jodit.alert('Speech recognize API unsupported in your browser');
|
|
867
|
+
return;
|
|
868
|
+
}
|
|
869
|
+
let api = (0,data_bind/* dataBind */.q)(jodit, 'speech');
|
|
870
|
+
if (!api) {
|
|
871
|
+
const nativeApi = new Api();
|
|
872
|
+
api = new RecognizeManager(jodit.async, nativeApi);
|
|
873
|
+
api.lang = lang;
|
|
874
|
+
api.continuous = continuous;
|
|
875
|
+
api.interimResults = interimResults;
|
|
876
|
+
api.sound = sound;
|
|
877
|
+
(0,data_bind/* dataBind */.q)(jodit, 'speech', api);
|
|
878
|
+
api.on('pulse', (enable) => {
|
|
879
|
+
button.setMod('pulse', enable);
|
|
880
|
+
});
|
|
881
|
+
api.on('result', (text) => jodit.e.fire('speechRecognizeResult', text));
|
|
882
|
+
api.on('progress', (text) => jodit.e.fire('speechRecognizeProgressResult', text));
|
|
883
|
+
button.hookStatus('beforeDestruct', () => {
|
|
884
|
+
api.destruct();
|
|
885
|
+
});
|
|
886
|
+
}
|
|
887
|
+
if (control.args) {
|
|
888
|
+
const key = control.args[0];
|
|
889
|
+
if ((0,is_boolean/* isBoolean */.j)(api[key])) {
|
|
890
|
+
api[key] = !api[key];
|
|
891
|
+
if (api.isEnabled) {
|
|
892
|
+
api.restart();
|
|
893
|
+
}
|
|
894
|
+
return;
|
|
895
|
+
}
|
|
896
|
+
}
|
|
897
|
+
api.toggle();
|
|
898
|
+
button.state.activated = api.isEnabled;
|
|
899
|
+
},
|
|
900
|
+
name: 'speechRecognize',
|
|
901
|
+
command: 'toggleSpeechRecognize',
|
|
902
|
+
tooltip: 'Speech Recognize',
|
|
903
|
+
list: {
|
|
904
|
+
sound: 'Sound',
|
|
905
|
+
interimResults: 'Interim Results'
|
|
906
|
+
},
|
|
907
|
+
childTemplate(jodit, key, value) {
|
|
908
|
+
const api = (0,data_bind/* dataBind */.q)(jodit, 'speech'), checked = api?.[key] ?? jodit.o.speechRecognize[key];
|
|
909
|
+
return `<span class='jodit-speech-recognize__list-item'><input ${checked ? 'checked' : ''} class='jodit-checkbox' type='checkbox'> ${value}</span>`;
|
|
910
|
+
},
|
|
911
|
+
mods: {
|
|
912
|
+
stroke: false
|
|
913
|
+
}
|
|
940
914
|
};
|
|
941
915
|
|
|
942
|
-
|
|
943
|
-
/***/ }),
|
|
944
|
-
|
|
945
|
-
/***/ 61232:
|
|
946
|
-
/***/ (function(module) {
|
|
947
|
-
|
|
916
|
+
;// CONCATENATED MODULE: ./src/plugins/speech-recognize/speech-recognize.ts
|
|
948
917
|
/*!
|
|
949
918
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
950
919
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
951
920
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
952
921
|
*/
|
|
953
922
|
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
Sound: 'Ses',
|
|
960
|
-
'Interim Results': 'Ara Sonuçlar'
|
|
961
|
-
};
|
|
923
|
+
/**
|
|
924
|
+
* [[include:plugins/speech-recognize/README.md]]
|
|
925
|
+
* @packageDocumentation
|
|
926
|
+
* @module plugins/speech-recognize
|
|
927
|
+
*/
|
|
962
928
|
|
|
963
929
|
|
|
964
|
-
/***/ }),
|
|
965
930
|
|
|
966
|
-
/***/ 56775:
|
|
967
|
-
/***/ (function(module) {
|
|
968
931
|
|
|
969
|
-
/*!
|
|
970
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
971
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
972
|
-
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
973
|
-
*/
|
|
974
932
|
|
|
975
|
-
module.exports = {
|
|
976
|
-
newline: '新行',
|
|
977
|
-
delete: '删除',
|
|
978
|
-
space: '空间',
|
|
979
|
-
'Speech Recognize': '言语识别',
|
|
980
|
-
Sound: '声音',
|
|
981
|
-
'Interim Results': '中期业绩'
|
|
982
|
-
};
|
|
983
933
|
|
|
984
934
|
|
|
985
|
-
/***/ }),
|
|
986
935
|
|
|
987
|
-
/***/ 97957:
|
|
988
|
-
/***/ (function(module) {
|
|
989
936
|
|
|
990
|
-
/*!
|
|
991
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
992
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
993
|
-
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
994
|
-
*/
|
|
995
937
|
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
938
|
+
class SpeechRecognizeNative extends core_plugin/* Plugin */.S {
|
|
939
|
+
constructor(j) {
|
|
940
|
+
super(j);
|
|
941
|
+
this._commandToWord = {};
|
|
942
|
+
if (j.o.speechRecognize.api) {
|
|
943
|
+
j.registerButton({
|
|
944
|
+
group: 'state',
|
|
945
|
+
name: 'speechRecognize'
|
|
946
|
+
});
|
|
947
|
+
}
|
|
948
|
+
}
|
|
949
|
+
afterInit(jodit) {
|
|
950
|
+
const { commands } = jodit.o.speechRecognize;
|
|
951
|
+
if (commands) {
|
|
952
|
+
(0,global/* extendLang */.xl)(langs_namespaceObject);
|
|
953
|
+
(0,utils/* keys */.XP)(commands, false).forEach(words => {
|
|
954
|
+
const keys = words.split('|');
|
|
955
|
+
keys.forEach(key => {
|
|
956
|
+
key = key.trim().toLowerCase();
|
|
957
|
+
this._commandToWord[key] = commands[words];
|
|
958
|
+
const translatedKeys = jodit.i18n(key);
|
|
959
|
+
if (translatedKeys !== key) {
|
|
960
|
+
translatedKeys.split('|').forEach(translatedKey => {
|
|
961
|
+
this._commandToWord[translatedKey.trim().toLowerCase()] = commands[words].trim();
|
|
962
|
+
});
|
|
963
|
+
}
|
|
964
|
+
});
|
|
965
|
+
});
|
|
966
|
+
}
|
|
967
|
+
}
|
|
968
|
+
beforeDestruct(jodit) { }
|
|
969
|
+
onSpeechRecognizeProgressResult(text) {
|
|
970
|
+
if (!this.messagePopup) {
|
|
971
|
+
this.messagePopup = this.j.create.div('jodit-speech-recognize__popup');
|
|
972
|
+
}
|
|
973
|
+
this.j.workplace.appendChild(this.messagePopup);
|
|
974
|
+
this.j.async.setTimeout(() => {
|
|
975
|
+
dom/* Dom.safeRemove */.i.safeRemove(this.messagePopup);
|
|
976
|
+
}, {
|
|
977
|
+
label: 'onSpeechRecognizeProgressResult',
|
|
978
|
+
timeout: 1000
|
|
979
|
+
});
|
|
980
|
+
this.messagePopup.innerText = text + '|';
|
|
981
|
+
}
|
|
982
|
+
onSpeechRecognizeResult(text) {
|
|
983
|
+
const { j } = this, { s } = j;
|
|
984
|
+
dom/* Dom.safeRemove */.i.safeRemove(this.messagePopup);
|
|
985
|
+
if (!this._checkCommand(text)) {
|
|
986
|
+
const { range } = s, node = s.current();
|
|
987
|
+
if (s.isCollapsed() &&
|
|
988
|
+
dom/* Dom.isText */.i.isText(node) &&
|
|
989
|
+
dom/* Dom.isOrContains */.i.isOrContains(j.editor, node) &&
|
|
990
|
+
node.nodeValue) {
|
|
991
|
+
const sentence = node.nodeValue;
|
|
992
|
+
node.nodeValue =
|
|
993
|
+
sentence +
|
|
994
|
+
(/[\u00A0 ]\uFEFF*$/.test(sentence) ? '' : ' ') +
|
|
995
|
+
text;
|
|
996
|
+
range.setStartAfter(node);
|
|
997
|
+
s.selectRange(range);
|
|
998
|
+
j.synchronizeValues();
|
|
999
|
+
}
|
|
1000
|
+
else {
|
|
1001
|
+
s.insertHTML(text);
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
}
|
|
1005
|
+
_checkCommand(command) {
|
|
1006
|
+
command = command.toLowerCase().replace(/\./g, '');
|
|
1007
|
+
if (this._commandToWord[command]) {
|
|
1008
|
+
execSpellCommand(this.j, this._commandToWord[command]);
|
|
1009
|
+
return true;
|
|
1010
|
+
}
|
|
1011
|
+
return false;
|
|
1012
|
+
}
|
|
1013
|
+
}
|
|
1014
|
+
(0,tslib_es6/* __decorate */.gn)([
|
|
1015
|
+
(0,watch/* watch */.YP)(':speechRecognizeProgressResult'),
|
|
1016
|
+
(0,debounce/* debounce */.D)()
|
|
1017
|
+
], SpeechRecognizeNative.prototype, "onSpeechRecognizeProgressResult", null);
|
|
1018
|
+
(0,tslib_es6/* __decorate */.gn)([
|
|
1019
|
+
(0,watch/* watch */.YP)(':speechRecognizeResult')
|
|
1020
|
+
], SpeechRecognizeNative.prototype, "onSpeechRecognizeResult", null);
|
|
1021
|
+
if (typeof Jodit !== 'undefined') {
|
|
1022
|
+
Jodit.plugins.add('speech-recognize', SpeechRecognizeNative);
|
|
1023
|
+
}
|
|
1004
1024
|
|
|
1005
1025
|
|
|
1006
1026
|
/***/ }),
|