From 6be3fd9b64885a9ee7c60020a200ff645f8952e3 Mon Sep 17 00:00:00 2001 From: Hoan Luu Huu <110280845+xquanluu@users.noreply.github.com> Date: Tue, 21 May 2024 19:38:18 +0700 Subject: [PATCH] say verb should not print speech credentials in log when tts stream API is used (#756) --- lib/tasks/say.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/tasks/say.js b/lib/tasks/say.js index 521ad502..702a3d2d 100644 --- a/lib/tasks/say.js +++ b/lib/tasks/say.js @@ -341,8 +341,10 @@ class TaskSay extends TtsTask { if (filepath[segment].startsWith('say:{')) { const arr = /^say:\{.*\}\s*(.*)$/.exec(filepath[segment]); if (arr) this.logger.debug(`Say:exec complete playing streaming tts request: ${arr[1].substring(0, 64)}..`); + } else { + // This log will print spech credentials in say command for tts stream mode + this.logger.debug(`Say:exec completed play file ${filepath[segment]}`); } - this.logger.debug(`Say:exec completed play file ${filepath[segment]}`); } segment++; }