iobroker.sayit 2.1.0 → 2.1.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 CHANGED
@@ -265,7 +265,7 @@ Following values for engines are possible:
265
265
  ### **WORK IN PROGRESS**
266
266
  -->
267
267
  ## Changelog
268
- ### 2.1.0 (2023-03-24)
268
+ ### 2.1.1 (2023-03-24)
269
269
  * (Jey-Cee) Added support for Coqui TTS
270
270
  * (bluefox) Renamed all configuration attributes
271
271
 
@@ -49,5 +49,6 @@
49
49
  "Engine": "TTS-Engine",
50
50
  "Cache generated files": "Generierte Dateien zwischenspeichern",
51
51
  "Google home server": "Google-Heimserver",
52
- "in % to playing volume": "in % zur Spiellautstärke"
52
+ "in % to playing volume": "in % zur Spiellautstärke",
53
+ "optional - If player does not work": "optional - Wenn der Player nicht funktioniert"
53
54
  }
@@ -49,5 +49,6 @@
49
49
  "Engine": "TTS Engine",
50
50
  "Cache generated files": "Cache generated files",
51
51
  "Google home server": "Google home server",
52
- "in % to playing volume": "in % to playing volume"
52
+ "in % to playing volume": "in % to playing volume",
53
+ "optional - If player does not work": "optional - If player does not work"
53
54
  }
@@ -49,5 +49,6 @@
49
49
  "Engine": "Motor de TTS",
50
50
  "Cache generated files": "Caché de archivos generados",
51
51
  "Google home server": "servidor principal de Google",
52
- "in % to playing volume": "en % al volumen de reproducción"
52
+ "in % to playing volume": "en % al volumen de reproducción",
53
+ "optional - If player does not work": "opcional: si el reproductor no funciona"
53
54
  }
@@ -49,5 +49,6 @@
49
49
  "Engine": "Moteur TTS",
50
50
  "Cache generated files": "Fichiers générés par le cache",
51
51
  "Google home server": "Serveur domestique Google",
52
- "in % to playing volume": "en % du volume de lecture"
52
+ "in % to playing volume": "en % du volume de lecture",
53
+ "optional - If player does not work": "facultatif - Si le lecteur ne fonctionne pas"
53
54
  }
@@ -49,5 +49,6 @@
49
49
  "Engine": "Motore di sintesi vocale",
50
50
  "Cache generated files": "File generati nella cache",
51
51
  "Google home server": "Server domestico di Google",
52
- "in % to playing volume": "in % al volume di riproduzione"
52
+ "in % to playing volume": "in % al volume di riproduzione",
53
+ "optional - If player does not work": "opzionale - Se il lettore non funziona"
53
54
  }
@@ -49,5 +49,6 @@
49
49
  "Engine": "TTS-motor",
50
50
  "Cache generated files": "Cache-gegenereerde bestanden",
51
51
  "Google home server": "Google-thuisserver",
52
- "in % to playing volume": "in % van het speelvolume"
52
+ "in % to playing volume": "in % van het speelvolume",
53
+ "optional - If player does not work": "optioneel - Als de speler niet werkt"
53
54
  }
@@ -49,5 +49,6 @@
49
49
  "Engine": "Silnik TTS",
50
50
  "Cache generated files": "Pliki generowane w pamięci podręcznej",
51
51
  "Google home server": "Domowy serwer Google",
52
- "in % to playing volume": "w % do głośności odtwarzania"
52
+ "in % to playing volume": "w % do głośności odtwarzania",
53
+ "optional - If player does not work": "opcjonalne - Jeśli odtwarzacz nie działa"
53
54
  }
@@ -49,5 +49,6 @@
49
49
  "Engine": "Motor TTS",
50
50
  "Cache generated files": "Arquivos gerados em cache",
51
51
  "Google home server": "servidor doméstico do Google",
52
- "in % to playing volume": "em % para tocar o volume"
52
+ "in % to playing volume": "em % para tocar o volume",
53
+ "optional - If player does not work": "opcional - Se o reprodutor não funcionar"
53
54
  }
@@ -49,5 +49,6 @@
49
49
  "Engine": "Движок TTS",
50
50
  "Cache generated files": "Кэшировать сгенерированные файлы",
51
51
  "Google home server": "домашний сервер гугл",
52
- "in % to playing volume": "в % к громкости воспроизведения"
52
+ "in % to playing volume": "в % к громкости воспроизведения",
53
+ "optional - If player does not work": "необязательно - Если плеер не работает"
53
54
  }
