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,990 +18,1010 @@
|
|
|
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 (_a) { }
|
|
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 (_a) { }
|
|
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 === null || api === void 0 ? void 0 : 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
|
-
var _a;
|
|
469
|
-
const api = (0,data_bind/* dataBind */.q)(jodit, 'speech'), checked = (_a = api === null || api === void 0 ? void 0 : api[key]) !== null && _a !== void 0 ? _a : jodit.o.speechRecognize[key];
|
|
470
|
-
return `<span class='jodit-speech-recognize__list-item'><input ${checked ? 'checked' : ''} class='jodit-checkbox' type='checkbox'> ${value}</span>`;
|
|
471
|
-
},
|
|
472
|
-
mods: {
|
|
473
|
-
stroke: false
|
|
474
|
-
}
|
|
475
|
-
};
|
|
476
|
-
|
|
477
|
-
;// CONCATENATED MODULE: ./src/plugins/speech-recognize/speech-recognize.ts
|
|
478
356
|
/*!
|
|
479
357
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
480
358
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
481
359
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
482
360
|
*/
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
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
|
+
};
|
|
494
369
|
|
|
495
370
|
|
|
371
|
+
/***/ }),
|
|
496
372
|
|
|
373
|
+
/***/ 52415:
|
|
374
|
+
/***/ (function(module) {
|
|
497
375
|
|
|
376
|
+
"use strict";
|
|
498
377
|
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
if (commands) {
|
|
513
|
-
(0,global/* extendLang */.xl)(langs_namespaceObject);
|
|
514
|
-
(0,utils/* keys */.XP)(commands, false).forEach(words => {
|
|
515
|
-
const keys = words.split('|');
|
|
516
|
-
keys.forEach(key => {
|
|
517
|
-
key = key.trim().toLowerCase();
|
|
518
|
-
this._commandToWord[key] = commands[words];
|
|
519
|
-
const translatedKeys = jodit.i18n(key);
|
|
520
|
-
if (translatedKeys !== key) {
|
|
521
|
-
translatedKeys.split('|').forEach(translatedKey => {
|
|
522
|
-
this._commandToWord[translatedKey.trim().toLowerCase()] = commands[words].trim();
|
|
523
|
-
});
|
|
524
|
-
}
|
|
525
|
-
});
|
|
526
|
-
});
|
|
527
|
-
}
|
|
528
|
-
}
|
|
529
|
-
beforeDestruct(jodit) { }
|
|
530
|
-
onSpeechRecognizeProgressResult(text) {
|
|
531
|
-
if (!this.messagePopup) {
|
|
532
|
-
this.messagePopup = this.j.create.div('jodit-speech-recognize__popup');
|
|
533
|
-
}
|
|
534
|
-
this.j.workplace.appendChild(this.messagePopup);
|
|
535
|
-
this.j.async.setTimeout(() => {
|
|
536
|
-
dom/* Dom.safeRemove */.i.safeRemove(this.messagePopup);
|
|
537
|
-
}, {
|
|
538
|
-
label: 'onSpeechRecognizeProgressResult',
|
|
539
|
-
timeout: 1000
|
|
540
|
-
});
|
|
541
|
-
this.messagePopup.innerText = text + '|';
|
|
542
|
-
}
|
|
543
|
-
onSpeechRecognizeResult(text) {
|
|
544
|
-
const { j } = this, { s } = j;
|
|
545
|
-
dom/* Dom.safeRemove */.i.safeRemove(this.messagePopup);
|
|
546
|
-
if (!this._checkCommand(text)) {
|
|
547
|
-
const { range } = s, node = s.current();
|
|
548
|
-
if (s.isCollapsed() &&
|
|
549
|
-
dom/* Dom.isText */.i.isText(node) &&
|
|
550
|
-
dom/* Dom.isOrContains */.i.isOrContains(j.editor, node) &&
|
|
551
|
-
node.nodeValue) {
|
|
552
|
-
const sentence = node.nodeValue;
|
|
553
|
-
node.nodeValue =
|
|
554
|
-
sentence +
|
|
555
|
-
(/[\u00A0 ]\uFEFF*$/.test(sentence) ? '' : ' ') +
|
|
556
|
-
text;
|
|
557
|
-
range.setStartAfter(node);
|
|
558
|
-
s.selectRange(range);
|
|
559
|
-
j.synchronizeValues();
|
|
560
|
-
}
|
|
561
|
-
else {
|
|
562
|
-
s.insertHTML(text);
|
|
563
|
-
}
|
|
564
|
-
}
|
|
565
|
-
}
|
|
566
|
-
_checkCommand(command) {
|
|
567
|
-
command = command.toLowerCase().replace(/\./g, '');
|
|
568
|
-
if (this._commandToWord[command]) {
|
|
569
|
-
execSpellCommand(this.j, this._commandToWord[command]);
|
|
570
|
-
return true;
|
|
571
|
-
}
|
|
572
|
-
return false;
|
|
573
|
-
}
|
|
574
|
-
}
|
|
575
|
-
(0,tslib_es6/* __decorate */.gn)([
|
|
576
|
-
(0,watch/* watch */.YP)(':speechRecognizeProgressResult'),
|
|
577
|
-
(0,debounce/* debounce */.D)()
|
|
578
|
-
], SpeechRecognizeNative.prototype, "onSpeechRecognizeProgressResult", null);
|
|
579
|
-
(0,tslib_es6/* __decorate */.gn)([
|
|
580
|
-
(0,watch/* watch */.YP)(':speechRecognizeResult')
|
|
581
|
-
], SpeechRecognizeNative.prototype, "onSpeechRecognizeResult", null);
|
|
582
|
-
if (typeof Jodit !== 'undefined') {
|
|
583
|
-
Jodit.plugins.add('speech-recognize', SpeechRecognizeNative);
|
|
584
|
-
}
|
|
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
|
+
};
|
|
585
391
|
|
|
586
392
|
|
|
587
393
|
/***/ }),
|
|
588
394
|
|
|
589
|
-
/***/
|
|
395
|
+
/***/ 14569:
|
|
590
396
|
/***/ (function(module) {
|
|
591
397
|
|
|
398
|
+
"use strict";
|
|
399
|
+
|
|
592
400
|
/*!
|
|
593
401
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
594
402
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
595
403
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
596
404
|
*/
|
|
597
|
-
|
|
598
405
|
module.exports = {
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
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'
|
|
605
412
|
};
|
|
606
413
|
|
|
607
414
|
|
|
608
415
|
/***/ }),
|
|
609
416
|
|
|
610
|
-
/***/
|
|
417
|
+
/***/ 58649:
|
|
611
418
|
/***/ (function(module) {
|
|
612
419
|
|
|
420
|
+
"use strict";
|
|
421
|
+
|
|
613
422
|
/*!
|
|
614
423
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
615
424
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
616
425
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
617
426
|
*/
|
|
618
|
-
|
|
619
427
|
module.exports = {
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
428
|
+
newline: '新行',
|
|
429
|
+
delete: '删除',
|
|
430
|
+
space: '空间',
|
|
431
|
+
'Speech Recognize': '言语识别',
|
|
432
|
+
Sound: '声音',
|
|
433
|
+
'Interim Results': '中期业绩'
|
|
626
434
|
};
|
|
627
435
|
|
|
628
436
|
|
|
629
437
|
/***/ }),
|
|
630
438
|
|
|
631
|
-
/***/
|
|
439
|
+
/***/ 66040:
|
|
632
440
|
/***/ (function(module) {
|
|
633
441
|
|
|
442
|
+
"use strict";
|
|
443
|
+
|
|
634
444
|
/*!
|
|
635
445
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
636
446
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
637
447
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
638
448
|
*/
|
|
639
|
-
|
|
640
449
|
module.exports = {
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
450
|
+
newline: 'นิวไลน์',
|
|
451
|
+
delete: 'ลบ',
|
|
452
|
+
space: 'พื้นที่',
|
|
453
|
+
'Speech Recognize': 'การรับรู้คำพูด',
|
|
454
|
+
Sound: 'เสียง',
|
|
455
|
+
'Interim Results': 'ผลระหว่างกาล'
|
|
647
456
|
};
|
|
648
457
|
|
|
649
458
|
|
|
650
459
|
/***/ }),
|
|
651
460
|
|
|
652
|
-
/***/
|
|
653
|
-
/***/ (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
|
+
});
|
|
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
|
+
}
|
|
654
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
|
|
655
565
|
/*!
|
|
656
566
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
657
567
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
658
568
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
659
569
|
*/
|
|
660
570
|
|
|
661
|
-
module.exports = {
|
|
662
|
-
newline: 'nueva línea',
|
|
663
|
-
delete: 'eliminar',
|
|
664
|
-
space: 'espacio',
|
|
665
|
-
'Speech Recognize': 'Reconocimiento de Voz',
|
|
666
|
-
Sound: 'Sonido',
|
|
667
|
-
'Interim Results': 'Resultados Provisionales'
|
|
668
|
-
};
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
/***/ }),
|
|
672
|
-
|
|
673
|
-
/***/ 53808:
|
|
674
|
-
/***/ (function(module) {
|
|
675
571
|
|
|
676
|
-
/*!
|
|
677
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
678
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
679
|
-
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
680
|
-
*/
|
|
681
572
|
|
|
682
|
-
module.exports = {
|
|
683
|
-
newline: 'خط جدید',
|
|
684
|
-
delete: 'حذف',
|
|
685
|
-
space: 'فضا',
|
|
686
|
-
'Speech Recognize': 'گفتار را تشخیص دهید',
|
|
687
|
-
Sound: 'صدا',
|
|
688
|
-
'Interim Results': 'نتایج موقت'
|
|
689
|
-
};
|
|
690
573
|
|
|
691
574
|
|
|
692
|
-
/***/ }),
|
|
693
575
|
|
|
694
|
-
/***/ 48954:
|
|
695
|
-
/***/ (function(module) {
|
|
696
576
|
|
|
697
|
-
/*!
|
|
698
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
699
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
700
|
-
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
701
|
-
*/
|
|
702
577
|
|
|
703
|
-
module.exports = {
|
|
704
|
-
newline: 'nouvelle ligne',
|
|
705
|
-
delete: 'supprimer',
|
|
706
|
-
space: 'espace',
|
|
707
|
-
'Speech Recognize': 'Reconnaissance Vocale',
|
|
708
|
-
Sound: 'Son',
|
|
709
|
-
'Interim Results': 'Résultats Intermédiaires'
|
|
710
|
-
};
|
|
711
578
|
|
|
712
579
|
|
|
713
|
-
/***/ }),
|
|
714
580
|
|
|
715
|
-
/***/ 14694:
|
|
716
|
-
/***/ (function(module) {
|
|
717
581
|
|
|
718
|
-
/*!
|
|
719
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
720
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
721
|
-
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
722
|
-
*/
|
|
723
582
|
|
|
724
|
-
module.exports = {
|
|
725
|
-
newline: 'חדשות',
|
|
726
|
-
delete: 'מחק',
|
|
727
|
-
space: 'שטח',
|
|
728
|
-
'Speech Recognize': 'דיבור מזהה',
|
|
729
|
-
Sound: 'קול',
|
|
730
|
-
'Interim Results': 'תוצאות ביניים'
|
|
731
|
-
};
|
|
732
583
|
|
|
733
584
|
|
|
734
|
-
/***/ }),
|
|
735
585
|
|
|
736
|
-
/***/ 67381:
|
|
737
|
-
/***/ (function(module) {
|
|
738
586
|
|
|
739
|
-
/*!
|
|
740
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
741
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
742
|
-
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
743
|
-
*/
|
|
744
587
|
|
|
745
|
-
module.exports = {
|
|
746
|
-
newline: 'újsor',
|
|
747
|
-
delete: 'törlés',
|
|
748
|
-
space: 'tér',
|
|
749
|
-
'Speech Recognize': 'A Beszéd Felismeri',
|
|
750
|
-
Sound: 'Hang',
|
|
751
|
-
'Interim Results': 'Időközi Eredmények'
|
|
752
|
-
};
|
|
753
588
|
|
|
754
589
|
|
|
755
|
-
/***/ }),
|
|
756
590
|
|
|
757
|
-
/***/ 99549:
|
|
758
|
-
/***/ (function(module) {
|
|
759
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
|
|
760
605
|
/*!
|
|
761
606
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
762
607
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
763
608
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
764
609
|
*/
|
|
610
|
+
/**
|
|
611
|
+
* @module plugins/speech-recognize
|
|
612
|
+
* @internal
|
|
613
|
+
*/
|
|
614
|
+
const PII = 440;
|
|
615
|
+
const WARN = 940;
|
|
765
616
|
|
|
766
|
-
|
|
767
|
-
newline: 'newline',
|
|
768
|
-
delete: 'Hapus',
|
|
769
|
-
space: 'ruang',
|
|
770
|
-
'Speech Recognize': 'Pidato Mengenali',
|
|
771
|
-
Sound: 'Suara',
|
|
772
|
-
'Interim Results': 'Hasil Sementara'
|
|
773
|
-
};
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
/***/ }),
|
|
777
|
-
|
|
778
|
-
/***/ 28428:
|
|
779
|
-
/***/ (function(module) {
|
|
780
|
-
|
|
617
|
+
;// CONCATENATED MODULE: ./src/plugins/speech-recognize/helpers/sound.ts
|
|
781
618
|
/*!
|
|
782
619
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
783
620
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
784
621
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
785
622
|
*/
|
|
623
|
+
/**
|
|
624
|
+
* @module plugins/speech-recognize
|
|
625
|
+
*/
|
|
786
626
|
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
}
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
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
|
+
}
|
|
801
648
|
|
|
649
|
+
;// CONCATENATED MODULE: ./src/plugins/speech-recognize/helpers/recognize-manager.ts
|
|
802
650
|
/*!
|
|
803
651
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
804
652
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
805
653
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
806
654
|
*/
|
|
807
|
-
|
|
808
|
-
module.exports = {
|
|
809
|
-
newline: '改行',
|
|
810
|
-
delete: '削除',
|
|
811
|
-
space: 'スペース',
|
|
812
|
-
'Speech Recognize': '音声認識',
|
|
813
|
-
Sound: '音',
|
|
814
|
-
'Interim Results': '中間結果'
|
|
815
|
-
};
|
|
655
|
+
var RecognizeManager_1;
|
|
816
656
|
|
|
817
657
|
|
|
818
|
-
/***/ }),
|
|
819
658
|
|
|
820
|
-
/***/ 96929:
|
|
821
|
-
/***/ (function(module) {
|
|
822
659
|
|
|
823
|
-
/*!
|
|
824
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
825
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
826
|
-
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
827
|
-
*/
|
|
828
660
|
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
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 (_a) { }
|
|
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 (_a) { }
|
|
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
|
+
}
|
|
836
803
|
};
|
|
804
|
+
RecognizeManager._instances = new Set();
|
|
805
|
+
RecognizeManager = RecognizeManager_1 = (0,tslib_es6/* __decorate */.gn)([
|
|
806
|
+
decorators.autobind
|
|
807
|
+
], RecognizeManager);
|
|
837
808
|
|
|
838
809
|
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
/***/ 26781:
|
|
842
|
-
/***/ (function(module) {
|
|
843
|
-
|
|
810
|
+
;// CONCATENATED MODULE: ./src/plugins/speech-recognize/helpers/api.ts
|
|
844
811
|
/*!
|
|
845
812
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
846
813
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
847
814
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
848
815
|
*/
|
|
816
|
+
const SpeechRecognition = window.SpeechRecognition ||
|
|
817
|
+
window.webkitSpeechRecognition;
|
|
849
818
|
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
'Speech Recognize': 'Дуу хоолой таних',
|
|
855
|
-
Sound: 'Дуу',
|
|
856
|
-
'Interim Results': 'Түр зуурын үр дүн'
|
|
857
|
-
};
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
/***/ }),
|
|
861
|
-
|
|
862
|
-
/***/ 58499:
|
|
863
|
-
/***/ (function(module) {
|
|
864
|
-
|
|
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
|
|
865
823
|
/*!
|
|
866
824
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
867
825
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
868
826
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
869
827
|
*/
|
|
870
828
|
|
|
871
|
-
module.exports = {
|
|
872
|
-
newline: 'regel',
|
|
873
|
-
delete: 'verwijderen',
|
|
874
|
-
space: 'ruimte',
|
|
875
|
-
'Speech Recognize': 'Spraak Herkennen',
|
|
876
|
-
Sound: 'Geluid',
|
|
877
|
-
'Interim Results': 'Tussentijdse Resultaten'
|
|
878
|
-
};
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
/***/ }),
|
|
882
|
-
|
|
883
|
-
/***/ 59430:
|
|
884
|
-
/***/ (function(module) {
|
|
885
|
-
|
|
886
|
-
/*!
|
|
887
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
888
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
889
|
-
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
890
|
-
*/
|
|
891
829
|
|
|
892
|
-
module.exports = {
|
|
893
|
-
newline: 'newline',
|
|
894
|
-
delete: 'usunąć',
|
|
895
|
-
space: 'przestrzeń',
|
|
896
|
-
'Speech Recognize': 'Rozpoznawanie Mowy',
|
|
897
|
-
Sound: 'Dźwięk',
|
|
898
|
-
'Interim Results': 'Wyniki Okresowe'
|
|
899
|
-
};
|
|
900
830
|
|
|
901
831
|
|
|
902
|
-
/***/ }),
|
|
903
832
|
|
|
904
|
-
/***/ 70297:
|
|
905
|
-
/***/ (function(module) {
|
|
906
833
|
|
|
907
|
-
/*!
|
|
908
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
909
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
910
|
-
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
911
|
-
*/
|
|
912
834
|
|
|
913
|
-
|
|
914
|
-
|
|
915
|
-
|
|
916
|
-
|
|
917
|
-
|
|
918
|
-
|
|
919
|
-
|
|
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
|
+
}
|
|
920
853
|
};
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
|
|
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 === null || api === void 0 ? void 0 : 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
|
+
var _a;
|
|
909
|
+
const api = (0,data_bind/* dataBind */.q)(jodit, 'speech'), checked = (_a = api === null || api === void 0 ? void 0 : api[key]) !== null && _a !== void 0 ? _a : jodit.o.speechRecognize[key];
|
|
910
|
+
return `<span class='jodit-speech-recognize__list-item'><input ${checked ? 'checked' : ''} class='jodit-checkbox' type='checkbox'> ${value}</span>`;
|
|
911
|
+
},
|
|
912
|
+
mods: {
|
|
913
|
+
stroke: false
|
|
914
|
+
}
|
|
941
915
|
};
|
|
942
916
|
|
|
943
|
-
|
|
944
|
-
/***/ }),
|
|
945
|
-
|
|
946
|
-
/***/ 61232:
|
|
947
|
-
/***/ (function(module) {
|
|
948
|
-
|
|
917
|
+
;// CONCATENATED MODULE: ./src/plugins/speech-recognize/speech-recognize.ts
|
|
949
918
|
/*!
|
|
950
919
|
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
951
920
|
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
952
921
|
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
953
922
|
*/
|
|
954
923
|
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
Sound: 'Ses',
|
|
961
|
-
'Interim Results': 'Ara Sonuçlar'
|
|
962
|
-
};
|
|
924
|
+
/**
|
|
925
|
+
* [[include:plugins/speech-recognize/README.md]]
|
|
926
|
+
* @packageDocumentation
|
|
927
|
+
* @module plugins/speech-recognize
|
|
928
|
+
*/
|
|
963
929
|
|
|
964
930
|
|
|
965
|
-
/***/ }),
|
|
966
931
|
|
|
967
|
-
/***/ 56775:
|
|
968
|
-
/***/ (function(module) {
|
|
969
932
|
|
|
970
|
-
/*!
|
|
971
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
972
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
973
|
-
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
974
|
-
*/
|
|
975
933
|
|
|
976
|
-
module.exports = {
|
|
977
|
-
newline: '新行',
|
|
978
|
-
delete: '删除',
|
|
979
|
-
space: '空间',
|
|
980
|
-
'Speech Recognize': '言语识别',
|
|
981
|
-
Sound: '声音',
|
|
982
|
-
'Interim Results': '中期业绩'
|
|
983
|
-
};
|
|
984
934
|
|
|
985
935
|
|
|
986
|
-
/***/ }),
|
|
987
936
|
|
|
988
|
-
/***/ 97957:
|
|
989
|
-
/***/ (function(module) {
|
|
990
937
|
|
|
991
|
-
/*!
|
|
992
|
-
* Jodit Editor (https://xdsoft.net/jodit/)
|
|
993
|
-
* Released under MIT see LICENSE.txt in the project root for license information.
|
|
994
|
-
* Copyright (c) 2013-2023 Valeriy Chupurnov. All rights reserved. https://xdsoft.net
|
|
995
|
-
*/
|
|
996
938
|
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
939
|
+
class SpeechRecognizeNative extends core_plugin/* Plugin */.S {
|
|
940
|
+
constructor(j) {
|
|
941
|
+
super(j);
|
|
942
|
+
this._commandToWord = {};
|
|
943
|
+
if (j.o.speechRecognize.api) {
|
|
944
|
+
j.registerButton({
|
|
945
|
+
group: 'state',
|
|
946
|
+
name: 'speechRecognize'
|
|
947
|
+
});
|
|
948
|
+
}
|
|
949
|
+
}
|
|
950
|
+
afterInit(jodit) {
|
|
951
|
+
const { commands } = jodit.o.speechRecognize;
|
|
952
|
+
if (commands) {
|
|
953
|
+
(0,global/* extendLang */.xl)(langs_namespaceObject);
|
|
954
|
+
(0,utils/* keys */.XP)(commands, false).forEach(words => {
|
|
955
|
+
const keys = words.split('|');
|
|
956
|
+
keys.forEach(key => {
|
|
957
|
+
key = key.trim().toLowerCase();
|
|
958
|
+
this._commandToWord[key] = commands[words];
|
|
959
|
+
const translatedKeys = jodit.i18n(key);
|
|
960
|
+
if (translatedKeys !== key) {
|
|
961
|
+
translatedKeys.split('|').forEach(translatedKey => {
|
|
962
|
+
this._commandToWord[translatedKey.trim().toLowerCase()] = commands[words].trim();
|
|
963
|
+
});
|
|
964
|
+
}
|
|
965
|
+
});
|
|
966
|
+
});
|
|
967
|
+
}
|
|
968
|
+
}
|
|
969
|
+
beforeDestruct(jodit) { }
|
|
970
|
+
onSpeechRecognizeProgressResult(text) {
|
|
971
|
+
if (!this.messagePopup) {
|
|
972
|
+
this.messagePopup = this.j.create.div('jodit-speech-recognize__popup');
|
|
973
|
+
}
|
|
974
|
+
this.j.workplace.appendChild(this.messagePopup);
|
|
975
|
+
this.j.async.setTimeout(() => {
|
|
976
|
+
dom/* Dom.safeRemove */.i.safeRemove(this.messagePopup);
|
|
977
|
+
}, {
|
|
978
|
+
label: 'onSpeechRecognizeProgressResult',
|
|
979
|
+
timeout: 1000
|
|
980
|
+
});
|
|
981
|
+
this.messagePopup.innerText = text + '|';
|
|
982
|
+
}
|
|
983
|
+
onSpeechRecognizeResult(text) {
|
|
984
|
+
const { j } = this, { s } = j;
|
|
985
|
+
dom/* Dom.safeRemove */.i.safeRemove(this.messagePopup);
|
|
986
|
+
if (!this._checkCommand(text)) {
|
|
987
|
+
const { range } = s, node = s.current();
|
|
988
|
+
if (s.isCollapsed() &&
|
|
989
|
+
dom/* Dom.isText */.i.isText(node) &&
|
|
990
|
+
dom/* Dom.isOrContains */.i.isOrContains(j.editor, node) &&
|
|
991
|
+
node.nodeValue) {
|
|
992
|
+
const sentence = node.nodeValue;
|
|
993
|
+
node.nodeValue =
|
|
994
|
+
sentence +
|
|
995
|
+
(/[\u00A0 ]\uFEFF*$/.test(sentence) ? '' : ' ') +
|
|
996
|
+
text;
|
|
997
|
+
range.setStartAfter(node);
|
|
998
|
+
s.selectRange(range);
|
|
999
|
+
j.synchronizeValues();
|
|
1000
|
+
}
|
|
1001
|
+
else {
|
|
1002
|
+
s.insertHTML(text);
|
|
1003
|
+
}
|
|
1004
|
+
}
|
|
1005
|
+
}
|
|
1006
|
+
_checkCommand(command) {
|
|
1007
|
+
command = command.toLowerCase().replace(/\./g, '');
|
|
1008
|
+
if (this._commandToWord[command]) {
|
|
1009
|
+
execSpellCommand(this.j, this._commandToWord[command]);
|
|
1010
|
+
return true;
|
|
1011
|
+
}
|
|
1012
|
+
return false;
|
|
1013
|
+
}
|
|
1014
|
+
}
|
|
1015
|
+
(0,tslib_es6/* __decorate */.gn)([
|
|
1016
|
+
(0,watch/* watch */.YP)(':speechRecognizeProgressResult'),
|
|
1017
|
+
(0,debounce/* debounce */.D)()
|
|
1018
|
+
], SpeechRecognizeNative.prototype, "onSpeechRecognizeProgressResult", null);
|
|
1019
|
+
(0,tslib_es6/* __decorate */.gn)([
|
|
1020
|
+
(0,watch/* watch */.YP)(':speechRecognizeResult')
|
|
1021
|
+
], SpeechRecognizeNative.prototype, "onSpeechRecognizeResult", null);
|
|
1022
|
+
if (typeof Jodit !== 'undefined') {
|
|
1023
|
+
Jodit.plugins.add('speech-recognize', SpeechRecognizeNative);
|
|
1024
|
+
}
|
|
1005
1025
|
|
|
1006
1026
|
|
|
1007
1027
|
/***/ }),
|