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; }