From 21f03dd13a7ed2cca50fd100736b3d4175910e79 Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Fri, 12 Jan 2024 16:19:59 -0500 Subject: [PATCH] fix for establishing vendor etc --- lib/session/call-session.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) 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},