support disableTtsCache from config verb (#1410)

This commit is contained in:
Hoan Luu Huu
2025-10-28 19:19:03 +07:00
committed by GitHub
parent 0869a73052
commit 30ab281ea2
3 changed files with 22 additions and 1 deletions

View File

@@ -41,6 +41,10 @@ class TtsTask extends Task {
async exec(cs) {
super.exec(cs);
// update disableTtsCache from call session if not set in task
if (this.data.disableTtsCache == null) {
this.disableTtsCache = cs.disableTtsCache;
}
if (cs.synthesizer) {
this.options = {...cs.synthesizer.options, ...this.options};
this.data.synthesizer = this.data.synthesizer || {};