From cbb4a6898b0b0c46ece119cf9726dea1d84acc9f Mon Sep 17 00:00:00 2001 From: Talon Date: Sun, 11 Apr 2021 00:55:42 +0200 Subject: [PATCH] Fix non neuralness --- package-lock.json | 1 + tts/azure/index.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index 894e9b8..ee7ec89 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1854,6 +1854,7 @@ "hasInstallScript": true, "dependencies": { "node-addon-api": "^3.0.0", + "node-gyp": "3.x", "node-pre-gyp": "^0.11.0" }, "optionalDependencies": { diff --git a/tts/azure/index.js b/tts/azure/index.js index 49d737a..38a8a27 100644 --- a/tts/azure/index.js +++ b/tts/azure/index.js @@ -46,7 +46,7 @@ module.exports = class AzureTTS extends BaseEngine { const res = await fetch(process.env.AZURE_LIST_ENDPOINT, opts); const json = await res.json(); json.forEach((voice) => { - if (this.voices[voice.DisplayName]) { + if (this.voices[voice.DisplayName.toLowerCase()]) { if (voice.Name.includes('Neural')) { this.voices[voice.DisplayName.toLowerCase()] = voice.ShortName; }