iobroker.sayit 5.3.3 → 5.4.0

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 CHANGED
@@ -31,6 +31,8 @@ Actually, the following outputs are supported:
31
31
 
32
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.
33
33
 
34
+ - *Squeezebox* - play text on a player of the Logitech Media Server (Lyrion) with the [squeezeboxrpc](https://github.com/oweitman/ioBroker.squeezeboxrpc) adapter (version 2.0.0 or newer). The text is written into the state `Announce` of the player, so the current playback is stopped and restored afterward. The volume of the announcement is configured in the squeezeboxrpc adapter. Be sure the Web Adapter is enabled, so the Media Server can read the generated mp3 files.
35
+
34
36
  - *Chromecast* - play text on a Chromecast device.
35
37
 
36
38
  - *MPD* - play text on Music Player Daemon. Use only **http** for web adapter, don't use https.
@@ -63,6 +65,17 @@ Offline:
63
65
  - Coqui TTS: English, German, Spanish, French, Dutch, Japanese, Chinese;
64
66
  For instructions how to use go to the [official documentation](https://tts.readthedocs.io/en/latest/index.html)
65
67
 
68
+ - Piper: fast local voices in many languages, e.g. the German voices of [Thorsten-Voice](https://www.thorsten-voice.de).
69
+ [Piper](https://github.com/OHF-Voice/piper1-gpl) runs as an HTTP server in the local network (on the ioBroker host or on any other one),
70
+ so one server could be used by several applications. No internet and no other tools on the ioBroker host are required.
71
+ Installation of the server (see the [HTTP API](https://github.com/OHF-Voice/piper1-gpl/blob/main/docs/API_HTTP.md)):
72
+ ```
73
+ python3 -m pip install piper-tts[http]
74
+ python3 -m piper.download_voices de_DE-thorsten-high
75
+ python3 -m piper.http_server -m de_DE-thorsten-high --host 0.0.0.0 --port 5000
76
+ ```
77
+ Enter the address of the server, e.g. `http://192.168.1.10:5000`, in the configuration. The voices installed on the server are offered in the configuration dialog.
78
+
66
79
  ### Test of the text generation
67
80
  With the button `Test text generation` on the tab `Engine` you can check if the selected engine is configured properly.
68
81
 
@@ -165,6 +178,11 @@ The language is a part of the voice, so only one engine name exists. The voice,
165
178
  is selected in the configuration dialog and the list of all available voices is read from the service.
166
179
  A request is limited to 10000 characters, so longer texts are split and said one after another.
167
180
 
181
+ #### Piper
182
+ - **piper** - the server, the voice, the speaker and the speed are taken from the instance configuration
183
+
184
+ Like by FreeTTS, the language is a part of the voice, e.g. `de_DE-thorsten-high`. If no voice is selected, the default voice of the server is used.
185
+
168
186
  #### Yandex
169
187
  - **ru_YA:Yandex** - Русский
170
188
  - **ru_YA_CLOUD:Yandex Cloud** - Русский [Yandex.Cloud API generates files in OGG format. To play ogg files on linux mplayer should be installed and selected as system player]
@@ -304,6 +322,11 @@ A request is limited to 10000 characters, so longer texts are split and said one
304
322
  ### **WORK IN PROGRESS**
305
323
  -->
306
324
  ## Changelog
325
+ ### 5.4.0 (2026-10-23)
326
+ * (@GermanBluefox) Updated packages
327
+ * (@GermanBluefox) Added the output type "Squeezebox" for the players of the squeezeboxrpc adapter (#5)
328
+ * (@GermanBluefox) Added Piper as a new local TTS engine, e.g. with the voices of Thorsten-Voice (#398)
329
+
307
330
  ### 5.3.3 (2026-10-23)
308
331
  * (@GermanBluefox) Fixed: a cache hit played the last generated text instead of the cached file (#497)
309
332
  * (@GermanBluefox) The cache directory is now resolved relative to `iobroker-data/sayit` and could be absolute. It can be changed in the configuration dialog. New instances store the cache in `iobroker-data/sayit/cache` (#442)
@@ -332,16 +355,6 @@ A request is limited to 10000 characters, so longer texts are split and said one
332
355
  * (@GermanBluefox) The words of the Blockly block are translated into all 11 languages now
333
356
  * (@GermanBluefox) Blockly block migrated to TypeScript and the generated code is unchanged
334
357
 
335
- ### 5.2.4 (2026-08-07)
336
- * (@GermanBluefox) Corrected the upload of the announcement mp3 files and the location of the cache directory
337
- * (@GermanBluefox) Corrected the splitting of long texts for the Google engine
338
- * (@GermanBluefox) Corrected the detection of sonos devices in the configuration dialog
339
- * (@GermanBluefox) Cached files will be deleted again if the engine was changed
340
- * (@GermanBluefox) The queue does not block anymore if an error occurs by processing of a task
341
- * (@GermanBluefox) Texts with semicolons will not be interpreted as "language;volume;text" anymore
342
- * (@GermanBluefox) The local engines (PicoTTS, CoquiTTS) and the windows player are called without shell now
343
- * (@GermanBluefox) Corrected the default settings of a new instance
344
-
345
358
  [Older changelogs can be found there](CHANGELOG_OLD.md)
346
359
 
347
360
  ## License
package/admin/blockly.js CHANGED
@@ -18,6 +18,9 @@
18
18
  // freetts.org offers more than 400 voices in more than 75 languages.
19
19
  // The language is not selected here, but by the voice (option "freettsVoice"), like "de-DE-KatjaNeural"
20
20
  freeTTS: { name: "FreeTTS", engine: "freeTTS" },
21
+ // Piper runs as a local HTTP server (python3 -m piper.http_server). Like freetts.org,
22
+ // the language is not selected here, but by the voice (option "piperVoice"), like "de_DE-thorsten-high"
23
+ piper: { name: "Piper", engine: "piper" },
21
24
  ru_YA: {
22
25
  name: "Yandex - Русский",
23
26
  engine: "yandex",
@@ -54,6 +54,7 @@
54
54
  "Linux player:": "Linux-Player",
55
55
  "Password": "Passwort",
56
56
  "Password:": "Passwort",
57
+ "Piper server": "Piper-Server",
57
58
  "Pitch": "Tonhöhe",
58
59
  "Player": "Abspielen",
59
60
  "Port": "Port",
@@ -68,6 +69,8 @@
68
69
  "Server": "Server",
69
70
  "Server IP Address": "Server IP-Adresse",
70
71
  "Server:": "Server",
72
+ "Speaker": "Sprecher",
73
+ "Speed": "Tempo",
71
74
  "System command": "Systemkommando",
72
75
  "System command:": "Systemkommando",
73
76
  "Test text": "Testtext",
@@ -90,6 +93,10 @@
90
93
  "in Hz": "in Hz",
91
94
  "in days": "in Tagen",
92
95
  "in seconds": "in Sekunden",
96
+ "piper_server_help": "Adresse des Piper-HTTP-Servers, z. B. http://192.168.1.10:5000",
97
+ "piper_speaker_help": "Nur für Stimmen mit mehreren Sprechern: Name oder Nummer. Leer - Standard",
98
+ "piper_speed_help": "1 - normal, größere Werte sind langsamer",
99
+ "piper_voice_help": "Leer - Standardstimme des Servers",
93
100
  "optional - If player does not work": "optional - Wenn der Player nicht funktioniert",
94
101
  "place here": "Dateien hier ablegen",
95
102
  "play": "abspielen",
@@ -54,6 +54,7 @@
54
54
  "Linux player:": "Linux player",
55
55
  "Password": "Password",
56
56
  "Password:": "Password",
57
+ "Piper server": "Piper server",
57
58
  "Pitch": "Pitch",
58
59
  "Player": "Player",
59
60
  "Port": "Port",
@@ -68,6 +69,8 @@
68
69
  "Server": "Server",
69
70
  "Server IP Address": "Server IP Address",
70
71
  "Server:": "Server",
72
+ "Speaker": "Speaker",
73
+ "Speed": "Speed",
71
74
  "System command": "System command",
72
75
  "System command:": "System command",
73
76
  "Test text": "Test text",
@@ -90,6 +93,10 @@
90
93
  "in Hz": "in Hz",
91
94
  "in days": "in days",
92
95
  "in seconds": "in seconds",
96
+ "piper_server_help": "Address of the Piper HTTP server, e.g. http://192.168.1.10:5000",
97
+ "piper_speaker_help": "Only for voices with several speakers: name or number. Empty - default",
98
+ "piper_speed_help": "1 - normal, bigger values are slower",
99
+ "piper_voice_help": "Empty - the default voice of the server",
93
100
  "optional - If player does not work": "optional - If player does not work",
94
101
  "place here": "Place files here",
95
102
  "play": "play",
@@ -54,6 +54,7 @@
54
54
  "Linux player:": "Reproductor de Linux",
55
55
  "Password": "Contraseña",
56
56
  "Password:": "Contraseña",
57
+ "Piper server": "Servidor Piper",
57
58
  "Pitch": "Tono",
58
59
  "Player": "Jugador",
59
60
  "Port": "Puerto",
@@ -68,6 +69,8 @@
68
69
  "Server": "Servidor",
69
70
  "Server IP Address": "Dirección IP del servidor",
70
71
  "Server:": "Servidor",
72
+ "Speaker": "Locutor",
73
+ "Speed": "Velocidad",
71
74
  "System command": "Comando del sistema",
72
75
  "System command:": "Comando del sistema",
73
76
  "Test text": "Texto de prueba",
@@ -90,6 +93,10 @@
90
93
  "in Hz": "en Hz",
91
94
  "in days": "en días",
92
95
  "in seconds": "en segundos",
96
+ "piper_server_help": "Dirección del servidor HTTP de Piper, p. ej. http://192.168.1.10:5000",
97
+ "piper_speaker_help": "Solo para voces con varios locutores: nombre o número. Vacío - predeterminado",
98
+ "piper_speed_help": "1 - normal, los valores mayores son más lentos",
99
+ "piper_voice_help": "Vacío - voz predeterminada del servidor",
93
100
  "optional - If player does not work": "opcional: si el reproductor no funciona",
94
101
  "place here": "Coloque los archivos aquí",
95
102
  "play": "jugar",
@@ -54,6 +54,7 @@
54
54
  "Linux player:": "Lecteur Linux",
55
55
  "Password": "Mot de passe",
56
56
  "Password:": "Mot de passe",
57
+ "Piper server": "Serveur Piper",
57
58
  "Pitch": "Hauteur",
58
59
  "Player": "Joueur",
59
60
  "Port": "Port",
@@ -68,6 +69,8 @@
68
69
  "Server": "Serveur",
69
70
  "Server IP Address": "Adresse IP du serveur",
70
71
  "Server:": "Serveur",
72
+ "Speaker": "Locuteur",
73
+ "Speed": "Vitesse",
71
74
  "System command": "Commande système",
72
75
  "System command:": "Commande système",
73
76
  "Test text": "Texte de test",
@@ -90,6 +93,10 @@
90
93
  "in Hz": "en Hz",
91
94
  "in days": "en jours",
92
95
  "in seconds": "en secondes",
96
+ "piper_server_help": "Adresse du serveur HTTP Piper, p. ex. http://192.168.1.10:5000",
97
+ "piper_speaker_help": "Uniquement pour les voix à plusieurs locuteurs : nom ou numéro. Vide - par défaut",
98
+ "piper_speed_help": "1 - normal, les valeurs plus grandes sont plus lentes",
99
+ "piper_voice_help": "Vide - voix par défaut du serveur",
93
100
  "optional - If player does not work": "facultatif - Si le lecteur ne fonctionne pas",
94
101
  "place here": "Placez les fichiers ici",
95
102
  "play": "jouer",
@@ -54,6 +54,7 @@
54
54
  "Linux player:": "Lettore Linux",
55
55
  "Password": "Parola d'ordine",
56
56
  "Password:": "Parola d'ordine",
57
+ "Piper server": "Server Piper",
57
58
  "Pitch": "Tono",
58
59
  "Player": "Giocatore",
59
60
  "Port": "Porta",
@@ -68,6 +69,8 @@
68
69
  "Server": "server",
69
70
  "Server IP Address": "Indirizzo IP del server",
70
71
  "Server:": "server",
72
+ "Speaker": "Speaker",
73
+ "Speed": "Velocità",
71
74
  "System command": "Comando di sistema",
72
75
  "System command:": "Comando di sistema",
73
76
  "Test text": "Testo di prova",
@@ -90,6 +93,10 @@
90
93
  "in Hz": "in Hz",
91
94
  "in days": "nei giorni",
92
95
  "in seconds": "in secondi",
96
+ "piper_server_help": "Indirizzo del server HTTP di Piper, ad es. http://192.168.1.10:5000",
97
+ "piper_speaker_help": "Solo per voci con più speaker: nome o numero. Vuoto - predefinito",
98
+ "piper_speed_help": "1 - normale, valori più alti sono più lenti",
99
+ "piper_voice_help": "Vuoto - voce predefinita del server",
93
100
  "optional - If player does not work": "opzionale - Se il lettore non funziona",
94
101
  "place here": "Inserisci i file qui",
95
102
  "play": "giocare",
@@ -54,6 +54,7 @@
54
54
  "Linux player:": "Linux-speler",
55
55
  "Password": "Wachtwoord",
56
56
  "Password:": "Wachtwoord",
57
+ "Piper server": "Piper-server",
57
58
  "Pitch": "Toonhoogte",
58
59
  "Player": "Speler",
59
60
  "Port": "Haven",
@@ -68,6 +69,8 @@
68
69
  "Server": "Server",
69
70
  "Server IP Address": "Server IP adres",
70
71
  "Server:": "Server",
72
+ "Speaker": "Spreker",
73
+ "Speed": "Snelheid",
71
74
  "System command": "Systeemopdracht",
72
75
  "System command:": "Systeemopdracht",
73
76
  "Test text": "Testtekst",
@@ -90,6 +93,10 @@
90
93
  "in Hz": "in Hz",
91
94
  "in days": "in dagen",
92
95
  "in seconds": "in seconden",
96
+ "piper_server_help": "Adres van de Piper-HTTP-server, bijv. http://192.168.1.10:5000",
97
+ "piper_speaker_help": "Alleen voor stemmen met meerdere sprekers: naam of nummer. Leeg - standaard",
98
+ "piper_speed_help": "1 - normaal, grotere waarden zijn langzamer",
99
+ "piper_voice_help": "Leeg - standaardstem van de server",
93
100
  "optional - If player does not work": "optioneel - Als de speler niet werkt",
94
101
  "place here": "Plaats hier bestanden",
95
102
  "play": "spelen",
@@ -54,6 +54,7 @@
54
54
  "Linux player:": "Odtwarzacz Linux",
55
55
  "Password": "Hasło",
56
56
  "Password:": "Hasło",
57
+ "Piper server": "Serwer Piper",
57
58
  "Pitch": "Wysokość tonu",
58
59
  "Player": "Gracz",
59
60
  "Port": "Port",
@@ -68,6 +69,8 @@
68
69
  "Server": "serwer",
69
70
  "Server IP Address": "Adres IP serwera",
70
71
  "Server:": "serwer",
72
+ "Speaker": "Lektor",
73
+ "Speed": "Tempo",
71
74
  "System command": "Polecenie systemowe",
72
75
  "System command:": "Polecenie systemowe",
73
76
  "Test text": "Tekst testowy",
@@ -90,6 +93,10 @@
90
93
  "in Hz": "w Hz",
91
94
  "in days": "W dniach",
92
95
  "in seconds": "w sekundy",
96
+ "piper_server_help": "Adres serwera HTTP Piper, np. http://192.168.1.10:5000",
97
+ "piper_speaker_help": "Tylko dla głosów z kilkoma lektorami: nazwa lub numer. Puste - domyślny",
98
+ "piper_speed_help": "1 - normalne, większe wartości są wolniejsze",
99
+ "piper_voice_help": "Puste - domyślny głos serwera",
93
100
  "optional - If player does not work": "opcjonalne - Jeśli odtwarzacz nie działa",
94
101
  "place here": "Umieść pliki tutaj",
95
102
  "play": "grać",
@@ -54,6 +54,7 @@
54
54
  "Linux player:": "Jogador Linux",
55
55
  "Password": "Senha",
56
56
  "Password:": "Senha",
57
+ "Piper server": "Servidor Piper",
57
58
  "Pitch": "Tom",
58
59
  "Player": "Jogador",
59
60
  "Port": "Porta",
@@ -68,6 +69,8 @@
68
69
  "Server": "Servidor",
69
70
  "Server IP Address": "Endereço IP do servidor",
70
71
  "Server:": "Servidor",
72
+ "Speaker": "Locutor",
73
+ "Speed": "Velocidade",
71
74
  "System command": "Comando do sistema",
72
75
  "System command:": "Comando do sistema",
73
76
  "Test text": "Texto de teste",
@@ -90,6 +93,10 @@
90
93
  "in Hz": "em Hz",
91
94
  "in days": "em dias",
92
95
  "in seconds": "em segundos",
96
+ "piper_server_help": "Endereço do servidor HTTP do Piper, p. ex. http://192.168.1.10:5000",
97
+ "piper_speaker_help": "Apenas para vozes com vários locutores: nome ou número. Vazio - padrão",
98
+ "piper_speed_help": "1 - normal, valores maiores são mais lentos",
99
+ "piper_voice_help": "Vazio - voz padrão do servidor",
93
100
  "optional - If player does not work": "opcional - Se o reprodutor não funcionar",
94
101
  "place here": "Coloque arquivos aqui",
95
102
  "play": "Toque",
@@ -54,6 +54,7 @@
54
54
  "Linux player:": "Linux плейер",
55
55
  "Password": "Пароль",
56
56
  "Password:": "Пароль",
57
+ "Piper server": "Сервер Piper",
57
58
  "Pitch": "Высота тона",
58
59
  "Player": "Проигрыватель",
59
60
  "Port": "Порт",
@@ -68,6 +69,8 @@
68
69
  "Server": "Сервер",
69
70
  "Server IP Address": "IP-адрес сервера",
70
71
  "Server:": "Сервер",
72
+ "Speaker": "Диктор",
73
+ "Speed": "Скорость",
71
74
  "System command": "Системный вызов",
72
75
  "System command:": "Системный вызов",
73
76
  "Test text": "Тестовый текст",
@@ -90,6 +93,10 @@
90
93
  "in Hz": "в Гц",
91
94
  "in days": "в днях",
92
95
  "in seconds": "в секундах",
96
+ "piper_server_help": "Адрес HTTP-сервера Piper, например http://192.168.1.10:5000",
97
+ "piper_speaker_help": "Только для голосов с несколькими дикторами: имя или номер. Пусто - по умолчанию",
98
+ "piper_speed_help": "1 - обычная, большие значения медленнее",
99
+ "piper_voice_help": "Пусто - голос сервера по умолчанию",
93
100
  "optional - If player does not work": "необязательно - Если плеер не работает",
94
101
  "place here": "Перетащите файлы сюда",
95
102
  "play": "играть",
@@ -54,6 +54,7 @@
54
54
  "Linux player:": "Linux плеєр",
55
55
  "Password": "Пароль",
56
56
  "Password:": "Пароль",
57
+ "Piper server": "Сервер Piper",
57
58
  "Pitch": "Висота тону",
58
59
  "Player": "гравець",
59
60
  "Port": "Порт",
@@ -68,6 +69,8 @@
68
69
  "Server": "Сервер",
69
70
  "Server IP Address": "IP-адреса сервера",
70
71
  "Server:": "Сервер",
72
+ "Speaker": "Диктор",
73
+ "Speed": "Швидкість",
71
74
  "System command": "Системна команда",
72
75
  "System command:": "Системна команда",
73
76
  "Test text": "Тестовий текст",
@@ -90,6 +93,10 @@
90
93
  "in Hz": "у Гц",
91
94
  "in days": "в днях",
92
95
  "in seconds": "за секунди",
96
+ "piper_server_help": "Адреса HTTP-сервера Piper, наприклад http://192.168.1.10:5000",
97
+ "piper_speaker_help": "Лише для голосів з кількома дикторами: ім’я або номер. Порожньо - за замовчуванням",
98
+ "piper_speed_help": "1 - звичайна, більші значення повільніші",
99
+ "piper_voice_help": "Порожньо - голос сервера за замовчуванням",
93
100
  "optional - If player does not work": "необов'язково - якщо плеєр не працює",
94
101
  "place here": "Розмістіть файли тут",
95
102
  "play": "грати",
@@ -54,6 +54,7 @@
54
54
  "Linux player:": "Linux播放器",
55
55
  "Password": "密码",
56
56
  "Password:": "密码",
57
+ "Piper server": "Piper 服务器",
57
58
  "Pitch": "音高",
58
59
  "Player": "播放器",
59
60
  "Port": "口",
@@ -68,6 +69,8 @@
68
69
  "Server": "服务器",
69
70
  "Server IP Address": "服务器的IP地址",
70
71
  "Server:": "服务器",
72
+ "Speaker": "说话人",
73
+ "Speed": "语速",
71
74
  "System command": "系统的命令",
72
75
  "System command:": "系统的命令",
73
76
  "Test text": "测试文本",
@@ -90,6 +93,10 @@
90
93
  "in Hz": "赫兹",
91
94
  "in days": "在几天内",
92
95
  "in seconds": "很快",
96
+ "piper_server_help": "Piper HTTP 服务器地址,例如 http://192.168.1.10:5000",
97
+ "piper_speaker_help": "仅适用于有多个说话人的语音:名称或编号。留空 - 默认",
98
+ "piper_speed_help": "1 - 正常,数值越大越慢",
99
+ "piper_voice_help": "留空 - 服务器的默认语音",
93
100
  "optional - If player does not work": "可选 - 如果播放器不工作",
94
101
  "place here": "地方文件在这里",
95
102
  "play": "玩",
@@ -39,6 +39,10 @@
39
39
  "value": "heos",
40
40
  "label": "Heos"
41
41
  },
42
+ {
43
+ "value": "squeezebox",
44
+ "label": "Squeezebox"
45
+ },
42
46
  {
43
47
  "value": "chromecast",
44
48
  "label": "Chromecast"
@@ -275,6 +279,17 @@
275
279
  "lg": 2,
276
280
  "xl": 2
277
281
  },
282
+ "squeezeboxDevice": {
283
+ "type": "selectSendTo",
284
+ "label": "Device",
285
+ "hidden": "data.type !== 'squeezebox'",
286
+ "command": "browseSqueezebox",
287
+ "xs": 12,
288
+ "sm": 6,
289
+ "md": 4,
290
+ "lg": 2,
291
+ "xl": 2
292
+ },
278
293
  "mpdInstance": {
279
294
  "type": "instance",
280
295
  "label": "Device",
@@ -327,7 +342,7 @@
327
342
  "type": "instance",
328
343
  "adapter": "web",
329
344
  "label": "Web instance",
330
- "hidden": "data.type !== 'sonos' && data.type !== 'heos' && data.type !== 'chromecast' && data.type !== 'mpd' && data.type !== 'googleHome'",
345
+ "hidden": "data.type !== 'sonos' && data.type !== 'heos' && data.type !== 'squeezebox' && data.type !== 'chromecast' && data.type !== 'mpd' && data.type !== 'googleHome'",
331
346
  "xs": 12,
332
347
  "sm": 6,
333
348
  "md": 4,
@@ -339,7 +354,7 @@
339
354
  "onlyIp4": true,
340
355
  "noInternal": true,
341
356
  "label": "Web server IP",
342
- "hidden": "data.type !== 'sonos' && data.type !== 'heos' && data.type !== 'chromecast' && data.type !== 'mpd' && data.type !== 'googleHome'",
357
+ "hidden": "data.type !== 'sonos' && data.type !== 'heos' && data.type !== 'squeezebox' && data.type !== 'chromecast' && data.type !== 'mpd' && data.type !== 'googleHome'",
343
358
  "xs": 12,
344
359
  "sm": 6,
345
360
  "md": 4,
@@ -365,10 +380,11 @@
365
380
  "type": "select",
366
381
  "noTranslation": true,
367
382
  "label": "Provider",
368
- "defaultFunc": "!data.engine ? 'google' : data.engine === 'freeTTS' ? 'freeTTS' : data.engine.startsWith('ru_YA') ? 'yandex' : data.engine.includes('_AP_') ? 'polly' : data.engine.includes('_CLOUD_') ? 'cloud' : data.engine.includes('CoquiTTS') ? 'CoquiTTS' : data.engine.includes('-') && data.engine !== 'zh-CN' ? 'PicoTTS' : 'google'",
383
+ "defaultFunc": "!data.engine ? 'google' : data.engine === 'freeTTS' ? 'freeTTS' : data.engine === 'piper' ? 'piper' : data.engine.startsWith('ru_YA') ? 'yandex' : data.engine.includes('_AP_') ? 'polly' : data.engine.includes('_CLOUD_') ? 'cloud' : data.engine.includes('CoquiTTS') ? 'CoquiTTS' : data.engine.includes('-') && data.engine !== 'zh-CN' ? 'PicoTTS' : 'google'",
369
384
  "options": [
370
385
  { "value": "google", "label": "Google" },
371
386
  { "value": "freeTTS", "label": "FreeTTS (freetts.org)" },
387
+ { "value": "piper", "label": "Piper (local server)" },
372
388
  { "value": "yandex", "label": "Yandex" },
373
389
  { "value": "cloud", "label": "ioBroker Cloud" },
374
390
  { "value": "PicoTTS", "label": "PicoTTS (offline)" },
@@ -448,6 +464,11 @@
448
464
  "value": "freeTTS",
449
465
  "hidden": "data.engineProvider && data.engineProvider !== 'freeTTS' && data.engine !== 'freeTTS'"
450
466
  },
467
+ {
468
+ "label": "Piper (local server)",
469
+ "value": "piper",
470
+ "hidden": "data.engineProvider && data.engineProvider !== 'piper' && data.engine !== 'piper'"
471
+ },
451
472
  {
452
473
  "label": "Yandex - Русский",
453
474
  "value": "ru_YA",
@@ -1311,6 +1332,63 @@
1311
1332
  "lg": 2,
1312
1333
  "xl": 2
1313
1334
  },
1335
+ "piperServer": {
1336
+ "newLine": true,
1337
+ "type": "text",
1338
+ "label": "Piper server",
1339
+ "help": "piper_server_help",
1340
+ "helpLink": "https://github.com/OHF-Voice/piper1-gpl/blob/main/docs/API_HTTP.md",
1341
+ "placeholder": "http://192.168.1.10:5000",
1342
+ "hidden": "data.engine != 'piper'",
1343
+ "xs": 12,
1344
+ "sm": 12,
1345
+ "md": 6,
1346
+ "lg": 4,
1347
+ "xl": 4
1348
+ },
1349
+ "piperVoice": {
1350
+ "newLine": true,
1351
+ "type": "selectSendTo",
1352
+ "command": "getPiperVoices",
1353
+ "jsonData": "${JSON.stringify({ server: data.piperServer })}",
1354
+ "alsoDependsOn": ["piperServer"],
1355
+ "label": "Voice",
1356
+ "help": "piper_voice_help",
1357
+ "noTranslation": true,
1358
+ "manual": true,
1359
+ "hidden": "data.engine != 'piper'",
1360
+ "xs": 12,
1361
+ "sm": 12,
1362
+ "md": 6,
1363
+ "lg": 4,
1364
+ "xl": 4
1365
+ },
1366
+ "piperSpeaker": {
1367
+ "newLine": true,
1368
+ "type": "text",
1369
+ "label": "Speaker",
1370
+ "help": "piper_speaker_help",
1371
+ "hidden": "data.engine != 'piper'",
1372
+ "xs": 12,
1373
+ "sm": 6,
1374
+ "md": 4,
1375
+ "lg": 2,
1376
+ "xl": 2
1377
+ },
1378
+ "piperLengthScale": {
1379
+ "type": "number",
1380
+ "label": "Speed",
1381
+ "help": "piper_speed_help",
1382
+ "min": 0.3,
1383
+ "max": 3,
1384
+ "step": 0.1,
1385
+ "hidden": "data.engine != 'piper'",
1386
+ "xs": 12,
1387
+ "sm": 6,
1388
+ "md": 4,
1389
+ "lg": 2,
1390
+ "xl": 2
1391
+ },
1314
1392
  "yandexKey": {
1315
1393
  "newLine": true,
1316
1394
  "type": "text",
@@ -18,6 +18,9 @@ const sayitEngines = {
18
18
  // freetts.org offers more than 400 voices in more than 75 languages.
19
19
  // The language is not selected here, but by the voice (option "freettsVoice"), like "de-DE-KatjaNeural"
20
20
  freeTTS: { name: 'FreeTTS', engine: 'freeTTS' },
21
+ // Piper runs as a local HTTP server (python3 -m piper.http_server). Like freetts.org,
22
+ // the language is not selected here, but by the voice (option "piperVoice"), like "de_DE-thorsten-high"
23
+ piper: { name: 'Piper', engine: 'piper' },
21
24
  ru_YA: {
22
25
  name: 'Yandex - Русский',
23
26
  engine: 'yandex',
@@ -1325,6 +1328,13 @@ const sayitOptions = {
1325
1328
  server: true,
1326
1329
  libs: ['fs', 'crypto', 'http'],
1327
1330
  },
1331
+ squeezebox: {
1332
+ name: 'Squeezebox',
1333
+ mp3Required: true,
1334
+ checkLength: true,
1335
+ server: true,
1336
+ libs: ['fs', 'crypto', 'http'],
1337
+ },
1328
1338
  chromecast: {
1329
1339
  name: 'Chromecast',
1330
1340
  mp3Required: true,