Fix non neuralness
parent
6b43761ca7
commit
cbb4a6898b
|
@ -1854,6 +1854,7 @@
|
|||
"hasInstallScript": true,
|
||||
"dependencies": {
|
||||
"node-addon-api": "^3.0.0",
|
||||
"node-gyp": "3.x",
|
||||
"node-pre-gyp": "^0.11.0"
|
||||
},
|
||||
"optionalDependencies": {
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue