iobroker.sayit 1.12.2 → 1.12.6
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/LICENSE +1 -1
- package/README.md +104 -79
- package/admin/engines.js +9 -1
- package/admin/i18n/de/translations.json +3 -3
- package/admin/i18n/es/translations.json +1 -1
- package/admin/i18n/fr/translations.json +1 -1
- package/admin/i18n/it/translations.json +1 -1
- package/admin/i18n/nl/translations.json +1 -1
- package/admin/i18n/pl/translations.json +1 -1
- package/admin/i18n/pt/translations.json +3 -3
- package/admin/i18n/ru/translations.json +5 -5
- package/admin/i18n/zh-cn/translations.json +1 -1
- package/admin/index_m.html +8 -6
- package/admin/words.js +6 -6
- package/io-package.json +298 -352
- package/lib/speech2device.js +90 -91
- package/lib/text2speech.js +182 -224
- package/main.js +119 -87
- package/package.json +26 -12
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
The MIT License (MIT)
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2015-
|
|
3
|
+
Copyright (c) 2015-2022 bluefox <dogafox@gmail.com>
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.md
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|

|
|
2
2
|
# ioBroker sayit adapter
|
|
3
3
|
|
|
4
|
-

|
|
4
|
+

|
|
5
|
+

|
|
6
|
+
[](https://www.npmjs.com/package/iobroker.sayit)
|
|
7
|
+
|
|
8
|
+

|
|
9
|
+
[](https://weblate.iobroker.net/engage/adapters/?utm_source=widget)
|
|
5
10
|
[](https://www.npmjs.com/package/iobroker.sayit)
|
|
6
|
-
[](https://nodei.co/npm/iobroker.sayit/)
|
|
7
11
|
|
|
8
12
|
**This adapter uses Sentry libraries to automatically report exceptions and code errors to the developers.** For more details and for information how to disable the error reporting see [Sentry-Plugin Documentation](https://github.com/ioBroker/plugin-sentry#plugin-sentry)! Sentry reporting is used starting with js-controller 3.0.
|
|
9
13
|
|
|
@@ -12,7 +16,7 @@ SayIt Adapter can convert text to speech and play it on some device.
|
|
|
12
16
|
## Configuration
|
|
13
17
|
Actual following outputs are supported:
|
|
14
18
|
|
|
15
|
-
- *Browser* - the text will be played by browser with opened iobroker.vis page. It is supported almost by every desktop browser and by few
|
|
19
|
+
- *Browser* - the text will be played by browser with opened `iobroker.vis` page. It is supported almost by every desktop browser and by few mobile Browsers.
|
|
16
20
|
|
|
17
21
|
- *[Home24- MediaPlayer](http://www.home-24.net/index.php?app=media)* - the text will be sent and played to the Android device with Home24 - MediaPlayer installed. For this will be used build in Android text to speech engine. The port cannot be changed and set to 50000.
|
|
18
22
|
|
|
@@ -21,19 +25,19 @@ Actual following outputs are supported:
|
|
|
21
25
|
|
|
22
26
|
- *System* - the text will be played by OS, where the ioBroker adapter runs. Following OS are supported: Windows, linux, Mac OSx.
|
|
23
27
|
|
|
24
|
-
- *Windows engine* - the text will be played by windows, where the sayIt adapter runs. For this will be used windows text to speech engine, that should be preconfigured by user. You can check [here](http://windows.microsoft.com/en-us/windows/setting-speech-options#1TC=windows-7) how to
|
|
28
|
+
- *Windows engine* - the text will be played by windows, where the sayIt adapter runs. For this will be used windows text to speech engine, that should be preconfigured by user. You can check [here](http://windows.microsoft.com/en-us/windows/setting-speech-options#1TC=windows-7) how to set up it.
|
|
25
29
|
|
|
26
30
|
- *Sonos* - play text on sonos device. Be sure the Web Adapter is enabled. It is required to enable SONOS to read the generated mp3 files.
|
|
27
31
|
|
|
28
|
-
- *Heos* - play text on
|
|
32
|
+
- *Heos* - play text on HEOS device. Be sure the Web Adapter is enabled. It is required to enable HEOS to read the generated mp3 files.
|
|
29
33
|
|
|
30
34
|
- *Chromecast* - play text on Chromecast device.
|
|
31
35
|
|
|
32
36
|
- *MPD* - play text on Music Player Daemon. Use only **http** for web adapter, don't use https.
|
|
33
37
|
|
|
34
|
-
To enable the text to speech on RaspberryPI or linux system call one time following command
|
|
38
|
+
To enable the text to speech on RaspberryPI or linux system call one time following command `sudo apt-get -y install mpg321` to install mpg321.
|
|
35
39
|
|
|
36
|
-
The mp3/wav files can be played to by writing its name into the object. (e.g.
|
|
40
|
+
The mp3/wav files can be played to by writing its name into the object. (e.g. `/vis.0/main/img/door-bell.mp3`)
|
|
37
41
|
|
|
38
42
|
The file must be first loaded.
|
|
39
43
|
|
|
@@ -52,17 +56,17 @@ online:
|
|
|
52
56
|
|
|
53
57
|
offline:
|
|
54
58
|
- PicoTTS (linux only): English, German, Italian, Spanish, French
|
|
55
|
-
For PicoTTS it is necessary to install the following packages: libttspico-utils and lame.
|
|
56
|
-
Installation command:
|
|
59
|
+
For PicoTTS it is necessary to install the following packages: `libttspico-utils` and lame.
|
|
60
|
+
Installation command: `sudo apt-get install libttspico-utils lame`
|
|
57
61
|
|
|
58
62
|
### Cloud and Amazon Web Services Polly text formatting
|
|
59
63
|
You can format your text with [Speech Synthesis Markup Language](http://docs.aws.amazon.com/polly/latest/dg/ssml.html).
|
|
60
64
|
|
|
61
65
|
Most useful features:
|
|
62
|
-
-
|
|
63
|
-
-
|
|
64
|
-
-
|
|
65
|
-
-
|
|
66
|
+
- `<break time="3s"/>`- make a pause for x seconds (max 10 seconds).
|
|
67
|
+
- `<emphasis> big </emphasis>` - make an emphasis on some word.
|
|
68
|
+
- `<prosody volume="+6dB" rate="90%">I am speaking this</prosody>` - control speed and volume parameters.
|
|
69
|
+
- `<say-as interpret-as="digits">12345</say-as>` - say every digit separately.
|
|
66
70
|
|
|
67
71
|
More [info](https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/speech-synthesis-markup-language-ssml-reference).
|
|
68
72
|
|
|
@@ -71,7 +75,7 @@ If you have some program, that can play audio files locally or somewhere else, y
|
|
|
71
75
|
|
|
72
76
|
```myCustomPlayer --option```
|
|
73
77
|
|
|
74
|
-
If **System** output is selected, the sayit adapter will execute following command on local system:
|
|
78
|
+
If **System** output is selected, the `sayit` adapter will execute following command on local system:
|
|
75
79
|
|
|
76
80
|
```myCustomPlayer --option /opt/iobroker/node_modules/iobroker.sayit/say.mp3```
|
|
77
81
|
|
|
@@ -83,21 +87,21 @@ sayIt will make ```myCustomPlayer --option "/opt/iobroker/node_modules/iobroker.
|
|
|
83
87
|
|
|
84
88
|
## Usage
|
|
85
89
|
SayIt adapter cannot be used alone. It must be controlled from javascript adapter or from "vis" with specific widget.
|
|
86
|
-
After creation of adapter instance
|
|
87
|
-
- sayit.N.tts.text
|
|
88
|
-
- sayit.N.tts.volume
|
|
89
|
-
- sayit.N.tts.playing
|
|
90
|
-
- sayit.N.tts.cachetext
|
|
91
|
-
E.g. you can enter here manually "No internet" and if ping to google.com is negative, write "No internet" to "tts.text" and it will pronounced. Of course cache must be enabled.
|
|
90
|
+
After creation of adapter instance you can find following objects:
|
|
91
|
+
- `sayit.N.tts.text`: Phrase to be spoken.
|
|
92
|
+
- `sayit.N.tts.volume`: volume which will be used by playing of the phrase.
|
|
93
|
+
- `sayit.N.tts.playing`: true if text is now playing and false if not. Supported only for "windows" and "system" play mode.
|
|
94
|
+
- `sayit.N.tts.cachetext`: Phrase to be cached, and then it can be used without internet.
|
|
95
|
+
E.g. you can enter here manually "No internet" and if ping to google.com is negative, write "No internet" to "tts.text" and it will be pronounced. Of course cache must be enabled.
|
|
92
96
|
|
|
93
|
-
State **tts.text** supports extended syntax, so the
|
|
94
|
-
E.g. if adapter has engine "Google-english", it is possible with phrase ```de:Sag es``` to force
|
|
97
|
+
State **tts.text** supports extended syntax, so the language/engine and volume can be defined together with text. It is used to enable multi-language text2speech engines.
|
|
98
|
+
E.g. if adapter has engine "Google-english", it is possible with phrase ```de:Sag es``` to force using Google-Deutsch speech engine.
|
|
95
99
|
|
|
96
|
-
With ```ru;75;Погода хорошая``` we can force
|
|
100
|
+
With ```ru;75;Погода хорошая``` we can force using russian language and volume 75%.
|
|
97
101
|
|
|
98
|
-
You can specify the volume of announcement in percent from current or given volume (not from maximal). E.g. if command is ```de;75;Gutes Wetter```and "announce volume" is 50%, the
|
|
102
|
+
You can specify the volume of announcement in percent from current or given volume (not from maximal). E.g. if command is ```de;75;Gutes Wetter```and "announce volume" is 50%, the announcement will be played with volume 38% from 100% possible.
|
|
99
103
|
|
|
100
|
-
The system command to play the mp3 file can be specified too. If you leave it blank, the default settings will be used: windows - cmdmp3.exe
|
|
104
|
+
The system command to play the mp3 file can be specified too. If you leave it blank, the default settings will be used: windows - `cmdmp3.exe`, OSX - `/usr/bin/afplay`, linux - `mpg321` or `omxplayer` (recommended).
|
|
101
105
|
|
|
102
106
|
To install omxplayer write ```sudo apt-get install omxplayer``` or write ```sudo apt-get install mpg321``` to install mpg321.
|
|
103
107
|
|
|
@@ -120,6 +124,9 @@ Following values for engines are possible:
|
|
|
120
124
|
- **it** - Italiano
|
|
121
125
|
- **es** - Espaniol
|
|
122
126
|
- **fr** - Français
|
|
127
|
+
- **nl** - Nederlands
|
|
128
|
+
- **zh-CN** - 简体中文
|
|
129
|
+
- **pt** - Português
|
|
123
130
|
|
|
124
131
|
#### Yandex
|
|
125
132
|
- **ru_YA:Yandex** - Русский
|
|
@@ -130,6 +137,7 @@ Following values for engines are possible:
|
|
|
130
137
|
- **ru-RU_CLOUD_Male** - Русский - Максим
|
|
131
138
|
- **de-DE_CLOUD_Female** - Deutsch - Marlene
|
|
132
139
|
- **de-DE_CLOUD_Male** - Deutsch - Hans
|
|
140
|
+
- **de-DE_CLOUD_Female_Vicki** - Deutsch - Vicki
|
|
133
141
|
- **en-US_CLOUD_Female** - en-US - Female - Salli
|
|
134
142
|
- **en-US_CLOUD_Male** - en-US - Male - Joey
|
|
135
143
|
- **da-DK_CLOUD_Female** - da-DK - Female - Naja
|
|
@@ -171,12 +179,14 @@ Following values for engines are possible:
|
|
|
171
179
|
- **pl-PL_CLOUD_Male_Jan** - pl-PL - Male - Jan
|
|
172
180
|
- **pl-PL_CLOUD_Female** - pl-PL - Female - Maja
|
|
173
181
|
- **pt-BR_CLOUD_Female** - pt-BR - Female - Vitoria
|
|
182
|
+
- **pt-BR_CLOUD_Female_Camila** - pt-BR - Female - Camila
|
|
174
183
|
- **pt-BR_CLOUD_Male** - pt-BR - Male - Ricardo
|
|
175
184
|
- **pt-PT_CLOUD_Male** - pt-PT - Male - Cristiano
|
|
176
185
|
- **pt-PT_CLOUD_Female** - pt-PT - Female - Ines
|
|
177
186
|
- **ro-RO_CLOUD_Female** - ro-RO - Female - Carmen
|
|
178
187
|
- **sv-SE_CLOUD_Female** - sv-SE - Female - Astrid
|
|
179
188
|
- **tr-TR_CLOUD_Female** - tr-TR - Female - Filiz
|
|
189
|
+
- **pt-BR_CLOUD_Female_Camila** - pt-BR - Female - Camila
|
|
180
190
|
|
|
181
191
|
#### Pico TTS
|
|
182
192
|
- **en-US** - Englisch US
|
|
@@ -187,60 +197,75 @@ Following values for engines are possible:
|
|
|
187
197
|
- **fr-FR** - Français
|
|
188
198
|
|
|
189
199
|
#### Amazon polly direct
|
|
190
|
-
- **
|
|
191
|
-
- **
|
|
192
|
-
- **
|
|
193
|
-
- **
|
|
194
|
-
- **
|
|
195
|
-
- **
|
|
196
|
-
- **
|
|
197
|
-
- **
|
|
198
|
-
- **
|
|
199
|
-
- **
|
|
200
|
-
- **
|
|
201
|
-
- **
|
|
202
|
-
- **
|
|
203
|
-
- **
|
|
204
|
-
- **
|
|
205
|
-
- **
|
|
206
|
-
- **
|
|
207
|
-
- **
|
|
208
|
-
- **
|
|
209
|
-
- **
|
|
210
|
-
- **
|
|
211
|
-
- **
|
|
212
|
-
- **
|
|
213
|
-
- **
|
|
214
|
-
- **
|
|
215
|
-
- **
|
|
216
|
-
- **
|
|
217
|
-
- **
|
|
218
|
-
- **
|
|
219
|
-
- **
|
|
220
|
-
- **
|
|
221
|
-
- **
|
|
222
|
-
- **
|
|
223
|
-
- **
|
|
224
|
-
- **
|
|
225
|
-
- **
|
|
226
|
-
- **
|
|
227
|
-
- **
|
|
228
|
-
- **
|
|
229
|
-
- **
|
|
230
|
-
- **
|
|
231
|
-
- **
|
|
232
|
-
- **
|
|
233
|
-
- **
|
|
234
|
-
- **
|
|
235
|
-
- **
|
|
236
|
-
- **
|
|
237
|
-
- **
|
|
238
|
-
- **
|
|
239
|
-
- **
|
|
240
|
-
- **
|
|
241
|
-
- **
|
|
242
|
-
|
|
200
|
+
- **ru-RU_AP_Female** - Русский - Татьяна
|
|
201
|
+
- **ru-RU_AP_Male** - Русский - Максим
|
|
202
|
+
- **de-DE_AP_Female** - Deutsch - Marlene
|
|
203
|
+
- **de-DE_AP_Female_Vicki** - Deutsch - Vicki
|
|
204
|
+
- **de-DE_AP_Male** - Deutsch - Hans
|
|
205
|
+
- **en-US_AP_Female** - en-US - Female - Salli
|
|
206
|
+
- **en-US_AP_Male** - en-US - Male - Joey
|
|
207
|
+
- **da-DK_AP_Female** - da-DK - Female - Naja
|
|
208
|
+
- **da-DK_AP_Male** - da-DK - Male - Mads
|
|
209
|
+
- **en-AU_AP_Female** - en-AU - Female - Nicole
|
|
210
|
+
- **en-AU_AP_Male** - en-AU - Male - Russell
|
|
211
|
+
- **en-GB_AP_Female_Amy** - en-GB - Female - Amy
|
|
212
|
+
- **en-GB_AP_Male** - en-GB - Male - Brian
|
|
213
|
+
- **en-GB_AP_Female_Emma** - en-GB - Female - Emma
|
|
214
|
+
- **en-GB-WLS_AP_Female** - en-GB-WLS - Female - Gwyneth
|
|
215
|
+
- **en-GB-WLS_AP_Male** - en-GB-WLS - Male - Geraint
|
|
216
|
+
- **cy-GB_AP_Female** - cy-GB - Female - Gwyneth
|
|
217
|
+
- **cy-GB_AP_Male** - cy-GB - Male - Geraint
|
|
218
|
+
- **en-IN_AP_Female** - en-IN - Female - Raveena
|
|
219
|
+
- **en-US_AP_Male_Chipmunk** - en-US - Male - Chipmunk
|
|
220
|
+
- **en-US_AP_Male_Eric** - en-US - Male - Eric
|
|
221
|
+
- **en-US_AP_Female_Ivy** - en-US - Female - Ivy
|
|
222
|
+
- **en-US_AP_Female_Jennifer** - en-US - Female - Jennifer
|
|
223
|
+
- **en-US_AP_Male_Justin** - en-US - Male - Justin
|
|
224
|
+
- **en-US_AP_Female_Kendra** - en-US - Female - Kendra
|
|
225
|
+
- **en-US_AP_Female_Kimberly** - en-US - Female - Kimberly
|
|
226
|
+
- **es-ES_AP_Female** - es-ES - Female - Conchita
|
|
227
|
+
- **es-ES_AP_Male** - es-ES - Male - Enrique
|
|
228
|
+
- **es-US_AP_Female** - es-US - Female - Penelope
|
|
229
|
+
- **es-US_AP_Male** - es-US - Male - Miguel
|
|
230
|
+
- **fr-CA_AP_Female** - fr-CA - Female - Chantal
|
|
231
|
+
- **fr-FR_AP_Female** - fr-FR - Female - Celine
|
|
232
|
+
- **fr-FR_AP_Male** - fr-FR - Male - Mathieu
|
|
233
|
+
- **is-IS_AP_Female** - is-IS - Female - Dora
|
|
234
|
+
- **is-IS_AP_Male** - is-IS - Male - Karl
|
|
235
|
+
- **it-IT_AP_Female** - it-IT - Female - Carla
|
|
236
|
+
- **it-IT_AP_Male** - it-IT - Male - Giorgio
|
|
237
|
+
- **nb-NO_AP_Female** - nb-NO - Female - Liv
|
|
238
|
+
- **nl-NL_AP_Female** - nl-NL - Female - Lotte
|
|
239
|
+
- **nl-NL_AP_Male** - nl-NL - Male - Ruben
|
|
240
|
+
- **pl-PL_AP_Female_Agnieszka** - pl-PL - Female - Agnieszka
|
|
241
|
+
- **pl-PL_AP_Male_Jacek** - pl-PL - Male - Jacek
|
|
242
|
+
- **pl-PL_AP_Female_Ewa** - pl-PL - Female - Ewa
|
|
243
|
+
- **pl-PL_AP_Male_Jan** - pl-PL - Male - Jan
|
|
244
|
+
- **pl-PL_AP_Female** - pl-PL - Female - Maja
|
|
245
|
+
- **pt-BR_AP_Female** - pt-BR - Female - Vitoria
|
|
246
|
+
- **pt-BR_AP_Male** - pt-BR - Male - Ricardo
|
|
247
|
+
- **pt-PT_AP_Male** - pt-PT - Male - Cristiano
|
|
248
|
+
- **pt-PT_AP_Female** - pt-PT - Female - Ines
|
|
249
|
+
- **ro-RO_AP_Female** - ro-RO - Female - Carmen
|
|
250
|
+
- **sv-SE_AP_Female** - sv-SE - Female - Astrid
|
|
251
|
+
- **tr-TR_AP_Female** - tr-TR - Female - Filiz
|
|
252
|
+
- **ko-KR_AP_Female** - ko-KR - Female - Seoyeon
|
|
253
|
+
|
|
254
|
+
<!--
|
|
255
|
+
Placeholder for the next version (at the beginning of the line):
|
|
256
|
+
### __WORK IN PROGRESS__
|
|
257
|
+
-->
|
|
243
258
|
## Changelog
|
|
259
|
+
### 1.12.6 (2022-02-09)
|
|
260
|
+
* (bluefox) used setForeignBinaryState if possible
|
|
261
|
+
|
|
262
|
+
### 1.12.5 (2022-02-09)
|
|
263
|
+
* (bluefox) Fixed errors in io-package.json
|
|
264
|
+
|
|
265
|
+
### 1.12.3 (2021-06-25)
|
|
266
|
+
* (bluefox) corrected the Google engine
|
|
267
|
+
* (bluefox) Added new voices: german, korean, brasil, Dutch
|
|
268
|
+
|
|
244
269
|
### 1.12.2 (2020-11-07)
|
|
245
270
|
* (Apollon77) Prevent crash case (Sentry IOBROKER-SAYIT-Q, IOBROKER-SAYIT-S, IOBROKER-SAYIT-T)
|
|
246
271
|
|
|
@@ -460,7 +485,7 @@ Changed type of top-level object to "meta" in order to comply with js-controller
|
|
|
460
485
|
|
|
461
486
|
The MIT License (MIT)
|
|
462
487
|
|
|
463
|
-
Copyright (c) 2014-
|
|
488
|
+
Copyright (c) 2014-2022, bluefox <dogafox@gmail.com>
|
|
464
489
|
|
|
465
490
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
466
491
|
of this software and associated documentation files (the "Software"), to deal
|
package/admin/engines.js
CHANGED
|
@@ -7,8 +7,12 @@ var sayitEngines = {
|
|
|
7
7
|
"uk": {name: "Google - Ukrainian", engine: "google", params: []},
|
|
8
8
|
"ru": {name: "Google - Русский", engine: "google", params: []},
|
|
9
9
|
"it": {name: "Google - Italiano", engine: "google", params: []},
|
|
10
|
+
"pt": {name: "Google - Português", engine: "google", params: []},
|
|
10
11
|
"es": {name: "Google - Espaniol", engine: "google", params: []},
|
|
11
12
|
"fr": {name: "Google - Français", engine: "google", params: []},
|
|
13
|
+
"nl": {name: "Google - Nederlands", engine: "google", params: []},
|
|
14
|
+
"zh-CN": {name: "Google - 简体中文", engine: "google", params: []},
|
|
15
|
+
|
|
12
16
|
"ru_YA": {name: "Yandex - Русский", engine: "yandex", params: ['key', 'voice', 'emotion', 'ill', 'drunk', 'robot'], voice: ['jane', 'zahar'], emotion: ['none', 'good', 'neutral', 'evil', 'mixed']},
|
|
13
17
|
"ru_YA_CLOUD": {name: "Yandex Cloud - Русский", engine: "yandexCloud", params: ['key', 'folderID', 'voice', 'emotion'], voice: ['alyss', 'oksana', 'jane', 'zahar', 'nick', 'ermil', 'alena Premium', 'filipp Premium'], emotion: [ 'good', 'neutral', 'evil']},
|
|
14
18
|
|
|
@@ -16,6 +20,7 @@ var sayitEngines = {
|
|
|
16
20
|
"ru-RU_CLOUD_Male": {gender: "Male", engine: "cloud", params: ['cloud'], language: "ru-RU", ename: "Maxim", ssml: true, name: "Cloud - Русский - Максим"},
|
|
17
21
|
"de-DE_CLOUD_Female": {gender: "Female", engine: "cloud", params: ['cloud'], language: "de-DE", ename: "Marlene", ssml: true, name: "Cloud - Deutsch - Marlene"},
|
|
18
22
|
"de-DE_CLOUD_Male": {gender: "Male", engine: "cloud", params: ['cloud'], language: "de-DE", ename: "Hans", ssml: true, name: "Cloud - Deutsch - Hans"},
|
|
23
|
+
"de-DE_CLOUD_Female_Vicki": {gender: "Female", engine: "cloud", params: ['cloud'], language: "de-DE", ename: "Vicki", ssml: true, name: "Cloud - Deutsch - Vicki"},
|
|
19
24
|
"en-US_CLOUD_Female": {gender: "Female", engine: "cloud", params: ['cloud'], language: "en-US", ename: "Salli", ssml: true, name: "Cloud - en-US - Female - Salli"},
|
|
20
25
|
"en-US_CLOUD_Male": {gender: "Male", engine: "cloud", params: ['cloud'], language: "en-US", ename: "Joey", ssml: true, name: "Cloud - en-US - Male - Joey"},
|
|
21
26
|
"da-DK_CLOUD_Female": {gender: "Female", engine: "cloud", params: ['cloud'], language: "da-DK", ename: "Naja", ssml: true, name: "Cloud - da-DK - Female - Naja"},
|
|
@@ -58,11 +63,13 @@ var sayitEngines = {
|
|
|
58
63
|
"pl-PL_CLOUD_Female": {gender: "Female", engine: "cloud", params: ['cloud'], language: "pl-PL", ename: "Maja", ssml: true, name: "Cloud - pl-PL - Female - Maja"},
|
|
59
64
|
"pt-BR_CLOUD_Female": {gender: "Female", engine: "cloud", params: ['cloud'], language: "pt-BR", ename: "Vitoria", ssml: true, name: "Cloud - pt-BR - Female - Vitoria"},
|
|
60
65
|
"pt-BR_CLOUD_Male": {gender: "Male", engine: "cloud", params: ['cloud'], language: "pt-BR", ename: "Ricardo", ssml: true, name: "Cloud - pt-BR - Male - Ricardo"},
|
|
66
|
+
"pt-BR_CLOUD_Female_Camila":{gender: "Female", engine: "cloud", params: ['cloud'], language: "pt-BR", ename: "Camila", ssml: true, name: "Cloud - pt-BR - Female - Camila"},
|
|
61
67
|
"pt-PT_CLOUD_Male": {gender: "Male", engine: "cloud", params: ['cloud'], language: "pt-PT", ename: "Cristiano", ssml: true, name: "Cloud - pt-PT - Male - Cristiano"},
|
|
62
68
|
"pt-PT_CLOUD_Female": {gender: "Female", engine: "cloud", params: ['cloud'], language: "pt-PT", ename: "Ines", ssml: true, name: "Cloud - pt-PT - Female - Ines"},
|
|
63
69
|
"ro-RO_CLOUD_Female": {gender: "Female", engine: "cloud", params: ['cloud'], language: "ro-RO", ename: "Carmen", ssml: true, name: "Cloud - ro-RO - Female - Carmen"},
|
|
64
70
|
"sv-SE_CLOUD_Female": {gender: "Female", engine: "cloud", params: ['cloud'], language: "sv-SE", ename: "Astrid", ssml: true, name: "Cloud - sv-SE - Female - Astrid"},
|
|
65
71
|
"tr-TR_CLOUD_Female": {gender: "Female", engine: "cloud", params: ['cloud'], language: "tr-TR", ename: "Filiz", ssml: true, name: "Cloud - tr-TR - Female - Filiz"},
|
|
72
|
+
"ko-KR_CLOUD_Female": {gender: "Female", engine: "cloud", params: ['cloud'], language: "ko-KR", ename: "Seoyeon", ssml: true, name: "Cloud - ko-KR - Female - Seoyeon"},
|
|
66
73
|
|
|
67
74
|
"en-US": {name: "PicoTTS - Englisch US", engine: "PicoTTS", params: []},
|
|
68
75
|
"en-GB": {name: "PicoTTS - Englisch GB", engine: "PicoTTS", params: []},
|
|
@@ -122,7 +129,8 @@ var sayitEngines = {
|
|
|
122
129
|
"pt-PT_AP_Female": {gender: "Female", engine: "polly", params: ['accessKey', 'secretKey', 'region'], language: "pt-PT", ename: "Ines", ssml: true, name: "AWS Polly - pt-PT - Female - Ines"},
|
|
123
130
|
"ro-RO_AP_Female": {gender: "Female", engine: "polly", params: ['accessKey', 'secretKey', 'region'], language: "ro-RO", ename: "Carmen", ssml: true, name: "AWS Polly - ro-RO - Female - Carmen"},
|
|
124
131
|
"sv-SE_AP_Female": {gender: "Female", engine: "polly", params: ['accessKey', 'secretKey', 'region'], language: "sv-SE", ename: "Astrid", ssml: true, name: "AWS Polly - sv-SE - Female - Astrid"},
|
|
125
|
-
"tr-TR_AP_Female": {gender: "Female", engine: "polly", params: ['accessKey', 'secretKey', 'region'], language: "tr-TR", ename: "Filiz", ssml: true, name: "AWS Polly - tr-TR - Female - Filiz"}
|
|
132
|
+
"tr-TR_AP_Female": {gender: "Female", engine: "polly", params: ['accessKey', 'secretKey', 'region'], language: "tr-TR", ename: "Filiz", ssml: true, name: "AWS Polly - tr-TR - Female - Filiz"},
|
|
133
|
+
"ko-KR_AP_Female": {gender: "Female", engine: "polly", params: ['accessKey', 'secretKey', 'region'], language: "ko-KR", ename: "Seoyeon", ssml: true, name: "AWS Polly - ko-KR - Female - Seoyeon"}
|
|
126
134
|
};
|
|
127
135
|
|
|
128
136
|
var sayitOptions = {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"Announce timeout (sec):": "Ankündigungstimeout (Sek)",
|
|
10
10
|
"Announce volume (%):": "Ankündigungslautstärke(%)",
|
|
11
11
|
"Announce:": "Ankündigung",
|
|
12
|
-
"Browse": "
|
|
12
|
+
"Browse": "Durchsuchen",
|
|
13
13
|
"Browser instance:": "Browser-Instanz",
|
|
14
14
|
"Cache-Expiry:": "Cache-Ablauf",
|
|
15
15
|
"Cache:": "Cache benutzen",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"Server:": "Server",
|
|
32
32
|
"System command:": "Systemkommando",
|
|
33
33
|
"Type:": "Ausgabe durch",
|
|
34
|
-
"User:": "
|
|
34
|
+
"User:": "Benutzer",
|
|
35
35
|
"Voice:": "Stimme",
|
|
36
36
|
"Web instance:": "Web instance",
|
|
37
37
|
"Web server IP:": "Web server IP",
|
|
@@ -43,4 +43,4 @@
|
|
|
43
43
|
"tooltip_command": "Dieses Kommando wird ausgeführt, um eigenen System-Player zu benutzen",
|
|
44
44
|
"tooltip_type": "Damit wird gesetzt, wo die Sprache ausgegeben wird",
|
|
45
45
|
"tree": "Baum"
|
|
46
|
-
}
|
|
46
|
+
}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"Announce timeout (sec):": "Anular o tempo limite (seg)",
|
|
10
10
|
"Announce volume (%):": "Anunciar volume (%)",
|
|
11
11
|
"Announce:": "Anunciar",
|
|
12
|
-
"Browse": "
|
|
12
|
+
"Browse": "procurar",
|
|
13
13
|
"Browser instance:": "Instância do navegador",
|
|
14
14
|
"Cache-Expiry:": "Cache-Expiração",
|
|
15
15
|
"Cache:": "Cache recebido arquivos de áudio",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"Server:": "Servidor",
|
|
32
32
|
"System command:": "Comando do sistema",
|
|
33
33
|
"Type:": "Saída em",
|
|
34
|
-
"User:": "
|
|
34
|
+
"User:": "Utilizador",
|
|
35
35
|
"Voice:": "Voz",
|
|
36
36
|
"Web instance:": "Instância da Web",
|
|
37
37
|
"Web server IP:": "IP do servidor da Web",
|
|
@@ -43,4 +43,4 @@
|
|
|
43
43
|
"tooltip_command": "Este comando será executado para usar o player do sistema personalizado",
|
|
44
44
|
"tooltip_type": "Especifique onde a voz deve ser tocada",
|
|
45
45
|
"tree": "árvore"
|
|
46
|
-
}
|
|
46
|
+
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"API Key is not set!": "API Key отсутствует!",
|
|
3
|
-
"API Key:": "API
|
|
3
|
+
"API Key:": "Ключ API",
|
|
4
4
|
"AWS Region:": "AWS регион",
|
|
5
|
-
"Access Key:": "
|
|
5
|
+
"Access Key:": "Ключ доступа",
|
|
6
6
|
"Adapter must be enabled": "Адаптер должен быть включен",
|
|
7
7
|
"All": "Все",
|
|
8
8
|
"Announce length (sec):": "Длительность извещения (сек)",
|
|
9
9
|
"Announce timeout (sec):": "Таймаут извещения (сек)",
|
|
10
|
-
"Announce volume (%):": "Громкость извещения(%)",
|
|
10
|
+
"Announce volume (%):": "Громкость извещения (%)",
|
|
11
11
|
"Announce:": "Извещение",
|
|
12
12
|
"Browse": "Искать",
|
|
13
|
-
"Browser instance:": "ID
|
|
13
|
+
"Browser instance:": "ID браузера",
|
|
14
14
|
"Cache-Expiry:": "Срок хранения кэш",
|
|
15
15
|
"Cache:": "Кэшировать полученные аудио-файлы",
|
|
16
16
|
"Cloud instance:": "Cloud драйвер",
|
|
@@ -43,4 +43,4 @@
|
|
|
43
43
|
"tooltip_command": "Эта команда выполнится для проигрывания с собственным плеером",
|
|
44
44
|
"tooltip_type": "Укажите как и где будет выводится голос",
|
|
45
45
|
"tree": "дерево"
|
|
46
|
-
}
|
|
46
|
+
}
|
package/admin/index_m.html
CHANGED
|
@@ -64,7 +64,9 @@
|
|
|
64
64
|
$('.engine').hide();
|
|
65
65
|
var engine = $('#engine').val();
|
|
66
66
|
|
|
67
|
-
if (!sayitEngines[engine] || sayitOptions[type].params.indexOf('engine') === -1)
|
|
67
|
+
if (!sayitEngines[engine] || sayitOptions[type].params.indexOf('engine') === -1) {
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
68
70
|
|
|
69
71
|
for (var i = 0; i < sayitEngines[engine].params.length; i++) {
|
|
70
72
|
$('#tr_' + sayitEngines[engine].params[i]).show();
|
|
@@ -83,7 +85,7 @@
|
|
|
83
85
|
$('#play').removeClass('disabled');
|
|
84
86
|
}
|
|
85
87
|
}
|
|
86
|
-
|
|
88
|
+
|
|
87
89
|
function fillEngineParams() {
|
|
88
90
|
var engine = $('#engine').val();
|
|
89
91
|
if (!sayitEngines[engine]) return;
|
|
@@ -114,7 +116,7 @@
|
|
|
114
116
|
}
|
|
115
117
|
}
|
|
116
118
|
}
|
|
117
|
-
|
|
119
|
+
|
|
118
120
|
|
|
119
121
|
function fillSonosDevices(elem, current) {
|
|
120
122
|
socket.emit('getObjectView', 'system', 'channel', {startkey: 'sonos.', endkey: 'sonos.\u9999'}, function (err, res) {
|
|
@@ -494,7 +496,7 @@
|
|
|
494
496
|
} else {
|
|
495
497
|
showHideSettings();
|
|
496
498
|
}
|
|
497
|
-
if (key === 'engine') {fillEngineParams();}
|
|
499
|
+
if (key === 'engine') {fillEngineParams();}
|
|
498
500
|
} else
|
|
499
501
|
if (key === 'announce') {
|
|
500
502
|
showHideSettings();
|
|
@@ -529,13 +531,13 @@
|
|
|
529
531
|
$('#instance').val(settings.instance).trigger('change');
|
|
530
532
|
}
|
|
531
533
|
|
|
532
|
-
fillEngineParams();
|
|
534
|
+
fillEngineParams();
|
|
533
535
|
fillSonosDevices('#device', settings.device);
|
|
534
536
|
fillHeosDevices('#heos_device', settings.device);
|
|
535
537
|
fillChromecastDevices('#cDevice', settings.cDevice);
|
|
536
538
|
fillWebServices('#web', settings.web, settings.type, settings.webServer);
|
|
537
539
|
fillMpdDevice('#mpd_device', settings.mpd_device);
|
|
538
|
-
|
|
540
|
+
|
|
539
541
|
|
|
540
542
|
if ((settings.type === 'sonos') ||
|
|
541
543
|
(settings.type === 'heos') ||
|
package/admin/words.js
CHANGED
|
@@ -3,17 +3,17 @@
|
|
|
3
3
|
|
|
4
4
|
systemDictionary = {
|
|
5
5
|
"API Key is not set!": { "en": "API Key is not set!", "de": "API Key ist leer!", "ru": "API Key отсутствует!", "pt": "A chave da API não está definida!", "nl": "API-sleutel is niet ingesteld!", "fr": "La clé de l'API n'est pas définie!", "it": "Chiave API non impostata!", "es": "¡La clave API no está configurada!", "pl": "Klucz API nie jest ustawiony!", "zh-cn": "API关键是设置不!"},
|
|
6
|
-
"API Key:": { "en": "API Key", "de": "API Key", "ru": "API
|
|
6
|
+
"API Key:": { "en": "API Key", "de": "API Key", "ru": "Ключ API", "pt": "Chave API", "nl": "API sleutel", "fr": "clé API", "it": "Chiave API", "es": "Clave API", "pl": "Klucz API", "zh-cn": "API关键"},
|
|
7
7
|
"AWS Region:": { "en": "AWS Region", "de": "AWS Region", "ru": "AWS регион", "pt": "Região da AWS", "nl": "AWS-regio", "fr": "Région AWS", "it": "Regione AWS", "es": "Región de AWS", "pl": "Region AWS", "zh-cn": "Amazon glacier区域"},
|
|
8
|
-
"Access Key:": { "en": "Access Key", "de": "Access Key", "ru": "
|
|
8
|
+
"Access Key:": { "en": "Access Key", "de": "Access Key", "ru": "Ключ доступа", "pt": "Chave de acesso", "nl": "Toegangssleutel", "fr": "Clef d'accès", "it": "Chiave di accesso", "es": "Llave de acceso", "pl": "Klucz dostępu", "zh-cn": "访问的关键"},
|
|
9
9
|
"Adapter must be enabled": { "en": "Adapter must be enabled", "de": "Adapter muss aktiviert sein", "ru": "Адаптер должен быть включен", "pt": "O adaptador deve estar ativado", "nl": "Adapter moet zijn ingeschakeld", "fr": "L'adaptateur doit être activé", "it": "L'adattatore deve essere abilitato", "es": "El adaptador debe estar habilitado", "pl": "Adapter musi być włączony", "zh-cn": "必须启用的适配器"},
|
|
10
10
|
"All": { "en": "All", "de": "Alle", "ru": "Все", "pt": "Todos", "nl": "Alle", "fr": "Tout", "it": "Tutti", "es": "Todas", "pl": "Wszystko", "zh-cn": "所有"},
|
|
11
11
|
"Announce length (sec):": { "en": "Announce length (sec)", "de": "Ankündigunglänge (Sek)", "ru": "Длительность извещения (сек)", "pt": "Anunciar o comprimento (seg)", "nl": "Kondig lengte (sec)", "fr": "Annoncer la longueur (sec)", "it": "Annunciare la lunghezza (sec)", "es": "Anunciar longitud (sec)", "pl": "Ogłaszaj długość (s)", "zh-cn": "宣布的长度(sec)"},
|
|
12
12
|
"Announce timeout (sec):": { "en": "Announce timeout (sec)", "de": "Ankündigungstimeout (Sek)", "ru": "Таймаут извещения (сек)", "pt": "Anular o tempo limite (seg)", "nl": "Announce time-out (sec)", "fr": "Annoncer le délai (sec)", "it": "Annuncia timeout (sec)", "es": "Anunciar tiempo de espera (sec)", "pl": "Ogłaszaj limit czasu (sek)", "zh-cn": "宣布超时(sec)"},
|
|
13
|
-
"Announce volume (%):": { "en": "Announce volume(%)", "de": "Ankündigungslautstärke(%)", "ru": "Громкость извещения(%)",
|
|
13
|
+
"Announce volume (%):": { "en": "Announce volume(%)", "de": "Ankündigungslautstärke(%)", "ru": "Громкость извещения (%)", "pt": "Anunciar volume (%)", "nl": "Volume aankondigen (%)", "fr": "Annoncer le volume (%)", "it": "Annuncia volume (%)", "es": "Anunciar volumen (%)", "pl": "Ogłaszaj objętość (%)", "zh-cn": "宣布卷(%)"},
|
|
14
14
|
"Announce:": { "en": "Announce", "de": "Ankündigung", "ru": "Извещение", "pt": "Anunciar", "nl": "aankondigen", "fr": "Annoncer", "it": "Annunciare", "es": "Anunciar", "pl": "Ogłosić", "zh-cn": "宣布"},
|
|
15
|
-
"Browse": { "en": "Browse", "de": "
|
|
16
|
-
"Browser instance:": { "en": "Browser instance", "de": "Browser-Instanz", "ru": "ID
|
|
15
|
+
"Browse": { "en": "Browse", "de": "Durchsuchen", "ru": "Искать", "pt": "procurar", "nl": "Blader", "fr": "Feuilleter", "it": "Navigare", "es": "Vistazo", "pl": "Paść się", "zh-cn": "浏览"},
|
|
16
|
+
"Browser instance:": { "en": "Browser instance", "de": "Browser-Instanz", "ru": "ID браузера", "pt": "Instância do navegador", "nl": "Browserinstantie", "fr": "Instance du navigateur", "it": "Istanza del browser", "es": "Instancia del navegador", "pl": "Browser instance", "zh-cn": "浏览器实例"},
|
|
17
17
|
"Cache-Expiry:": { "en": "Cache-Expiry", "de": "Cache-Ablauf", "ru": "Срок хранения кэш", "pt": "Cache-Expiração", "nl": "Cache-Vervaldatum", "fr": "Cache-Expiration", "it": "Cache-scadenza", "es": "Caché-expiración", "pl": "Cache-Expiry", "zh-cn": "Cache-到期"},
|
|
18
18
|
"Cache:": { "en": "Cache received audio files", "de": "Cache benutzen", "ru": "Кэшировать полученные аудио-файлы", "pt": "Cache recebido arquivos de áudio", "nl": "Cache ontvangen audiobestanden", "fr": "Cache les fichiers audio reçus", "it": "La cache ha ricevuto file audio", "es": "Caché recibió archivos de audio", "pl": "Pamięć podręczna otrzymała pliki audio", "zh-cn": "缓接收音频文件"},
|
|
19
19
|
"Cloud instance:": { "en": "Cloud instance", "de": "Cloud-Instanz", "ru": "Cloud драйвер", "pt": "Instância de nuvem", "nl": "Cloud instantie", "fr": "Instance de cloud", "it": "Istanza Cloud", "es": "Instancia de la nube", "pl": "Instancja chmury", "zh-cn": "云实例"},
|
|
@@ -34,7 +34,7 @@ systemDictionary = {
|
|
|
34
34
|
"Server:": { "en": "Server", "de": "Server", "ru": "Сервер", "pt": "Servidor", "nl": "Server", "fr": "Serveur", "it": "server", "es": "Servidor", "pl": "serwer", "zh-cn": "服务器"},
|
|
35
35
|
"System command:": { "en": "System command", "de": "Systemkommando", "ru": "Системный вызов", "pt": "Comando do sistema", "nl": "Systeemopdracht", "fr": "Commande système", "it": "Comando di sistema", "es": "Comando del sistema", "pl": "Polecenie systemowe", "zh-cn": "系统的命令"},
|
|
36
36
|
"Type:": { "en": "Output in", "de": "Ausgabe durch", "ru": "Вывод звука", "pt": "Saída em", "nl": "Uitgang in", "fr": "Sortie dans", "it": "Uscita in", "es": "Salida en", "pl": "Wyjście w", "zh-cn": "输出"},
|
|
37
|
-
"User:": { "en": "User", "de": "
|
|
37
|
+
"User:": { "en": "User", "de": "Benutzer", "ru": "Пользователь", "pt": "Utilizador", "nl": "Gebruiker", "fr": "Utilisateur", "it": "Utente", "es": "Usuario", "pl": "Użytkownik", "zh-cn": "用户"},
|
|
38
38
|
"Voice:": { "en": "Voice", "de": "Stimme", "ru": "Голос", "pt": "Voz", "nl": "Stem", "fr": "Voix", "it": "Voce", "es": "Voz", "pl": "Głos", "zh-cn": "声音"},
|
|
39
39
|
"Web instance:": { "en": "Web instance", "de": "Web instance", "ru": "Web instance", "pt": "Instância da Web", "nl": "Web-instantie", "fr": "Instance Web", "it": "Istanza Web", "es": "Instancia web", "pl": "Instancja internetowa", "zh-cn": "网络实例"},
|
|
40
40
|
"Web server IP:": { "en": "Web server IP", "de": "Web server IP", "ru": "IP Веб сервера", "pt": "IP do servidor da Web", "nl": "Webserver IP", "fr": "Adresse IP du serveur Web", "it": "IP del server Web", "es": "Servidor web IP", "pl": "Adres IP serwera WWW", "zh-cn": "网络服务器的IP"},
|