diff --git a/lib/tasks/say.js b/lib/tasks/say.js index 20f69e19..97a341e5 100644 --- a/lib/tasks/say.js +++ b/lib/tasks/say.js @@ -24,9 +24,9 @@ class TaskSay extends Task { const filepath = (await Promise.all(this.text.map(async(text) => { const fp = await synthAudio({ text, - vendor: cs.speechSynthesisVendor, - language: cs.speechSynthesisLanguage, - voice: cs.speechSynthesisVoice, + vendor: this.synthesizer.vendor || cs.speechSynthesisVendor, + language: this.synthesizer.language || cs.speechSynthesisLanguage, + voice: this.synthesizer.voice || cs.speechSynthesisVoice, salt: cs.callSid }).catch((err) => this.logger.error(err, 'Error synthesizing text')); if (fp) cs.trackTmpFile(fp);