From faeaf2daaef61423c414f5290aecdb747b1ff020 Mon Sep 17 00:00:00 2001 From: Quan HL Date: Fri, 5 Jan 2024 21:23:11 +0700 Subject: [PATCH] feat override synthesizer options from config --- lib/tasks/say.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lib/tasks/say.js b/lib/tasks/say.js index 8523b114..e10bd6f4 100644 --- a/lib/tasks/say.js +++ b/lib/tasks/say.js @@ -68,6 +68,12 @@ class TaskSay extends Task { const salt = cs.callSid; let credentials = cs.getSpeechCredentials(vendor, 'tts', label); + + // override Synthesizer options from config verb + if (cs.synthesizer && cs.synthesizer.options) { + this.options = cs.synthesizer.options; + } + /* parse Nuance voices into name and model */ let model; if (vendor === 'nuance' && voice) {