From c1112ea477eb25cb2703f5b40e9e71731152a66e Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Thu, 18 Jun 2020 10:00:31 -0400 Subject: [PATCH] bugfix: synthesizer properties in the say verb were being ignored --- lib/tasks/say.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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);