mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-21 09:08:02 +00:00
fix for establishing vendor etc
This commit is contained in:
@@ -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},
|
||||||
|
|||||||
Reference in New Issue
Block a user