Merge branch 'master' of https://code.iamtalon.me/talon/tardis-bot
commit
a74cf74574
|
@ -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;
|
||||||
});
|
});
|
||||||
}
|
}
|
Loading…
Reference in New Issue