To lower case watson

master
Talon 2021-05-02 18:57:16 +02:00
parent cd51b092fc
commit b47437907b
1 changed files with 1 additions and 1 deletions

View File

@ -20,7 +20,7 @@ module.exports = class extends BaseEngine {
const res = await fetch(url, opts); const res = await fetch(url, opts);
const voices = await res.json(); const voices = await res.json();
voices.voices.forEach((i) => { voices.voices.forEach((i) => {
let voiceName = i.description.substring(0, i.description.indexOf(':')); let voiceName = i.description.substring(0, i.description.indexOf(':')).toLowerCase();
this.voices[voiceName] = i.name; this.voices[voiceName] = i.name;
}); });
} }