diff --git a/tts/.DS_Store b/tts/.DS_Store index fa27fbc..3d43c49 100644 Binary files a/tts/.DS_Store and b/tts/.DS_Store differ 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] }; }); }