bugfix: synthesizer properties in the say verb were being ignored

This commit is contained in:
Dave Horton
2020-06-18 10:00:31 -04:00
parent 4e4ce0914e
commit c1112ea477

View File

@@ -24,9 +24,9 @@ class TaskSay extends Task {
const filepath = (await Promise.all(this.text.map(async(text) => { const filepath = (await Promise.all(this.text.map(async(text) => {
const fp = await synthAudio({ const fp = await synthAudio({
text, text,
vendor: cs.speechSynthesisVendor, vendor: this.synthesizer.vendor || cs.speechSynthesisVendor,
language: cs.speechSynthesisLanguage, language: this.synthesizer.language || cs.speechSynthesisLanguage,
voice: cs.speechSynthesisVoice, voice: this.synthesizer.voice || cs.speechSynthesisVoice,
salt: cs.callSid salt: cs.callSid
}).catch((err) => this.logger.error(err, 'Error synthesizing text')); }).catch((err) => this.logger.error(err, 'Error synthesizing text'));
if (fp) cs.trackTmpFile(fp); if (fp) cs.trackTmpFile(fp);