say verb should not print speech credentials in log when tts stream API is used (#756)

This commit is contained in:
Hoan Luu Huu
2024-05-21 19:38:18 +07:00
committed by GitHub
parent 844b0cb05d
commit 6be3fd9b64

View File

@@ -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++;
}