diff --git a/lib/session/call-session.js b/lib/session/call-session.js index 87881915..6b7edc77 100644 --- a/lib/session/call-session.js +++ b/lib/session/call-session.js @@ -1335,17 +1335,17 @@ Duration=${duration} ` for (const task of newTasks) { if (task.name === TaskName.Say) { /* identify vendor language, voice, and label */ - const vendor = this.synthesizer.vendor && this.synthesizer.vendor !== 'default' ? - this.synthesizer.vendor : + const vendor = task.synthesizer.vendor && task.synthesizer.vendor !== 'default' ? + task.synthesizer.vendor : this.speechSynthesisVendor; - const language = this.synthesizer.language && this.synthesizer.language !== 'default' ? - this.synthesizer.language : + const language = task.synthesizer.language && task.synthesizer.language !== 'default' ? + task.synthesizer.language : this.speechSynthesisLanguage ; - const voice = this.synthesizer.voice && this.synthesizer.voice !== 'default' ? - this.synthesizer.voice : + const voice = task.synthesizer.voice && task.synthesizer.voice !== 'default' ? + task.synthesizer.voice : this.speechSynthesisVoice; - const label = this.synthesizer.label && this.synthesizer.label !== 'default' ? - this.synthesizer.label : + const label = task.synthesizer.label && task.synthesizer.label !== 'default' ? + task.synthesizer.label : this.speechSynthesisLabel; this.logger.info({vendor, language, voice, label},