Feature/force tts generation (#208)

* Feature: add option synthesizer.forceTtsGeneration #198

* Feature: add option synthesizer.forceTtsGeneration #198

* minor cleanup

* minor

Co-authored-by: Michal Tesar <michal@irevolution.group>
This commit is contained in:
Dave Horton
2023-01-04 15:42:48 -05:00
committed by GitHub
parent b16d49d8ea
commit 05a4665f87
2 changed files with 5 additions and 2 deletions

View File

@@ -105,6 +105,7 @@ class TaskSay extends Task {
this.loop = this.data.loop || 1; this.loop = this.data.loop || 1;
this.earlyMedia = this.data.earlyMedia === true || (parentTask && parentTask.earlyMedia); this.earlyMedia = this.data.earlyMedia === true || (parentTask && parentTask.earlyMedia);
this.synthesizer = this.data.synthesizer || {}; this.synthesizer = this.data.synthesizer || {};
this.disableTtsCache = this.data.disableTtsCache;
} }
get name() { return TaskName.Say; } get name() { return TaskName.Say; }
@@ -185,7 +186,8 @@ class TaskSay extends Task {
engine, engine,
model, model,
salt, salt,
credentials credentials,
disableTtsCache : this.disableTtsCache
}); });
this.logger.debug(`file ${filePath}, served from cache ${servedFromCache}`); this.logger.debug(`file ${filePath}, served from cache ${servedFromCache}`);
if (filePath) cs.trackTmpFile(filePath); if (filePath) cs.trackTmpFile(filePath);

View File

@@ -122,7 +122,8 @@
"text": "string|array", "text": "string|array",
"loop": "number|string", "loop": "number|string",
"synthesizer": "#synthesizer", "synthesizer": "#synthesizer",
"earlyMedia": "boolean" "earlyMedia": "boolean",
"disableTtsCache": "boolean"
}, },
"required": [ "required": [
"text" "text"