mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 16:50:39 +00:00
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:
@@ -105,6 +105,7 @@ class TaskSay extends Task {
|
||||
this.loop = this.data.loop || 1;
|
||||
this.earlyMedia = this.data.earlyMedia === true || (parentTask && parentTask.earlyMedia);
|
||||
this.synthesizer = this.data.synthesizer || {};
|
||||
this.disableTtsCache = this.data.disableTtsCache;
|
||||
}
|
||||
|
||||
get name() { return TaskName.Say; }
|
||||
@@ -185,7 +186,8 @@ class TaskSay extends Task {
|
||||
engine,
|
||||
model,
|
||||
salt,
|
||||
credentials
|
||||
credentials,
|
||||
disableTtsCache : this.disableTtsCache
|
||||
});
|
||||
this.logger.debug(`file ${filePath}, served from cache ${servedFromCache}`);
|
||||
if (filePath) cs.trackTmpFile(filePath);
|
||||
|
||||
@@ -122,7 +122,8 @@
|
||||
"text": "string|array",
|
||||
"loop": "number|string",
|
||||
"synthesizer": "#synthesizer",
|
||||
"earlyMedia": "boolean"
|
||||
"earlyMedia": "boolean",
|
||||
"disableTtsCache": "boolean"
|
||||
},
|
||||
"required": [
|
||||
"text"
|
||||
|
||||
Reference in New Issue
Block a user