@@ -49,5 +49,6 @@
49
49
  "Engine": "Двигун TTS",
50
50
  "Cache generated files": "Кешувати згенеровані файли",
51
51
  "Google home server": "Домашній сервер Google",
52
- "in % to playing volume": "у % до гучності відтворення"
52
+ "in % to playing volume": "у % до гучності відтворення",
53
+ "optional - If player does not work": "необов'язково - якщо плеєр не працює"
53
54
  }
@@ -49,5 +49,6 @@
49
49
  "Engine": "语音合成引擎",
50
50
  "Cache generated files": "缓存生成的文件",
51
51
  "Google home server": "谷歌家庭服务器",
52
- "in % to playing volume": "占播放音量的百分比"
52
+ "in % to playing volume": "占播放音量的百分比",
53
+ "optional - If player does not work": "可选 - 如果播放器不工作"
53
54
  }
@@ -57,15 +57,16 @@
57
57
  "lg": 4
58
58
  },
59
59
  "systemCommand": {
60
+ "newLine": true,
60
61
  "type": "text",
61
62
  "label": "System command",
62
63
  "hidden": "data.type !== 'system'",
64
+ "help": "optional - If player does not work",
63
65
  "sm": 6,
64
66
  "md": 4,
65
67
  "lg": 2
66
68
  },
67
69
  "systemPlayer": {
68
- "newLine": true,
69
70
  "type": "select",
70
71
  "label": "Linux player",
71
72
  "hidden": "data.type !== 'system' || data.command",
package/io-package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "common": {
3
3
  "name": "sayit",
4
- "version": "2.1.0",
4
+ "version": "2.1.1",
5
5
  "news": {
6
- "2.1.0": {
6
+ "2.1.1": {
7
7
  "en": "Added support for Coqui TTS\nRenamed all configuration attributes",
8
8
  "de": "Unterstützung für Coqui TTS\nAlle Konfigurationsattribute umbenannt",
9
9
  "ru": "Добавлена поддержка Coqui TTS\nПереименованные все атрибуты конфигурации",
package/main.js CHANGED
@@ -400,7 +400,7 @@ async function processTasks() {
400
400
  let duration = 0;
401
401
 
402
402
  if (!onlyCache && text.length) {
403
- await this.adapter.setStateAsync('tts.playing', true, true);
403
+ await adapter.setStateAsync('tts.playing', true, true);
404
404
  try {
405
405
  // play file
406
406
  if (fileName) {
@@ -417,7 +417,7 @@ async function processTasks() {
417
417
  } catch (e) {
418
418
  adapter.log.error(`Cannot play file: ${e}`);
419
419
  }
420
- await this.adapter.setStateAsync('tts.playing', false, true);
420
+ await adapter.setStateAsync('tts.playing', false, true);
421
421
  }
422
422
 
423
423
  tasks.shift();
@@ -477,9 +477,9 @@ async function uploadFiles() {
477
477
  type: 'meta',
478
478
  common: {
479
479
  name: 'User files for SayIt',
480
- type: 'meta.user'
480
+ type: 'meta.user',
481
481
  },
482
- native: {}
482
+ native: {},
483
483
  });
484
484
  }
485
485
 
@@ -538,6 +538,9 @@ async function start() {
538
538
  delete newConfig.pass;
539
539
  delete newConfig.cDevice;
540
540
  delete newConfig.instance;
541
+ delete newConfig.sonos;
542
+ delete newConfig.googleHome;
543
+ delete newConfig.device;
541
544
 
542
545
  if (newConfig.engine === 'ru_YA_CLOUD') {
543
546
  newConfig.yandexKey = newConfig.key;
@@ -568,10 +571,11 @@ async function start() {
568
571
  delete newConfig.voice;
569
572
  delete newConfig.key;
570
573
  delete newConfig.folderID;
574
+ delete newConfig.cloud;
571
575
 
572
576
  newConfig.convertedV1toV2 = true;
573
577
 
574
- const configObj = await adapter.getForeignObjectAsync('system.adapter.' + adapter.namespace);
578
+ const configObj = await adapter.getForeignObjectAsync(`system.adapter.${adapter.namespace}`);
575
579
  configObj.native = newConfig;
576
580
  await adapter.setForeignObjectAsync(configObj._id, configObj);
577
581
  // wait for restart
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "iobroker.sayit",
3
- "version": "2.1.0",
3
+ "version": "2.1.1",
4
4
  "description": "Text to speech interface for ioBroker.",
5
5
  "author": {
6
6
  "name": "bluefox",