iobroker.sayit 5.3.1 → 5.3.3
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 +17 -10
- package/admin/i18n/de.json +6 -1
- package/admin/i18n/en.json +6 -1
- package/admin/i18n/es.json +6 -1
- package/admin/i18n/fr.json +6 -1
- package/admin/i18n/it.json +7 -2
- package/admin/i18n/nl.json +7 -2
- package/admin/i18n/pl.json +6 -1
- package/admin/i18n/pt.json +8 -3
- package/admin/i18n/ru.json +6 -1
- package/admin/i18n/uk.json +8 -3
- package/admin/i18n/zh-cn.json +8 -3
- package/admin/jsonConfig.json +148 -43
- package/build/lib/speech2device.js +19 -10
- package/build/lib/speech2device.js.map +1 -1
- package/build/lib/text2speech.js +11 -7
- package/build/lib/text2speech.js.map +1 -1
- package/build/main.js +74 -21
- package/build/main.js.map +1 -1
- package/io-package.json +37 -32
- package/package.json +8 -8
package/admin/jsonConfig.json
CHANGED
|
@@ -52,9 +52,11 @@
|
|
|
52
52
|
"label": "Google Home"
|
|
53
53
|
}
|
|
54
54
|
],
|
|
55
|
+
"xs": 12,
|
|
55
56
|
"sm": 12,
|
|
56
57
|
"md": 6,
|
|
57
|
-
"lg": 4
|
|
58
|
+
"lg": 4,
|
|
59
|
+
"xl": 4
|
|
58
60
|
},
|
|
59
61
|
"systemCommand": {
|
|
60
62
|
"newLine": true,
|
|
@@ -62,9 +64,11 @@
|
|
|
62
64
|
"label": "System command",
|
|
63
65
|
"hidden": "data.type !== 'system'",
|
|
64
66
|
"help": "optional - If player does not work",
|
|
67
|
+
"xs": 12,
|
|
65
68
|
"sm": 6,
|
|
66
69
|
"md": 4,
|
|
67
|
-
"lg": 2
|
|
70
|
+
"lg": 2,
|
|
71
|
+
"xl": 2
|
|
68
72
|
},
|
|
69
73
|
"systemPlayer": {
|
|
70
74
|
"type": "select",
|
|
@@ -86,9 +90,11 @@
|
|
|
86
90
|
}
|
|
87
91
|
],
|
|
88
92
|
"help": "Ignore for non linux OS",
|
|
93
|
+
"xs": 12,
|
|
89
94
|
"sm": 6,
|
|
90
95
|
"md": 4,
|
|
91
|
-
"lg": 2
|
|
96
|
+
"lg": 2,
|
|
97
|
+
"xl": 2
|
|
92
98
|
},
|
|
93
99
|
"announce": {
|
|
94
100
|
"newLine": true,
|
|
@@ -99,9 +105,11 @@
|
|
|
99
105
|
"hidden": "data.type === 'googleHome'",
|
|
100
106
|
"noTranslation": true,
|
|
101
107
|
"upload": "tts.userfiles/",
|
|
108
|
+
"xs": 12,
|
|
102
109
|
"sm": 12,
|
|
103
110
|
"md": 6,
|
|
104
|
-
"lg": 4
|
|
111
|
+
"lg": 4,
|
|
112
|
+
"xl": 4
|
|
105
113
|
},
|
|
106
114
|
"annoTimeout": {
|
|
107
115
|
"newLine": true,
|
|
@@ -111,9 +119,11 @@
|
|
|
111
119
|
"hidden": "(data.type !== 'mp24' && data.type !== 'windows') || !data.announce",
|
|
112
120
|
"min": 0,
|
|
113
121
|
"max": 1000,
|
|
122
|
+
"xs": 12,
|
|
114
123
|
"sm": 6,
|
|
115
124
|
"md": 4,
|
|
116
|
-
"lg": 2
|
|
125
|
+
"lg": 2,
|
|
126
|
+
"xl": 2
|
|
117
127
|
},
|
|
118
128
|
"annoDuration": {
|
|
119
129
|
"type": "number",
|
|
@@ -122,9 +132,11 @@
|
|
|
122
132
|
"max": 99,
|
|
123
133
|
"help": "in seconds",
|
|
124
134
|
"hidden": "(data.type !== 'mp24' && data.type !== 'windows') || !data.announce",
|
|
135
|
+
"xs": 12,
|
|
125
136
|
"sm": 6,
|
|
126
137
|
"md": 4,
|
|
127
|
-
"lg": 2
|
|
138
|
+
"lg": 2,
|
|
139
|
+
"xl": 2
|
|
128
140
|
},
|
|
129
141
|
"annoVolume": {
|
|
130
142
|
"type": "number",
|
|
@@ -133,18 +145,22 @@
|
|
|
133
145
|
"max": 100,
|
|
134
146
|
"help": "in % to playing volume",
|
|
135
147
|
"hidden": "(data.type !== 'mp24' && data.type !== 'windows') || !data.announce",
|
|
148
|
+
"xs": 12,
|
|
136
149
|
"sm": 6,
|
|
137
150
|
"md": 4,
|
|
138
|
-
"lg": 2
|
|
151
|
+
"lg": 2,
|
|
152
|
+
"xl": 2
|
|
139
153
|
},
|
|
140
154
|
"cache": {
|
|
141
155
|
"newLine": true,
|
|
142
156
|
"type": "checkbox",
|
|
143
157
|
"label": "Cache",
|
|
144
158
|
"help": "Cache generated files",
|
|
159
|
+
"xs": 12,
|
|
145
160
|
"sm": 6,
|
|
146
161
|
"md": 4,
|
|
147
|
-
"lg": 2
|
|
162
|
+
"lg": 2,
|
|
163
|
+
"xl": 2
|
|
148
164
|
},
|
|
149
165
|
"cacheExpiryDays": {
|
|
150
166
|
"type": "number",
|
|
@@ -153,9 +169,22 @@
|
|
|
153
169
|
"label": "Cache-Expiry",
|
|
154
170
|
"help": "in days",
|
|
155
171
|
"hidden": "!data.cache",
|
|
172
|
+
"xs": 12,
|
|
156
173
|
"sm": 6,
|
|
157
174
|
"md": 4,
|
|
158
|
-
"lg": 2
|
|
175
|
+
"lg": 2,
|
|
176
|
+
"xl": 2
|
|
177
|
+
},
|
|
178
|
+
"cacheDir": {
|
|
179
|
+
"type": "text",
|
|
180
|
+
"label": "Cache directory",
|
|
181
|
+
"help": "Relative to iobroker-data/sayit or absolute",
|
|
182
|
+
"hidden": "!data.cache",
|
|
183
|
+
"xs": 12,
|
|
184
|
+
"sm": 12,
|
|
185
|
+
"md": 8,
|
|
186
|
+
"lg": 4,
|
|
187
|
+
"xl": 4
|
|
159
188
|
},
|
|
160
189
|
"chromecastDevice": {
|
|
161
190
|
"newLine": true,
|
|
@@ -164,9 +193,11 @@
|
|
|
164
193
|
"command": "browseChromecast",
|
|
165
194
|
"noTranslation": true,
|
|
166
195
|
"hidden": "data.type !== 'chromecast'",
|
|
196
|
+
"xs": 12,
|
|
167
197
|
"sm": 12,
|
|
168
198
|
"md": 6,
|
|
169
|
-
"lg": 4
|
|
199
|
+
"lg": 4,
|
|
200
|
+
"xl": 4
|
|
170
201
|
},
|
|
171
202
|
"googleHomeServer": {
|
|
172
203
|
"newLine": true,
|
|
@@ -174,79 +205,97 @@
|
|
|
174
205
|
"command": "browseGoogleHome",
|
|
175
206
|
"label": "Google home server",
|
|
176
207
|
"hidden": "data.type !== 'googleHome'",
|
|
208
|
+
"xs": 12,
|
|
177
209
|
"sm": 12,
|
|
178
210
|
"md": 6,
|
|
179
|
-
"lg": 4
|
|
211
|
+
"lg": 4,
|
|
212
|
+
"xl": 4
|
|
180
213
|
},
|
|
181
214
|
"mp24Server": {
|
|
182
215
|
"newLine": true,
|
|
183
216
|
"type": "text",
|
|
184
217
|
"label": "Server IP Address",
|
|
185
218
|
"hidden": "data.type !== 'mp24ftp' && data.type !== 'mp24'",
|
|
219
|
+
"xs": 12,
|
|
186
220
|
"sm": 12,
|
|
187
221
|
"md": 6,
|
|
188
|
-
"lg": 4
|
|
222
|
+
"lg": 4,
|
|
223
|
+
"xl": 4
|
|
189
224
|
},
|
|
190
225
|
"ftpPort": {
|
|
191
226
|
"newLine": true,
|
|
192
227
|
"type": "number",
|
|
193
228
|
"label": "FTP Port",
|
|
194
229
|
"hidden": "data.type !== 'mp24ftp'",
|
|
230
|
+
"xs": 12,
|
|
195
231
|
"sm": 6,
|
|
196
232
|
"md": 4,
|
|
197
|
-
"lg": 2
|
|
233
|
+
"lg": 2,
|
|
234
|
+
"xl": 2
|
|
198
235
|
},
|
|
199
236
|
"ftpUser": {
|
|
200
237
|
"type": "text",
|
|
201
238
|
"label": "FTP User",
|
|
202
239
|
"hidden": "data.type !== 'mp24ftp'",
|
|
240
|
+
"xs": 12,
|
|
203
241
|
"sm": 6,
|
|
204
242
|
"md": 4,
|
|
205
|
-
"lg": 2
|
|
243
|
+
"lg": 2,
|
|
244
|
+
"xl": 2
|
|
206
245
|
},
|
|
207
246
|
"ftpPassword": {
|
|
208
247
|
"type": "password",
|
|
209
248
|
"label": "FTP Password",
|
|
210
249
|
"hidden": "data.type !== 'mp24ftp'",
|
|
250
|
+
"xs": 12,
|
|
211
251
|
"sm": 6,
|
|
212
252
|
"md": 4,
|
|
213
|
-
"lg": 2
|
|
253
|
+
"lg": 2,
|
|
254
|
+
"xl": 2
|
|
214
255
|
},
|
|
215
256
|
"sonosDevice": {
|
|
216
257
|
"type": "selectSendTo",
|
|
217
258
|
"label": "Device",
|
|
218
259
|
"hidden": "data.type !== 'sonos'",
|
|
219
260
|
"command": "browseSonos",
|
|
261
|
+
"xs": 12,
|
|
220
262
|
"sm": 6,
|
|
221
263
|
"md": 4,
|
|
222
|
-
"lg": 2
|
|
264
|
+
"lg": 2,
|
|
265
|
+
"xl": 2
|
|
223
266
|
},
|
|
224
267
|
"heosDevice": {
|
|
225
268
|
"type": "selectSendTo",
|
|
226
269
|
"label": "Device",
|
|
227
270
|
"hidden": "data.type !== 'heos'",
|
|
228
271
|
"command": "browseHeos",
|
|
272
|
+
"xs": 12,
|
|
229
273
|
"sm": 6,
|
|
230
274
|
"md": 4,
|
|
231
|
-
"lg": 2
|
|
275
|
+
"lg": 2,
|
|
276
|
+
"xl": 2
|
|
232
277
|
},
|
|
233
278
|
"mpdInstance": {
|
|
234
279
|
"type": "instance",
|
|
235
280
|
"label": "Device",
|
|
236
281
|
"hidden": "data.type !== 'mpd'",
|
|
237
282
|
"adapter": "mpd",
|
|
283
|
+
"xs": 12,
|
|
238
284
|
"sm": 6,
|
|
239
285
|
"md": 4,
|
|
240
|
-
"lg": 2
|
|
286
|
+
"lg": 2,
|
|
287
|
+
"xl": 2
|
|
241
288
|
},
|
|
242
289
|
"browserInstance": {
|
|
243
290
|
"newLine": true,
|
|
244
291
|
"type": "text",
|
|
245
292
|
"label": "Browser instance",
|
|
246
293
|
"hidden": "data.type !== 'browser'",
|
|
294
|
+
"xs": 12,
|
|
247
295
|
"sm": 6,
|
|
248
296
|
"md": 3,
|
|
249
|
-
"lg": 2
|
|
297
|
+
"lg": 2,
|
|
298
|
+
"xl": 2
|
|
250
299
|
},
|
|
251
300
|
"browserVis": {
|
|
252
301
|
"newLine": true,
|
|
@@ -267,9 +316,11 @@
|
|
|
267
316
|
}
|
|
268
317
|
],
|
|
269
318
|
"hidden": "data.type !== 'browser'",
|
|
319
|
+
"xs": 12,
|
|
270
320
|
"sm": 6,
|
|
271
321
|
"md": 3,
|
|
272
|
-
"lg": 2
|
|
322
|
+
"lg": 2,
|
|
323
|
+
"xl": 2
|
|
273
324
|
},
|
|
274
325
|
"webInstance": {
|
|
275
326
|
"newLine": true,
|
|
@@ -277,17 +328,23 @@
|
|
|
277
328
|
"adapter": "web",
|
|
278
329
|
"label": "Web instance",
|
|
279
330
|
"hidden": "data.type !== 'sonos' && data.type !== 'heos' && data.type !== 'chromecast' && data.type !== 'mpd' && data.type !== 'googleHome'",
|
|
331
|
+
"xs": 12,
|
|
280
332
|
"sm": 6,
|
|
281
333
|
"md": 4,
|
|
282
|
-
"lg": 2
|
|
334
|
+
"lg": 2,
|
|
335
|
+
"xl": 2
|
|
283
336
|
},
|
|
284
337
|
"webServer": {
|
|
285
338
|
"type": "ip",
|
|
339
|
+
"onlyIp4": true,
|
|
340
|
+
"noInternal": true,
|
|
286
341
|
"label": "Web server IP",
|
|
287
342
|
"hidden": "data.type !== 'sonos' && data.type !== 'heos' && data.type !== 'chromecast' && data.type !== 'mpd' && data.type !== 'googleHome'",
|
|
343
|
+
"xs": 12,
|
|
288
344
|
"sm": 6,
|
|
289
345
|
"md": 4,
|
|
290
|
-
"lg": 2
|
|
346
|
+
"lg": 2,
|
|
347
|
+
"xl": 2
|
|
291
348
|
},
|
|
292
349
|
"_test": {
|
|
293
350
|
"newLine": true,
|
|
@@ -318,9 +375,11 @@
|
|
|
318
375
|
{ "value": "CoquiTTS", "label": "Coqui TTS (offline)" },
|
|
319
376
|
{ "value": "polly", "label": "AWS Polly" }
|
|
320
377
|
],
|
|
378
|
+
"xs": 12,
|
|
321
379
|
"sm": 12,
|
|
322
380
|
"md": 6,
|
|
323
|
-
"lg": 4
|
|
381
|
+
"lg": 4,
|
|
382
|
+
"xl": 4
|
|
324
383
|
},
|
|
325
384
|
"engine": {
|
|
326
385
|
"newLine": true,
|
|
@@ -1190,9 +1249,11 @@
|
|
|
1190
1249
|
"hidden": "data.engineProvider && data.engineProvider !== 'polly' && data.engine !== 'fi-FI_AP_Female_Suvi'"
|
|
1191
1250
|
}
|
|
1192
1251
|
],
|
|
1252
|
+
"xs": 12,
|
|
1193
1253
|
"sm": 12,
|
|
1194
1254
|
"md": 6,
|
|
1195
|
-
"lg": 4
|
|
1255
|
+
"lg": 4,
|
|
1256
|
+
"xl": 4
|
|
1196
1257
|
},
|
|
1197
1258
|
"freettsApiKey": {
|
|
1198
1259
|
"newLine": true,
|
|
@@ -1201,9 +1262,11 @@
|
|
|
1201
1262
|
"help": "freetts_key_help",
|
|
1202
1263
|
"helpLink": "https://freetts.org/pricing",
|
|
1203
1264
|
"hidden": "data.engine != 'freeTTS'",
|
|
1265
|
+
"xs": 12,
|
|
1204
1266
|
"sm": 12,
|
|
1205
1267
|
"md": 6,
|
|
1206
|
-
"lg": 4
|
|
1268
|
+
"lg": 4,
|
|
1269
|
+
"xl": 4
|
|
1207
1270
|
},
|
|
1208
1271
|
"freettsVoice": {
|
|
1209
1272
|
"newLine": true,
|
|
@@ -1215,9 +1278,11 @@
|
|
|
1215
1278
|
"noTranslation": true,
|
|
1216
1279
|
"manual": true,
|
|
1217
1280
|
"hidden": "data.engine != 'freeTTS'",
|
|
1281
|
+
"xs": 12,
|
|
1218
1282
|
"sm": 12,
|
|
1219
1283
|
"md": 6,
|
|
1220
|
-
"lg": 4
|
|
1284
|
+
"lg": 4,
|
|
1285
|
+
"xl": 4
|
|
1221
1286
|
},
|
|
1222
1287
|
"freettsRate": {
|
|
1223
1288
|
"newLine": true,
|
|
@@ -1227,9 +1292,11 @@
|
|
|
1227
1292
|
"min": -50,
|
|
1228
1293
|
"max": 100,
|
|
1229
1294
|
"hidden": "data.engine != 'freeTTS'",
|
|
1295
|
+
"xs": 12,
|
|
1230
1296
|
"sm": 6,
|
|
1231
1297
|
"md": 4,
|
|
1232
|
-
"lg": 2
|
|
1298
|
+
"lg": 2,
|
|
1299
|
+
"xl": 2
|
|
1233
1300
|
},
|
|
1234
1301
|
"freettsPitch": {
|
|
1235
1302
|
"type": "number",
|
|
@@ -1238,18 +1305,22 @@
|
|
|
1238
1305
|
"min": -20,
|
|
1239
1306
|
"max": 20,
|
|
1240
1307
|
"hidden": "data.engine != 'freeTTS'",
|
|
1308
|
+
"xs": 12,
|
|
1241
1309
|
"sm": 6,
|
|
1242
1310
|
"md": 4,
|
|
1243
|
-
"lg": 2
|
|
1311
|
+
"lg": 2,
|
|
1312
|
+
"xl": 2
|
|
1244
1313
|
},
|
|
1245
1314
|
"yandexKey": {
|
|
1246
1315
|
"newLine": true,
|
|
1247
1316
|
"type": "text",
|
|
1248
1317
|
"hidden": "data.engine != 'ru_YA' && data.engine != 'ru_YA_CLOUD'",
|
|
1249
1318
|
"label": "API Key",
|
|
1319
|
+
"xs": 12,
|
|
1250
1320
|
"sm": 12,
|
|
1251
1321
|
"md": 6,
|
|
1252
|
-
"lg": 4
|
|
1322
|
+
"lg": 4,
|
|
1323
|
+
"xl": 4
|
|
1253
1324
|
},
|
|
1254
1325
|
"yandexCloudVoice": {
|
|
1255
1326
|
"newLine": true,
|
|
@@ -1267,9 +1338,11 @@
|
|
|
1267
1338
|
{ "value": "alena", "label": "alena Premium" },
|
|
1268
1339
|
{ "value": "filipp", "label": "filipp Premium" }
|
|
1269
1340
|
],
|
|
1341
|
+
"xs": 12,
|
|
1270
1342
|
"sm": 12,
|
|
1271
1343
|
"md": 6,
|
|
1272
|
-
"lg": 4
|
|
1344
|
+
"lg": 4,
|
|
1345
|
+
"xl": 4
|
|
1273
1346
|
},
|
|
1274
1347
|
"yandexVoice": {
|
|
1275
1348
|
"newLine": true,
|
|
@@ -1281,9 +1354,11 @@
|
|
|
1281
1354
|
{ "value": "jane", "label": "jane" },
|
|
1282
1355
|
{ "value": "zahar", "label": "zahar" }
|
|
1283
1356
|
],
|
|
1357
|
+
"xs": 12,
|
|
1284
1358
|
"sm": 6,
|
|
1285
1359
|
"md": 4,
|
|
1286
|
-
"lg": 2
|
|
1360
|
+
"lg": 2,
|
|
1361
|
+
"xl": 2
|
|
1287
1362
|
},
|
|
1288
1363
|
"yandexEmotion": {
|
|
1289
1364
|
"type": "select",
|
|
@@ -1297,71 +1372,93 @@
|
|
|
1297
1372
|
{ "value": "evil", "label": "Evil" },
|
|
1298
1373
|
{ "value": "mixed", "label": "Mixed" }
|
|
1299
1374
|
],
|
|
1375
|
+
"xs": 12,
|
|
1300
1376
|
"sm": 6,
|
|
1301
1377
|
"md": 4,
|
|
1302
|
-
"lg": 2
|
|
1378
|
+
"lg": 2,
|
|
1379
|
+
"xl": 2
|
|
1303
1380
|
},
|
|
1304
1381
|
"yandexDrunk": {
|
|
1305
1382
|
"newLine": true,
|
|
1306
1383
|
"type": "checkbox",
|
|
1307
1384
|
"label": "Drunk",
|
|
1308
1385
|
"hidden": "data.engine != 'ru_YA'",
|
|
1386
|
+
"xs": 12,
|
|
1309
1387
|
"sm": 4,
|
|
1310
|
-
"md": 2
|
|
1388
|
+
"md": 2,
|
|
1389
|
+
"lg": 2,
|
|
1390
|
+
"xl": 2
|
|
1311
1391
|
},
|
|
1312
1392
|
"yandexIll": {
|
|
1313
1393
|
"type": "checkbox",
|
|
1314
1394
|
"hidden": "data.engine != 'ru_YA'",
|
|
1315
1395
|
"label": "Ill",
|
|
1396
|
+
"xs": 12,
|
|
1316
1397
|
"sm": 4,
|
|
1317
|
-
"md": 2
|
|
1398
|
+
"md": 2,
|
|
1399
|
+
"lg": 2,
|
|
1400
|
+
"xl": 2
|
|
1318
1401
|
},
|
|
1319
1402
|
"yandexRobot": {
|
|
1320
1403
|
"type": "checkbox",
|
|
1321
1404
|
"hidden": "data.engine != 'ru_YA'",
|
|
1322
1405
|
"label": "Robot",
|
|
1406
|
+
"xs": 12,
|
|
1323
1407
|
"sm": 4,
|
|
1324
|
-
"md": 2
|
|
1408
|
+
"md": 2,
|
|
1409
|
+
"lg": 2,
|
|
1410
|
+
"xl": 2
|
|
1325
1411
|
},
|
|
1326
1412
|
"yandexFolderID": {
|
|
1327
1413
|
"type": "text",
|
|
1328
1414
|
"hidden": "data.engine != 'ru_YA_CLOUD'",
|
|
1329
1415
|
"label": "Folder ID",
|
|
1416
|
+
"xs": 12,
|
|
1330
1417
|
"sm": 12,
|
|
1331
|
-
"md": 3
|
|
1418
|
+
"md": 3,
|
|
1419
|
+
"lg": 3,
|
|
1420
|
+
"xl": 3
|
|
1332
1421
|
},
|
|
1333
1422
|
"awsAccessKey": {
|
|
1334
1423
|
"newLine": true,
|
|
1335
1424
|
"type": "text",
|
|
1336
1425
|
"label": "Access Key",
|
|
1337
1426
|
"hidden": "!data.engine || !data.engine.includes('_AP_')",
|
|
1427
|
+
"xs": 12,
|
|
1338
1428
|
"sm": 6,
|
|
1339
1429
|
"md": 3,
|
|
1340
|
-
"lg": 2
|
|
1430
|
+
"lg": 2,
|
|
1431
|
+
"xl": 2
|
|
1341
1432
|
},
|
|
1342
1433
|
"awsSecretKey": {
|
|
1343
1434
|
"type": "password",
|
|
1344
1435
|
"label": "Secret Key",
|
|
1345
1436
|
"hidden": "!data.engine || !data.engine.includes('_AP_')",
|
|
1437
|
+
"xs": 12,
|
|
1346
1438
|
"sm": 6,
|
|
1347
1439
|
"md": 3,
|
|
1348
|
-
"lg": 2
|
|
1440
|
+
"lg": 2,
|
|
1441
|
+
"xl": 2
|
|
1349
1442
|
},
|
|
1350
1443
|
"awsRegion": {
|
|
1351
1444
|
"type": "text",
|
|
1352
1445
|
"label": "AWS Region",
|
|
1353
1446
|
"hidden": "!data.engine || !data.engine.includes('_AP_')",
|
|
1447
|
+
"xs": 12,
|
|
1354
1448
|
"sm": 6,
|
|
1355
1449
|
"md": 3,
|
|
1356
|
-
"lg": 1
|
|
1450
|
+
"lg": 1,
|
|
1451
|
+
"xl": 1
|
|
1357
1452
|
},
|
|
1358
1453
|
"cloudAppKey": {
|
|
1359
1454
|
"newLine": true,
|
|
1360
1455
|
"type": "text",
|
|
1361
1456
|
"label": "Cloud App Key from iobroker.pro or iobroker.net",
|
|
1457
|
+
"xs": 12,
|
|
1362
1458
|
"sm": 12,
|
|
1363
1459
|
"md": 6,
|
|
1364
1460
|
"lg": 4,
|
|
1461
|
+
"xl": 4,
|
|
1365
1462
|
"hidden": "!data.engine || !data.engine.includes('_CLOUD_') || data.cloudInstance"
|
|
1366
1463
|
},
|
|
1367
1464
|
"cloudInstance": {
|
|
@@ -1370,9 +1467,11 @@
|
|
|
1370
1467
|
"adapter": "cloud",
|
|
1371
1468
|
"label": "Cloud instance",
|
|
1372
1469
|
"hidden": "!data.engine || !data.engine.includes('_CLOUD_') || data.cloudAppKey",
|
|
1470
|
+
"xs": 12,
|
|
1373
1471
|
"sm": 12,
|
|
1374
1472
|
"md": 6,
|
|
1375
|
-
"lg": 4
|
|
1473
|
+
"lg": 4,
|
|
1474
|
+
"xl": 4
|
|
1376
1475
|
},
|
|
1377
1476
|
"coquiVocoder": {
|
|
1378
1477
|
"newLine": true,
|
|
@@ -1433,9 +1532,11 @@
|
|
|
1433
1532
|
"value": "vctk hifigan_v2"
|
|
1434
1533
|
}
|
|
1435
1534
|
],
|
|
1535
|
+
"xs": 12,
|
|
1436
1536
|
"sm": 12,
|
|
1437
1537
|
"md": 4,
|
|
1438
|
-
"lg": 2
|
|
1538
|
+
"lg": 2,
|
|
1539
|
+
"xl": 2
|
|
1439
1540
|
},
|
|
1440
1541
|
"_testText": {
|
|
1441
1542
|
"newLine": true,
|
|
@@ -1445,9 +1546,11 @@
|
|
|
1445
1546
|
"defaultFunc": "({ de: 'Hallo, das ist ein Test der Sprachausgabe.', ru: 'Привет, это проверка синтеза речи.', uk: 'Привіт, це перевірка синтезу мовлення.', pl: 'Cześć, to jest test syntezy mowy.', it: 'Ciao, questo è un test della sintesi vocale.', pt: 'Olá, este é um teste da síntese de voz.', es: 'Hola, esta es una prueba de la síntesis de voz.', fr: 'Bonjour, ceci est un test de la synthèse vocale.', nl: 'Hallo, dit is een test van de spraakuitvoer.', zh: '你好,这是一次语音合成测试。' })[(data.engine === 'freeTTS' ? data.freettsVoice || 'en' : data.engine || 'en').substring(0, 2)] || 'Hello, this is a test of the speech output.'",
|
|
1446
1547
|
"minRows": 2,
|
|
1447
1548
|
"maxRows": 5,
|
|
1549
|
+
"xs": 12,
|
|
1448
1550
|
"sm": 12,
|
|
1449
1551
|
"md": 8,
|
|
1450
|
-
"lg": 6
|
|
1552
|
+
"lg": 6,
|
|
1553
|
+
"xl": 6
|
|
1451
1554
|
},
|
|
1452
1555
|
"_testGenerate": {
|
|
1453
1556
|
"newLine": true,
|
|
@@ -1461,9 +1564,11 @@
|
|
|
1461
1564
|
"showProcess": true,
|
|
1462
1565
|
"openUrl": true,
|
|
1463
1566
|
"timeout": 120000,
|
|
1567
|
+
"xs": 12,
|
|
1464
1568
|
"sm": 12,
|
|
1465
1569
|
"md": 4,
|
|
1466
|
-
"lg": 3
|
|
1570
|
+
"lg": 3,
|
|
1571
|
+
"xl": 3
|
|
1467
1572
|
}
|
|
1468
1573
|
}
|
|
1469
1574
|
}
|
|
@@ -191,6 +191,15 @@ class Speech2Device {
|
|
|
191
191
|
}
|
|
192
192
|
return false;
|
|
193
193
|
}
|
|
194
|
+
/**
|
|
195
|
+
* Get the source to play: the generated or cached file for a text, or the sound file itself
|
|
196
|
+
*
|
|
197
|
+
* @param props Text, type and options of the task
|
|
198
|
+
* @returns Name of the file on the disk or the text/sound file name
|
|
199
|
+
*/
|
|
200
|
+
#speechSource(props) {
|
|
201
|
+
return props.fileName && !_a.isPlayFile(props.text) ? props.fileName : props.text;
|
|
202
|
+
}
|
|
194
203
|
/**
|
|
195
204
|
* Play the file in all browsers, where vis or vis-2 is opened
|
|
196
205
|
*
|
|
@@ -198,7 +207,7 @@ class Speech2Device {
|
|
|
198
207
|
* @returns True if the file was sent to at least one vis version
|
|
199
208
|
*/
|
|
200
209
|
async #sayItBrowser(props) {
|
|
201
|
-
const result = await this.#uploadToStates(props
|
|
210
|
+
const result = await this.#uploadToStates(this.#speechSource(props));
|
|
202
211
|
const browserInstance = props.testOptions?.browserInstance || this.config.browserInstance;
|
|
203
212
|
const browserVis = props.testOptions?.browserVis === undefined ? this.config.browserVis : props.testOptions.browserVis;
|
|
204
213
|
// check if vis.0.control.command exists
|
|
@@ -273,7 +282,7 @@ class Speech2Device {
|
|
|
273
282
|
props.volume ||= props.testOptions?.volume
|
|
274
283
|
? parseInt(props.testOptions.volume, 10)
|
|
275
284
|
: this.options.sayLastVolume;
|
|
276
|
-
const result = await this.#uploadToStates(props
|
|
285
|
+
const result = await this.#uploadToStates(this.#speechSource(props));
|
|
277
286
|
const webLink = await this.#getWebLink(props.testOptions);
|
|
278
287
|
const fileName = `${props.volume ? `${props.volume};` : ''}${webLink}${result.fileInDB}`;
|
|
279
288
|
const sonosDevice = props.testOptions?.sonosDevice || this.config.sonosDevice;
|
|
@@ -301,7 +310,7 @@ class Speech2Device {
|
|
|
301
310
|
props.volume ||= props.testOptions?.volume
|
|
302
311
|
? parseInt(props.testOptions.volume, 10)
|
|
303
312
|
: this.options.sayLastVolume;
|
|
304
|
-
const result = await this.#uploadToStates(props
|
|
313
|
+
const result = await this.#uploadToStates(this.#speechSource(props));
|
|
305
314
|
const webLink = await this.#getWebLink(props.testOptions);
|
|
306
315
|
const fileName = `${props.volume ? `${props.volume};` : ''}${webLink}${result.fileInDB}`;
|
|
307
316
|
const heosDevice = props.testOptions?.heosDevice || this.config.heosDevice;
|
|
@@ -329,7 +338,7 @@ class Speech2Device {
|
|
|
329
338
|
props.volume ||= props.testOptions?.volume
|
|
330
339
|
? parseInt(props.testOptions.volume, 10)
|
|
331
340
|
: this.options.sayLastVolume;
|
|
332
|
-
const result = await this.#uploadToStates(props
|
|
341
|
+
const result = await this.#uploadToStates(this.#speechSource(props));
|
|
333
342
|
const webLink = await this.#getWebLink(props.testOptions);
|
|
334
343
|
const mpdInstance = props.testOptions?.mpdInstance || this.config.mpdInstance;
|
|
335
344
|
const fileName = `${props.volume ? `${props.volume};` : ''}${webLink}${result.fileInDB}`;
|
|
@@ -357,7 +366,7 @@ class Speech2Device {
|
|
|
357
366
|
props.volume ||= props.testOptions?.volume
|
|
358
367
|
? parseInt(props.testOptions.volume, 10)
|
|
359
368
|
: this.options.sayLastVolume;
|
|
360
|
-
const result = await this.#uploadToStates(props
|
|
369
|
+
const result = await this.#uploadToStates(this.#speechSource(props));
|
|
361
370
|
const webLink = await this.#getWebLink(props.testOptions);
|
|
362
371
|
const chromecastDevice = props.testOptions?.chromecastDevice || this.config.chromecastDevice;
|
|
363
372
|
// Create announcement JSON
|
|
@@ -376,7 +385,7 @@ class Speech2Device {
|
|
|
376
385
|
return await new Promise((resolve, reject) => {
|
|
377
386
|
let count = 0;
|
|
378
387
|
let checking = false;
|
|
379
|
-
let intervalHandler = setInterval(async () => {
|
|
388
|
+
let intervalHandler = this.adapter.setInterval(async () => {
|
|
380
389
|
// Do not start the next check if the previous one is not finished yet
|
|
381
390
|
if (checking || !intervalHandler) {
|
|
382
391
|
return;
|
|
@@ -386,7 +395,7 @@ class Speech2Device {
|
|
|
386
395
|
/** Stop the interval, so no further checks will be done */
|
|
387
396
|
const stop = () => {
|
|
388
397
|
if (intervalHandler) {
|
|
389
|
-
clearInterval(intervalHandler);
|
|
398
|
+
this.adapter.clearInterval(intervalHandler);
|
|
390
399
|
intervalHandler = null;
|
|
391
400
|
}
|
|
392
401
|
};
|
|
@@ -502,7 +511,7 @@ class Speech2Device {
|
|
|
502
511
|
*/
|
|
503
512
|
async #sayItGoogleHome(props) {
|
|
504
513
|
props.volume ||= this.options.sayLastVolume;
|
|
505
|
-
const result = await this.#uploadToStates(props
|
|
514
|
+
const result = await this.#uploadToStates(this.#speechSource(props));
|
|
506
515
|
const webLink = await this.#getWebLink(props.testOptions);
|
|
507
516
|
const googleHomeServer = props.testOptions?.googleHomeServer || this.config.googleHomeServer;
|
|
508
517
|
if (googleHomeServer && webLink) {
|
|
@@ -559,7 +568,7 @@ class Speech2Device {
|
|
|
559
568
|
* @returns True if the file was uploaded and played
|
|
560
569
|
*/
|
|
561
570
|
async #sayItMP24ftp(props) {
|
|
562
|
-
const result = await this.#uploadToStates(props
|
|
571
|
+
const result = await this.#uploadToStates(this.#speechSource(props), true);
|
|
563
572
|
const mp24Server = props.testOptions?.mp24Server || this.config.mp24Server;
|
|
564
573
|
const ftpPort = props.testOptions?.ftpPort || this.config.ftpPort;
|
|
565
574
|
const ftpUser = props.testOptions?.ftpUser || this.config.ftpUser;
|
|
@@ -627,7 +636,7 @@ class Speech2Device {
|
|
|
627
636
|
* @returns True if the file was played
|
|
628
637
|
*/
|
|
629
638
|
async #sayItSystem(props) {
|
|
630
|
-
const result = await this.#uploadToStates(props
|
|
639
|
+
const result = await this.#uploadToStates(this.#speechSource(props), true);
|
|
631
640
|
const systemCommand = props.testOptions?.systemCommand || this.config.systemCommand;
|
|
632
641
|
const systemPlayer = props.testOptions?.systemPlayer || this.config.systemPlayer;
|
|
633
642
|
const p = (0, node_os_1.platform)();
|