feat override synthesizer options from config

This commit is contained in:
Quan HL
2024-01-05 21:23:11 +07:00
parent 8173a306f7
commit faeaf2daae

View File

@@ -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) {