From b47437907b6c8bcb8d85195cff57ac05fefe0655 Mon Sep 17 00:00:00 2001 From: Talon Date: Sun, 2 May 2021 18:57:16 +0200 Subject: [PATCH] To lower case watson --- tts/{.watson => watson}/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) rename tts/{.watson => watson}/index.js (98%) diff --git a/tts/.watson/index.js b/tts/watson/index.js similarity index 98% rename from tts/.watson/index.js rename to tts/watson/index.js index e6eb166..9df494e 100644 --- a/tts/.watson/index.js +++ b/tts/watson/index.js @@ -20,7 +20,7 @@ module.exports = class extends BaseEngine { const res = await fetch(url, opts); const voices = await res.json(); 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; }); }