iobroker.sayit 5.3.0 → 5.3.1
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 +21 -264
- package/admin/i18n/de.json +5 -1
- package/admin/i18n/en.json +5 -1
- package/admin/i18n/es.json +5 -1
- package/admin/i18n/fr.json +5 -1
- package/admin/i18n/it.json +5 -1
- package/admin/i18n/nl.json +5 -1
- package/admin/i18n/pl.json +5 -1
- package/admin/i18n/pt.json +5 -1
- package/admin/i18n/ru.json +5 -1
- package/admin/i18n/uk.json +5 -1
- package/admin/i18n/zh-cn.json +5 -1
- package/admin/jsonConfig.json +28 -0
- package/build/lib/text2speech.js +21 -1
- package/build/lib/text2speech.js.map +1 -1
- package/build/main.js +162 -36
- package/build/main.js.map +1 -1
- package/io-package.json +15 -16
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -63,6 +63,19 @@ Offline:
|
|
|
63
63
|
- Coqui TTS: English, German, Spanish, French, Dutch, Japanese, Chinese;
|
|
64
64
|
For instructions how to use go to the [official documentation](https://tts.readthedocs.io/en/latest/index.html)
|
|
65
65
|
|
|
66
|
+
### Test of the text generation
|
|
67
|
+
With the button `Test text generation` on the tab `Engine` you can check if the selected engine is configured properly.
|
|
68
|
+
|
|
69
|
+
The field `Test text` is prefilled with a test sentence in the language of the selected engine and can be changed
|
|
70
|
+
as desired. If the field is empty, the same sentence will be used. The text will be generated with the settings
|
|
71
|
+
of the dialog, so they must not be saved before the test.
|
|
72
|
+
|
|
73
|
+
The text will be only generated and not played, so the test works even if no player is available.
|
|
74
|
+
The dialog shows the size and the duration of the generated file and tries to open it in a new browser tab,
|
|
75
|
+
so you can listen to it. For that the browser must allow pop-ups for the ioBroker admin.
|
|
76
|
+
|
|
77
|
+
To test the generation **and** the playback together, use the button `Test` on the tab `Player`.
|
|
78
|
+
|
|
66
79
|
### Cloud and Amazon Web Services Polly text formatting
|
|
67
80
|
You can format your text with [Speech Synthesis Markup Language](http://docs.aws.amazon.com/polly/latest/dg/ssml.html).
|
|
68
81
|
|
|
@@ -289,6 +302,13 @@ A request is limited to 10000 characters, so longer texts are split and said one
|
|
|
289
302
|
### **WORK IN PROGRESS**
|
|
290
303
|
-->
|
|
291
304
|
## Changelog
|
|
305
|
+
### 5.3.1 (2026-08-13)
|
|
306
|
+
* (@GermanBluefox) Added the button "Test text generation" to the "Engine" tab, so the selected engine can be tested with an own text
|
|
307
|
+
* (@GermanBluefox) Test generations do not overwrite the cached files anymore
|
|
308
|
+
* (@GermanBluefox) Adapter requires node.js >= 22 and js-controller >= 6.0.11 now
|
|
309
|
+
* (@GermanBluefox) Older changelog entries were moved to CHANGELOG_OLD.md
|
|
310
|
+
* (@GermanBluefox) Updated the dependabot and auto-merge configuration
|
|
311
|
+
|
|
292
312
|
### 5.3.0 (2026-08-13)
|
|
293
313
|
* (@GermanBluefox) Added freetts.org as a new TTS engine with more than 400 voices. An API key is required
|
|
294
314
|
* (@GermanBluefox) The engine is selected in two steps now: first the provider and then the voice
|
|
@@ -315,270 +335,7 @@ A request is limited to 10000 characters, so longer texts are split and said one
|
|
|
315
335
|
* (mcm1957) Adapter requires jas-controller 5 or newer now
|
|
316
336
|
* (bluefox) Added possibility to play directly from states: `sayit.0/tts.userfiles/gong.mp3`
|
|
317
337
|
|
|
318
|
-
|
|
319
|
-
* (bluefox) Packages updated
|
|
320
|
-
* (bluefox) Corrected playing in vis
|
|
321
|
-
* (bluefox) Corrected blockly
|
|
322
|
-
* (bluefox) Corrected upload of files
|
|
323
|
-
|
|
324
|
-
### 4.0.1 (2024-05-25)
|
|
325
|
-
* (bluefox) Packages updated
|
|
326
|
-
* (neopholus) Using the pre-calculated duration of the mp3 to wait long enough even for longer announcements
|
|
327
|
-
|
|
328
|
-
### 4.0.0 (2023-10-31)
|
|
329
|
-
* (bluefox) Breaking changes: A minimal node.js version is 16
|
|
330
|
-
* (bluefox) Browser outputs now to vis(1) and vis-2
|
|
331
|
-
|
|
332
|
-
### 3.0.5 (2023-04-17)
|
|
333
|
-
* (bluefox) Corrected error with System player
|
|
334
|
-
* (bluefox) Do not allow for chromecast to cache files.
|
|
335
|
-
* (bluefox) Allowed to add cloud App-Key without running cloud adapter
|
|
336
|
-
* (bluefox) Added austrian language
|
|
337
|
-
* (bluefox) Added norwegian language
|
|
338
|
-
* (klein0r) Used sendTo instead of setState in blockly
|
|
339
|
-
|
|
340
|
-
### 3.0.0 (2023-04-03)
|
|
341
|
-
* (bluefox) Restored cloud engines. Warning: update cloud adapter to at least 4.4.0
|
|
342
|
-
* (bluefox) Breaking changes: A minimal node.js version is 14
|
|
343
|
-
|
|
344
|
-
### 2.1.2 (2023-03-27)
|
|
345
|
-
* (bluefox) Corrected engines with web-link
|
|
346
|
-
|
|
347
|
-
### 2.1.1 (2023-03-24)
|
|
348
|
-
* (Jey-Cee) Added support for Coqui TTS
|
|
349
|
-
* (bluefox) Renamed all configuration attributes
|
|
350
|
-
|
|
351
|
-
### 2.0.0 (2023-03-23)
|
|
352
|
-
* (bluefox) Adapter was completely rewritten with async/await
|
|
353
|
-
* (bluefox) Could be buggy
|
|
354
|
-
|
|
355
|
-
### 1.13.0 (2023-03-22)
|
|
356
|
-
* (bluefox) Made compatible with future js-controller
|
|
357
|
-
|
|
358
|
-
### 1.12.6 (2022-02-09)
|
|
359
|
-
* (bluefox) used setForeignBinaryState if possible
|
|
360
|
-
|
|
361
|
-
### 1.12.5 (2022-02-09)
|
|
362
|
-
* (bluefox) Fixed errors in io-package.json
|
|
363
|
-
|
|
364
|
-
### 1.12.3 (2021-06-25)
|
|
365
|
-
* (bluefox) corrected the Google engine
|
|
366
|
-
* (bluefox) Added new voices: german, korean, brasil, Dutch
|
|
367
|
-
|
|
368
|
-
### 1.12.2 (2020-11-07)
|
|
369
|
-
* (Apollon77) Prevent crash case (Sentry IOBROKER-SAYIT-Q, IOBROKER-SAYIT-S, IOBROKER-SAYIT-T)
|
|
370
|
-
|
|
371
|
-
### 1.12.0 (2020-10-19)
|
|
372
|
-
* (withstu) Support for HEOS was added
|
|
373
|
-
|
|
374
|
-
### 1.11.5 (2020-09-24)
|
|
375
|
-
* (Apollon77) prevent scheduled restart problems
|
|
376
|
-
|
|
377
|
-
### 1.11.3 (2020-09-17)
|
|
378
|
-
* (Apollon77) make sure initialize errors do not crash adapter (Sentry IOBROKER-SAYIT-N)
|
|
379
|
-
|
|
380
|
-
### 1.11.2 (2020-08-08)
|
|
381
|
-
* (Apollon77) catch errors in MDNS discovery (Sentry IOBROKER-SAYIT-E)
|
|
382
|
-
|
|
383
|
-
### 1.11.1 (2020-08-06)
|
|
384
|
-
* (Apollon77) handle errors from process spawn better (Sentry IOBROKER-SAYIT-D)
|
|
385
|
-
|
|
386
|
-
### 1.11.0 (2020-08-02)
|
|
387
|
-
* (Apollon77) Move the generated mp3 file to an own directory in iobroker-data instead of inside node_modules (Hopefully not breaking)
|
|
388
|
-
* (Apollon77) Change the file writing to use Sync methods to make sure they cannot run in parallel
|
|
389
|
-
|
|
390
|
-
### 1.10.2 (2020-07-19)
|
|
391
|
-
* (Apollon77) Crash case prevented (Sentry IOBROKER-SAYIT-8)
|
|
392
|
-
|
|
393
|
-
### 1.10.1 (2020-07-16)
|
|
394
|
-
* (Apollon77) Handle edge cases and prevent crashes (Sentry IOBROKER-SAYIT-4, IOBROKER-SAYIT-6)
|
|
395
|
-
* (Apollon77) try to get caching working again for Yandex
|
|
396
|
-
|
|
397
|
-
### 1.10.0 (2020-07-07)
|
|
398
|
-
* (algar42) GUI updated to fill drop-downs correctly. Premium voices added to Yandex.Cloud engine
|
|
399
|
-
|
|
400
|
-
### 1.9.8 (2020-06-11)
|
|
401
|
-
* (Apollon77) fixed error handling on file copy
|
|
402
|
-
|
|
403
|
-
### 1.9.7 (2020-06-11)
|
|
404
|
-
* (algar42) tts.ogg state added for ogg file type
|
|
405
|
-
|
|
406
|
-
### 1.9.6 (2020-05-24)
|
|
407
|
-
* (bluefox) Showed names of SONOS devices
|
|
408
|
-
|
|
409
|
-
### 1.9.4 (2020-05-11)
|
|
410
|
-
* (Apollon77) Fix Blockly
|
|
411
|
-
* (Apollon77) Update dependencies
|
|
412
|
-
|
|
413
|
-
### 1.9.3 (2020-04-24)
|
|
414
|
-
* (bluefox) Fixed blockly with missing languages
|
|
415
|
-
|
|
416
|
-
### 1.9.2 (2020-04-21)
|
|
417
|
-
Changed type of top-level object to "meta" in order to comply with js-controller v3
|
|
418
|
-
|
|
419
|
-
### 1.9.1 (2020-03-12)
|
|
420
|
-
* (foxriver76) removed usage of adapter.getMessage
|
|
421
|
-
|
|
422
|
-
### 1.9.0 (2019-11-06)
|
|
423
|
-
* (algar42) Output file extension is changed dynamically based on the engine selected
|
|
424
|
-
|
|
425
|
-
### 1.8.2 (2019-07-11)
|
|
426
|
-
* (bluefox) Web server URL will be updated if web server was updated
|
|
427
|
-
|
|
428
|
-
### 1.8.1
|
|
429
|
-
* Add Ukrainian Google Language
|
|
430
|
-
|
|
431
|
-
### 1.8.0 (2018-12-04)
|
|
432
|
-
* (bluefox) Priority for the text was added
|
|
433
|
-
|
|
434
|
-
### 1.7.1 (2018-09-19)
|
|
435
|
-
* (BuZZy1337) fixed error in Blockly-Block
|
|
436
|
-
|
|
437
|
-
### 1.7.0 (2018-06-08)
|
|
438
|
-
* (bluefox) Ivona removed
|
|
439
|
-
* (bluefox) Error was fixed by upload of file to FTP
|
|
440
|
-
* (bluefox) admin3
|
|
441
|
-
|
|
442
|
-
### 1.6.8 (2018-04-11)
|
|
443
|
-
* (BuZZy1337) Generate separate mp3 files for each instance.
|
|
444
|
-
* Fixes [Issue#34](https://github.com/ioBroker/ioBroker.sayit/issues/34)
|
|
445
|
-
* (BuZZy1337) Always upload mp3 files to the state sayit.X.tts.mp3
|
|
446
|
-
|
|
447
|
-
### 1.6.7 (2018-02-05)
|
|
448
|
-
* (Apollon77) Remove unneeded logging
|
|
449
|
-
* (bondrogeen) Admin3 Fixes
|
|
450
|
-
|
|
451
|
-
### 1.6.6 (2017-11-27)
|
|
452
|
-
* (angelnu) Wait for a Google Home announcement to complete
|
|
453
|
-
|
|
454
|
-
### 1.6.5 (2017-11-04)
|
|
455
|
-
* (bluefox) Fix cloud .pro
|
|
456
|
-
|
|
457
|
-
### 1.6.4 (2017-10-18)
|
|
458
|
-
* (bluefox) Fix system commands
|
|
459
|
-
|
|
460
|
-
### 1.6.3 (2017-10-04)
|
|
461
|
-
* (bluefox) Code refactoring
|
|
462
|
-
* (bluefox) Add Google Home as output
|
|
463
|
-
* (bluefox) Remove ivona because not more supported
|
|
464
|
-
|
|
465
|
-
### 1.5.2 (2017-03-09)
|
|
466
|
-
* (bluefox) Catch error if some directory in mp3 folder
|
|
467
|
-
|
|
468
|
-
### 1.5.1 (2017-02-15)
|
|
469
|
-
* (bluefox) Fix blockly language
|
|
470
|
-
|
|
471
|
-
### 1.5.0 (2017-01-27)
|
|
472
|
-
* (DarkChaos) Add AWS Polly as source
|
|
473
|
-
* (bluefox) Add cloud as a source
|
|
474
|
-
|
|
475
|
-
### 1.4.0 (2017-01-16)
|
|
476
|
-
* (bluefox) fixed install problem
|
|
477
|
-
* (bluefox) add PicoTTS as a source
|
|
478
|
-
|
|
479
|
-
### 1.3.3 (2017-01-13)
|
|
480
|
-
* (bluefox) show only installed instances in blockly
|
|
481
|
-
|
|
482
|
-
### 1.3.2 (2017-01-10)
|
|
483
|
-
* (angelnu) changes for new chromecast tts
|
|
484
|
-
|
|
485
|
-
### 1.3.1 (2016-12-27)
|
|
486
|
-
* (bluefox) small fixed of config dialog
|
|
487
|
-
* (AirKing555) Fix Volume change
|
|
488
|
-
|
|
489
|
-
### 1.3.0 (2016-12-20)
|
|
490
|
-
* (instalator) add mpd
|
|
491
|
-
|
|
492
|
-
### 1.2.1 (2016-10-31)
|
|
493
|
-
* (bluefox) Fix cache
|
|
494
|
-
|
|
495
|
-
### 1.2.0 (2016-10-28)
|
|
496
|
-
* (bluefox) Finish sayit
|
|
497
|
-
|
|
498
|
-
### 1.1.3 (2016-10-24)
|
|
499
|
-
* (bluefox) Fix changing of engine
|
|
500
|
-
|
|
501
|
-
### 1.1.2 (2016-10-20)
|
|
502
|
-
* (bluefox) Add omxplayer option
|
|
503
|
-
|
|
504
|
-
### 1.0.1 (2016-10-12)
|
|
505
|
-
* (bluefox) support for blockly
|
|
506
|
-
|
|
507
|
-
### 1.0.0 (2016-05-14)
|
|
508
|
-
* (bluefox) Make the type of mp3 as file
|
|
509
|
-
|
|
510
|
-
### 0.3.16 (2015-12-26)
|
|
511
|
-
* (Vegetto) Support for Chromecast devices
|
|
512
|
-
|
|
513
|
-
### 0.3.16 (2015-12-26)
|
|
514
|
-
* (bluefox) enable play of mp3 files from disk
|
|
515
|
-
|
|
516
|
-
### 0.3.15 (2015-11-10)
|
|
517
|
-
* (bluefox) fill default settings by first start
|
|
518
|
-
|
|
519
|
-
### 0.3.14 (2015-11-01)
|
|
520
|
-
* (bluefox) fixed error with sayItWindows
|
|
521
|
-
|
|
522
|
-
### 0.3.13 (2015-10-27)
|
|
523
|
-
* (bluefox) fixed error with sayItSystem
|
|
524
|
-
|
|
525
|
-
### 0.3.12 (2015-10-06)
|
|
526
|
-
* (bluefox) fixed error if received mp3 file is too short
|
|
527
|
-
* (bluefox) try to implement cache datapoint (you can use `sayit.0.tts.cachetext` to create cache for phrases and use sayit without internet)
|
|
528
|
-
|
|
529
|
-
### 0.3.11 (2015-08-03)
|
|
530
|
-
* (bluefox) change google requests from http to https
|
|
531
|
-
|
|
532
|
-
### 0.3.10 (2015-07-26)
|
|
533
|
-
* (bluefox) add new voice Russian-Maxim
|
|
534
|
-
* (bluefox) fixed error with mp24ftp
|
|
535
|
-
|
|
536
|
-
### 0.3.9 (2015-07-09)
|
|
537
|
-
* (bluefox) fixed error by mediaplayer24
|
|
538
|
-
|
|
539
|
-
### 0.3.8 (2015-06-09)
|
|
540
|
-
* (bluefox) make the volume for announcement configurable
|
|
541
|
-
* (bluefox) make the command for "system" configurable
|
|
542
|
-
|
|
543
|
-
### 0.3.7 (2015-05-28)
|
|
544
|
-
* (bluefox) fixed volume for an announcement
|
|
545
|
-
* (bluefox) support for play files from internal filesystem, like `/sayit.0/tts.userfiles/myGong.mp3`
|
|
546
|
-
|
|
547
|
-
### 0.3.6 (2015-03-24)
|
|
548
|
-
* (bluefox) fixed error with volume by sonos
|
|
549
|
-
|
|
550
|
-
### 0.3.5 (2015-03-22)
|
|
551
|
-
* (bluefox) fixed error in an announcement
|
|
552
|
-
|
|
553
|
-
### 0.3.4 (2015-03-20)
|
|
554
|
-
* (bluefox) fixed error in an announcement
|
|
555
|
-
|
|
556
|
-
### 0.3.3 (2015-03-20)
|
|
557
|
-
* (bluefox) enable announcement
|
|
558
|
-
|
|
559
|
-
### 0.3.2 (2015-03-16)
|
|
560
|
-
* (bluefox) clear cache if engine changed
|
|
561
|
-
|
|
562
|
-
### 0.3.1 (2015-03-15)
|
|
563
|
-
* (bluefox) fixed small error with log
|
|
564
|
-
|
|
565
|
-
### 0.3.0 (2015-03-08)
|
|
566
|
-
* (bluefox) add ivona/Amazon voices
|
|
567
|
-
|
|
568
|
-
### 0.2.2 (2015-03-08)
|
|
569
|
-
* (bluefox) fixed error by buffering of non-generated texts.
|
|
570
|
-
|
|
571
|
-
### 0.2.1 (2015-03-07)
|
|
572
|
-
* (bluefox) fixed error by buffering of non-generated texts.
|
|
573
|
-
|
|
574
|
-
### 0.2.0 (2015-03-02)
|
|
575
|
-
* (bluefox) add yandex-russian support
|
|
576
|
-
|
|
577
|
-
### 0.1.0 (2015-03-02)
|
|
578
|
-
* (bluefox) queue texts
|
|
579
|
-
|
|
580
|
-
### 0.0.1 (2015-02-06)
|
|
581
|
-
* (bluefox) initial commit
|
|
338
|
+
[Older changelogs can be found there](CHANGELOG_OLD.md)
|
|
582
339
|
|
|
583
340
|
## License
|
|
584
341
|
|
package/admin/i18n/de.json
CHANGED
|
@@ -68,6 +68,8 @@
|
|
|
68
68
|
"Server:": "Server",
|
|
69
69
|
"System command": "Systemkommando",
|
|
70
70
|
"System command:": "Systemkommando",
|
|
71
|
+
"Test text": "Testtext",
|
|
72
|
+
"Test text generation": "Textgenerierung testen",
|
|
71
73
|
"Type": "Ausgabe durch",
|
|
72
74
|
"Type:": "Ausgabe durch",
|
|
73
75
|
"User": "Benutzer",
|
|
@@ -91,10 +93,12 @@
|
|
|
91
93
|
"play": "abspielen",
|
|
92
94
|
"sayIt adapter settings": "sayIt Einstellungen",
|
|
93
95
|
"select": "auswählen",
|
|
96
|
+
"test_generate_tooltip": "Der Text wird nur generiert und nicht abgespielt. Die generierte Datei wird in einem neuen Browser-Tab geöffnet",
|
|
97
|
+
"test_text_help": "Wenn das Feld leer ist, wird ein Testsatz in der Sprache der Engine verwendet",
|
|
94
98
|
"tooltip_command": "Dieses Kommando wird ausgeführt, um eigenen System-Player zu benutzen",
|
|
95
99
|
"tooltip_type": "Damit wird gesetzt, wo die Sprache ausgegeben wird",
|
|
96
100
|
"tree": "Baum",
|
|
97
101
|
"vis-2.0 (New)": "vis-2.0 (neu)",
|
|
98
102
|
"vis.0 (deprecated)": "vis.0 (veraltet)",
|
|
99
103
|
"vis.0 and vis-2.0": "vis.0 und vis-2.0"
|
|
100
|
-
}
|
|
104
|
+
}
|
package/admin/i18n/en.json
CHANGED
|
@@ -68,6 +68,8 @@
|
|
|
68
68
|
"Server:": "Server",
|
|
69
69
|
"System command": "System command",
|
|
70
70
|
"System command:": "System command",
|
|
71
|
+
"Test text": "Test text",
|
|
72
|
+
"Test text generation": "Test text generation",
|
|
71
73
|
"Type": "Output in",
|
|
72
74
|
"Type:": "Output in",
|
|
73
75
|
"User": "User",
|
|
@@ -91,10 +93,12 @@
|
|
|
91
93
|
"play": "play",
|
|
92
94
|
"sayIt adapter settings": "sayIt adapter settings",
|
|
93
95
|
"select": "select",
|
|
96
|
+
"test_generate_tooltip": "The text will be only generated and not played. The generated file will be opened in a new browser tab",
|
|
97
|
+
"test_text_help": "If the field is empty, a test sentence in the language of the engine will be used",
|
|
94
98
|
"tooltip_command": "This command will be executed, to use the custom system player",
|
|
95
99
|
"tooltip_type": "Specify where the voice must be played",
|
|
96
100
|
"tree": "tree",
|
|
97
101
|
"vis-2.0 (New)": "vis-2.0 (new)",
|
|
98
102
|
"vis.0 (deprecated)": "vis.0 (deprecated)",
|
|
99
103
|
"vis.0 and vis-2.0": "vis.0 and vis-2.0"
|
|
100
|
-
}
|
|
104
|
+
}
|
package/admin/i18n/es.json
CHANGED
|
@@ -68,6 +68,8 @@
|
|
|
68
68
|
"Server:": "Servidor",
|
|
69
69
|
"System command": "Comando del sistema",
|
|
70
70
|
"System command:": "Comando del sistema",
|
|
71
|
+
"Test text": "Texto de prueba",
|
|
72
|
+
"Test text generation": "Probar la generación de texto",
|
|
71
73
|
"Type": "Salida en",
|
|
72
74
|
"Type:": "Salida en",
|
|
73
75
|
"User": "Usuario",
|
|
@@ -91,10 +93,12 @@
|
|
|
91
93
|
"play": "jugar",
|
|
92
94
|
"sayIt adapter settings": "sayIt configuración del adaptador",
|
|
93
95
|
"select": "seleccionar",
|
|
96
|
+
"test_generate_tooltip": "El texto solo se generará y no se reproducirá. El archivo generado se abrirá en una nueva pestaña del navegador",
|
|
97
|
+
"test_text_help": "Si el campo está vacío, se utilizará una frase de prueba en el idioma del motor",
|
|
94
98
|
"tooltip_command": "Este comando se ejecutará para usar el reproductor de sistema personalizado",
|
|
95
99
|
"tooltip_type": "Especifique dónde debe reproducirse la voz",
|
|
96
100
|
"tree": "árbol",
|
|
97
101
|
"vis-2.0 (New)": "vis-2.0 (nuevo)",
|
|
98
102
|
"vis.0 (deprecated)": "vis.0 (en desuso)",
|
|
99
103
|
"vis.0 and vis-2.0": "vis.0 y vis-2.0"
|
|
100
|
-
}
|
|
104
|
+
}
|
package/admin/i18n/fr.json
CHANGED
|
@@ -68,6 +68,8 @@
|
|
|
68
68
|
"Server:": "Serveur",
|
|
69
69
|
"System command": "Commande système",
|
|
70
70
|
"System command:": "Commande système",
|
|
71
|
+
"Test text": "Texte de test",
|
|
72
|
+
"Test text generation": "Tester la génération du texte",
|
|
71
73
|
"Type": "Sortie en",
|
|
72
74
|
"Type:": "Sortie dans",
|
|
73
75
|
"User": "Utilisateur",
|
|
@@ -91,10 +93,12 @@
|
|
|
91
93
|
"play": "jouer",
|
|
92
94
|
"sayIt adapter settings": "sayIt paramètres de l'adaptateur",
|
|
93
95
|
"select": "sélectionner",
|
|
96
|
+
"test_generate_tooltip": "Le texte sera uniquement généré et non lu. Le fichier généré sera ouvert dans un nouvel onglet du navigateur",
|
|
97
|
+
"test_text_help": "Si le champ est vide, une phrase de test dans la langue du moteur sera utilisée",
|
|
94
98
|
"tooltip_command": "Cette commande sera exécutée pour utiliser le lecteur système personnalisé",
|
|
95
99
|
"tooltip_type": "Précisez où la voix doit être jouée",
|
|
96
100
|
"tree": "arbre",
|
|
97
101
|
"vis-2.0 (New)": "vis-2.0 (nouveau)",
|
|
98
102
|
"vis.0 (deprecated)": "vis.0 (obsolète)",
|
|
99
103
|
"vis.0 and vis-2.0": "vis.0 et vis-2.0"
|
|
100
|
-
}
|
|
104
|
+
}
|
package/admin/i18n/it.json
CHANGED
|
@@ -68,6 +68,8 @@
|
|
|
68
68
|
"Server:": "server",
|
|
69
69
|
"System command": "Comando di sistema",
|
|
70
70
|
"System command:": "Comando di sistema",
|
|
71
|
+
"Test text": "Testo di prova",
|
|
72
|
+
"Test text generation": "Prova la generazione del testo",
|
|
71
73
|
"Type": "Uscita in",
|
|
72
74
|
"Type:": "Uscita in",
|
|
73
75
|
"User": "Utente",
|
|
@@ -91,10 +93,12 @@
|
|
|
91
93
|
"play": "giocare",
|
|
92
94
|
"sayIt adapter settings": "impostazioni dell'adattatore sayIt",
|
|
93
95
|
"select": "selezionare",
|
|
96
|
+
"test_generate_tooltip": "Il testo verrà solo generato e non riprodotto. Il file generato verrà aperto in una nuova scheda del browser",
|
|
97
|
+
"test_text_help": "Se il campo è vuoto, verrà utilizzata una frase di prova nella lingua del motore",
|
|
94
98
|
"tooltip_command": "Questo comando verrà eseguito, per utilizzare il player di sistema personalizzato",
|
|
95
99
|
"tooltip_type": "Specificare dove deve essere suonata la voce",
|
|
96
100
|
"tree": "albero",
|
|
97
101
|
"vis-2.0 (New)": "vis-2.0 (nuovo)",
|
|
98
102
|
"vis.0 (deprecated)": "vis.0 (deprecato)",
|
|
99
103
|
"vis.0 and vis-2.0": "vis.0 e vis-2.0"
|
|
100
|
-
}
|
|
104
|
+
}
|
package/admin/i18n/nl.json
CHANGED
|
@@ -68,6 +68,8 @@
|
|
|
68
68
|
"Server:": "Server",
|
|
69
69
|
"System command": "Systeemopdracht",
|
|
70
70
|
"System command:": "Systeemopdracht",
|
|
71
|
+
"Test text": "Testtekst",
|
|
72
|
+
"Test text generation": "Tekstgeneratie testen",
|
|
71
73
|
"Type": "Uitgang in",
|
|
72
74
|
"Type:": "Uitgang in",
|
|
73
75
|
"User": "Gebruiker",
|
|
@@ -91,10 +93,12 @@
|
|
|
91
93
|
"play": "spelen",
|
|
92
94
|
"sayIt adapter settings": "sayIt adapter-instellingen",
|
|
93
95
|
"select": "kiezen",
|
|
96
|
+
"test_generate_tooltip": "De tekst wordt alleen gegenereerd en niet afgespeeld. Het gegenereerde bestand wordt in een nieuw browsertabblad geopend",
|
|
97
|
+
"test_text_help": "Als het veld leeg is, wordt een testzin in de taal van de engine gebruikt",
|
|
94
98
|
"tooltip_command": "Deze opdracht wordt uitgevoerd om de aangepaste systeemspeler te gebruiken",
|
|
95
99
|
"tooltip_type": "Geef op waar de stem moet worden afgespeeld",
|
|
96
100
|
"tree": "boom",
|
|
97
101
|
"vis-2.0 (New)": "vis-2.0 (nieuw)",
|
|
98
102
|
"vis.0 (deprecated)": "vis.0 (verouderd)",
|
|
99
103
|
"vis.0 and vis-2.0": "vis.0 en vis-2.0"
|
|
100
|
-
}
|
|
104
|
+
}
|
package/admin/i18n/pl.json
CHANGED
|
@@ -68,6 +68,8 @@
|
|
|
68
68
|
"Server:": "serwer",
|
|
69
69
|
"System command": "Polecenie systemowe",
|
|
70
70
|
"System command:": "Polecenie systemowe",
|
|
71
|
+
"Test text": "Tekst testowy",
|
|
72
|
+
"Test text generation": "Przetestuj generowanie tekstu",
|
|
71
73
|
"Type": "Wyjście w",
|
|
72
74
|
"Type:": "Wyjście w",
|
|
73
75
|
"User": "Użytkownik",
|
|
@@ -91,10 +93,12 @@
|
|
|
91
93
|
"play": "grać",
|
|
92
94
|
"sayIt adapter settings": "sayTo ustawienia adaptera",
|
|
93
95
|
"select": "Wybierz",
|
|
96
|
+
"test_generate_tooltip": "Tekst zostanie tylko wygenerowany, a nie odtworzony. Wygenerowany plik zostanie otwarty w nowej karcie przeglądarki",
|
|
97
|
+
"test_text_help": "Jeśli pole jest puste, zostanie użyte zdanie testowe w języku silnika",
|
|
94
98
|
"tooltip_command": "To polecenie zostanie wykonane, aby użyć niestandardowego odtwarzacza systemu",
|
|
95
99
|
"tooltip_type": "Określ, gdzie musi być odtwarzany głos",
|
|
96
100
|
"tree": "drzewo",
|
|
97
101
|
"vis-2.0 (New)": "vis-2.0 (nowy)",
|
|
98
102
|
"vis.0 (deprecated)": "vis.0 (przestarzałe)",
|
|
99
103
|
"vis.0 and vis-2.0": "vis.0 i vis-2.0"
|
|
100
|
-
}
|
|
104
|
+
}
|
package/admin/i18n/pt.json
CHANGED
|
@@ -68,6 +68,8 @@
|
|
|
68
68
|
"Server:": "Servidor",
|
|
69
69
|
"System command": "Comando do sistema",
|
|
70
70
|
"System command:": "Comando do sistema",
|
|
71
|
+
"Test text": "Texto de teste",
|
|
72
|
+
"Test text generation": "Testar a geração de texto",
|
|
71
73
|
"Type": "Saída em",
|
|
72
74
|
"Type:": "Saída em",
|
|
73
75
|
"User": "Utilizador",
|
|
@@ -91,10 +93,12 @@
|
|
|
91
93
|
"play": "Toque",
|
|
92
94
|
"sayIt adapter settings": "configurações do adaptador sayIt",
|
|
93
95
|
"select": "selecione",
|
|
96
|
+
"test_generate_tooltip": "O texto será apenas gerado e não reproduzido. O arquivo gerado será aberto em uma nova aba do navegador",
|
|
97
|
+
"test_text_help": "Se o campo estiver vazio, será usada uma frase de teste no idioma do motor",
|
|
94
98
|
"tooltip_command": "Este comando será executado para usar o player do sistema personalizado",
|
|
95
99
|
"tooltip_type": "Especifique onde a voz deve ser tocada",
|
|
96
100
|
"tree": "árvore",
|
|
97
101
|
"vis-2.0 (New)": "vis-2.0 (novo)",
|
|
98
102
|
"vis.0 (deprecated)": "vis.0 (obsoleto)",
|
|
99
103
|
"vis.0 and vis-2.0": "vis.0 e vis-2.0"
|
|
100
|
-
}
|
|
104
|
+
}
|
package/admin/i18n/ru.json
CHANGED
|
@@ -68,6 +68,8 @@
|
|
|
68
68
|
"Server:": "Сервер",
|
|
69
69
|
"System command": "Системный вызов",
|
|
70
70
|
"System command:": "Системный вызов",
|
|
71
|
+
"Test text": "Тестовый текст",
|
|
72
|
+
"Test text generation": "Проверить генерацию текста",
|
|
71
73
|
"Type": "Вывод звука",
|
|
72
74
|
"Type:": "Вывод звука",
|
|
73
75
|
"User": "Пользователь",
|
|
@@ -91,10 +93,12 @@
|
|
|
91
93
|
"play": "играть",
|
|
92
94
|
"sayIt adapter settings": "sayIt Настройки",
|
|
93
95
|
"select": "выбрать",
|
|
96
|
+
"test_generate_tooltip": "Текст будет только сгенерирован, но не воспроизведён. Сгенерированный файл откроется в новой вкладке браузера",
|
|
97
|
+
"test_text_help": "Если поле пустое, будет использовано тестовое предложение на языке движка",
|
|
94
98
|
"tooltip_command": "Эта команда выполнится для проигрывания с собственным плеером",
|
|
95
99
|
"tooltip_type": "Укажите как и где будет выводится голос",
|
|
96
100
|
"tree": "дерево",
|
|
97
101
|
"vis-2.0 (New)": "vis-2.0 (новое)",
|
|
98
102
|
"vis.0 (deprecated)": "vis.0 (устарело)",
|
|
99
103
|
"vis.0 and vis-2.0": "vis.0 и vis-2.0"
|
|
100
|
-
}
|
|
104
|
+
}
|
package/admin/i18n/uk.json
CHANGED
|
@@ -68,6 +68,8 @@
|
|
|
68
68
|
"Server:": "Сервер",
|
|
69
69
|
"System command": "Системна команда",
|
|
70
70
|
"System command:": "Системна команда",
|
|
71
|
+
"Test text": "Тестовий текст",
|
|
72
|
+
"Test text generation": "Перевірити генерацію тексту",
|
|
71
73
|
"Type": "Вихід в",
|
|
72
74
|
"Type:": "Вихід в",
|
|
73
75
|
"User": "Користувач",
|
|
@@ -91,10 +93,12 @@
|
|
|
91
93
|
"play": "грати",
|
|
92
94
|
"sayIt adapter settings": "налаштування адаптера sayIt",
|
|
93
95
|
"select": "вибрати",
|
|
96
|
+
"test_generate_tooltip": "Текст буде лише згенеровано, але не відтворено. Згенерований файл відкриється в новій вкладці браузера",
|
|
97
|
+
"test_text_help": "Якщо поле порожнє, буде використано тестове речення мовою рушія",
|
|
94
98
|
"tooltip_command": "Ця команда буде виконана для використання спеціального системного програвача",
|
|
95
99
|
"tooltip_type": "Вкажіть, де має відтворюватися голос",
|
|
96
100
|
"tree": "дерево",
|
|
97
101
|
"vis-2.0 (New)": "vis-2.0 (новий)",
|
|
98
102
|
"vis.0 (deprecated)": "vis.0 (застаріле)",
|
|
99
103
|
"vis.0 and vis-2.0": "vis.0 і vis-2.0"
|
|
100
|
-
}
|
|
104
|
+
}
|
package/admin/i18n/zh-cn.json
CHANGED
|
@@ -68,6 +68,8 @@
|
|
|
68
68
|
"Server:": "服务器",
|
|
69
69
|
"System command": "系统的命令",
|
|
70
70
|
"System command:": "系统的命令",
|
|
71
|
+
"Test text": "测试文本",
|
|
72
|
+
"Test text generation": "测试文本生成",
|
|
71
73
|
"Type": "输出",
|
|
72
74
|
"Type:": "输出",
|
|
73
75
|
"User": "用户",
|
|
@@ -91,10 +93,12 @@
|
|
|
91
93
|
"play": "玩",
|
|
92
94
|
"sayIt adapter settings": "sayIt设置适配器",
|
|
93
95
|
"select": "选择",
|
|
96
|
+
"test_generate_tooltip": "文本仅被生成而不会被播放。生成的文件将在新的浏览器标签页中打开",
|
|
97
|
+
"test_text_help": "如果该字段为空,将使用引擎语言的测试语句",
|
|
94
98
|
"tooltip_command": "这种命令将被执行的,使用的定义系统中的玩家",
|
|
95
99
|
"tooltip_type": "指定的语音必须发挥",
|
|
96
100
|
"tree": "树",
|
|
97
101
|
"vis-2.0 (New)": "vis-2.0(新)",
|
|
98
102
|
"vis.0 (deprecated)": "vis.0(已弃用)",
|
|
99
103
|
"vis.0 and vis-2.0": "vis.0 和 vis-2.0"
|
|
100
|
-
}
|
|
104
|
+
}
|
package/admin/jsonConfig.json
CHANGED
|
@@ -1436,6 +1436,34 @@
|
|
|
1436
1436
|
"sm": 12,
|
|
1437
1437
|
"md": 4,
|
|
1438
1438
|
"lg": 2
|
|
1439
|
+
},
|
|
1440
|
+
"_testText": {
|
|
1441
|
+
"newLine": true,
|
|
1442
|
+
"type": "text",
|
|
1443
|
+
"label": "Test text",
|
|
1444
|
+
"help": "test_text_help",
|
|
1445
|
+
"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
|
+
"minRows": 2,
|
|
1447
|
+
"maxRows": 5,
|
|
1448
|
+
"sm": 12,
|
|
1449
|
+
"md": 8,
|
|
1450
|
+
"lg": 6
|
|
1451
|
+
},
|
|
1452
|
+
"_testGenerate": {
|
|
1453
|
+
"newLine": true,
|
|
1454
|
+
"type": "sendTo",
|
|
1455
|
+
"variant": "contained",
|
|
1456
|
+
"label": "Test text generation",
|
|
1457
|
+
"tooltip": "test_generate_tooltip",
|
|
1458
|
+
"command": "testGenerate",
|
|
1459
|
+
"jsonData": "${JSON.stringify(data)}",
|
|
1460
|
+
"icon": "send",
|
|
1461
|
+
"showProcess": true,
|
|
1462
|
+
"openUrl": true,
|
|
1463
|
+
"timeout": 120000,
|
|
1464
|
+
"sm": 12,
|
|
1465
|
+
"md": 4,
|
|
1466
|
+
"lg": 3
|
|
1439
1467
|
}
|
|
1440
1468
|
}
|
|
1441
1469
|
}
|
package/build/lib/text2speech.js
CHANGED
|
@@ -70,6 +70,24 @@ class Text2Speech {
|
|
|
70
70
|
}
|
|
71
71
|
return null;
|
|
72
72
|
}
|
|
73
|
+
/**
|
|
74
|
+
* Maximal number of characters, that could be requested at once from the given engine.
|
|
75
|
+
* Longer texts must be split, because the engines answer with an error or with a truncated text.
|
|
76
|
+
*
|
|
77
|
+
* @param engine Name of the engine, like "de-DE_AP_Female"
|
|
78
|
+
* @returns Maximal length of one request or 0 if the engine has no limit
|
|
79
|
+
*/
|
|
80
|
+
static getMaxTextLength(engine) {
|
|
81
|
+
// Unknown engines are generated with google (see "sayItGetSpeech")
|
|
82
|
+
const type = engines_1.sayitEngines[engine]?.engine || 'google';
|
|
83
|
+
if (type === 'google') {
|
|
84
|
+
return GOOGLE_MAX_TEXT_LENGTH;
|
|
85
|
+
}
|
|
86
|
+
if (type === 'freeTTS') {
|
|
87
|
+
return FREETTS_MAX_TEXT_LENGTH;
|
|
88
|
+
}
|
|
89
|
+
return 0;
|
|
90
|
+
}
|
|
73
91
|
/**
|
|
74
92
|
* Split a long text into parts, which are not longer than "max" characters.
|
|
75
93
|
* The text will be split by the punctuation marks and, if that is not enough, by the words.
|
|
@@ -786,7 +804,9 @@ class Text2Speech {
|
|
|
786
804
|
// fallback to google
|
|
787
805
|
await this.#sayItGetSpeechGoogle(props);
|
|
788
806
|
}
|
|
789
|
-
|
|
807
|
+
// The test files are generated with the settings of the configuration dialog and not with the
|
|
808
|
+
// saved ones, so they must not be stored in the cache of the saved configuration
|
|
809
|
+
if (this.#config.cache && !props.testOptions) {
|
|
790
810
|
this.#cacheFile(props.text, props.language, this.#getCachedFileName(`${props.language};${props.text}`));
|
|
791
811
|
}
|
|
792
812
|
return this.#MP3FILE;
|