From 52079dddb0f7c54212e5029d4bc9532363c93b11 Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Thu, 24 Feb 2022 15:40:28 -0500 Subject: [PATCH] minor change to prev commit --- lib/tasks/say.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/tasks/say.js b/lib/tasks/say.js index 7111d7e2..d19748ce 100644 --- a/lib/tasks/say.js +++ b/lib/tasks/say.js @@ -43,9 +43,7 @@ class TaskSay extends Task { // synthesize all of the text elements let lastUpdated = false; const filepath = (await Promise.all(this.text.map(async(text) => { - if (text.startsWith('silence://')) { - return `silence_stream://${text.slice(10)}`; - } + if (text.startsWith('silence_stream://')) return text; const {filePath, servedFromCache} = await synthAudio(stats, { text, vendor,