Remove logging and fix case stuff
This commit is contained in:
BIN
tts/.DS_Store
vendored
BIN
tts/.DS_Store
vendored
Binary file not shown.
@@ -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;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
@@ -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] };
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user