Remove logging and fix case stuff
parent
f0c71d75dc
commit
6b43761ca7
Binary file not shown.
|
@ -51,7 +51,7 @@ module.exports = class AzureTTS extends BaseEngine {
|
||||||
this.voices[voice.DisplayName.toLowerCase()] = voice.ShortName;
|
this.voices[voice.DisplayName.toLowerCase()] = voice.ShortName;
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.voices[voice.DisplayName] = voice.ShortName;
|
this.voices[voice.DisplayName.toLowerCase()] = voice.ShortName;
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,7 +15,7 @@ module.exports = class GoogleCloudTTS extends BaseEngine {
|
||||||
const [result] = await this.client.listVoices({});
|
const [result] = await this.client.listVoices({});
|
||||||
const voiceList = result.voices;
|
const voiceList = result.voices;
|
||||||
voiceList.forEach((voice) => {
|
voiceList.forEach((voice) => {
|
||||||
console.log(voice)
|
|
||||||
this.voices[voice.name.toLowerCase()] = { name: voice.name, lang: voice.languageCodes[0] };
|
this.voices[voice.name.toLowerCase()] = { name: voice.name, lang: voice.languageCodes[0] };
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue