Remove logging and fix case stuff

master
guilevi 2021-04-11 00:26:03 +02:00
parent f0c71d75dc
commit 6b43761ca7
3 changed files with 2 additions and 2 deletions

BIN
tts/.DS_Store vendored

Binary file not shown.

View File

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

View File

@ -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] };
});
}