From 6b43761ca7a3f047ab53098ce233147253e23010 Mon Sep 17 00:00:00 2001 From: guilevi Date: Sun, 11 Apr 2021 00:26:03 +0200 Subject: [PATCH] Remove logging and fix case stuff --- tts/.DS_Store | Bin 8196 -> 10244 bytes tts/azure/index.js | 2 +- tts/google/index.js | 2 +- 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tts/.DS_Store b/tts/.DS_Store index fa27fbc02ae53343fe32b199480c04c6b6e6a83e..3d43c49500da60d66e4e5bc15cdf1eb641c17925 100644 GIT binary patch delta 177 zcmZp1XbF&DU|?W$DortDU{C-uIe-{M3-C-V6q~50$SAWhU^hRb%w`^e%dFgN4CxH{ zK$y;uGkLY(EnXx(L+a)WqUKB+8~(EiG6M|&0tId$;R-TqW8rt^$^0^bB1{k)G(ggf W3=9S!dUAnG?_@^Ndjw54W&{8gJ0ubS delta 101 zcmZn(XmOBWU|?W$DortDU;r^WfEYvza8E20o2aMAD77(QH$S7)W*&jdteYQ*X)p;g p1EqmLf*VMdrS{LVa?UnP)(5u%@Aay-w}$$v#20oAKA0RWgd6o>!- diff --git a/tts/azure/index.js b/tts/azure/index.js index f933768..49d737a 100644 --- a/tts/azure/index.js +++ b/tts/azure/index.js @@ -51,7 +51,7 @@ module.exports = class AzureTTS extends BaseEngine { this.voices[voice.DisplayName.toLowerCase()] = voice.ShortName; } } else { - this.voices[voice.DisplayName] = voice.ShortName; + this.voices[voice.DisplayName.toLowerCase()] = voice.ShortName; } }); } diff --git a/tts/google/index.js b/tts/google/index.js index 6f8ca2a..0725269 100644 --- a/tts/google/index.js +++ b/tts/google/index.js @@ -15,7 +15,7 @@ module.exports = class GoogleCloudTTS extends BaseEngine { const [result] = await this.client.listVoices({}); const voiceList = result.voices; voiceList.forEach((voice) => { - console.log(voice) + this.voices[voice.name.toLowerCase()] = { name: voice.name, lang: voice.languageCodes[0] }; }); }