fix for establishing vendor etc

This commit is contained in:
Dave Horton
2024-01-12 16:19:59 -05:00
parent c2eef50512
commit 21f03dd13a

View File

@@ -1335,17 +1335,17 @@ Duration=${duration} `
for (const task of newTasks) { for (const task of newTasks) {
if (task.name === TaskName.Say) { if (task.name === TaskName.Say) {
/* identify vendor language, voice, and label */ /* identify vendor language, voice, and label */
const vendor = this.synthesizer.vendor && this.synthesizer.vendor !== 'default' ? const vendor = task.synthesizer.vendor && task.synthesizer.vendor !== 'default' ?
this.synthesizer.vendor : task.synthesizer.vendor :
this.speechSynthesisVendor; this.speechSynthesisVendor;
const language = this.synthesizer.language && this.synthesizer.language !== 'default' ? const language = task.synthesizer.language && task.synthesizer.language !== 'default' ?
this.synthesizer.language : task.synthesizer.language :
this.speechSynthesisLanguage ; this.speechSynthesisLanguage ;
const voice = this.synthesizer.voice && this.synthesizer.voice !== 'default' ? const voice = task.synthesizer.voice && task.synthesizer.voice !== 'default' ?
this.synthesizer.voice : task.synthesizer.voice :
this.speechSynthesisVoice; this.speechSynthesisVoice;
const label = this.synthesizer.label && this.synthesizer.label !== 'default' ? const label = task.synthesizer.label && task.synthesizer.label !== 'default' ?
this.synthesizer.label : task.synthesizer.label :
this.speechSynthesisLabel; this.speechSynthesisLabel;
this.logger.info({vendor, language, voice, label}, this.logger.info({vendor, language, voice, label},