fix gather

This commit is contained in:
akirilyuk
2022-02-02 22:58:00 +01:00
parent e872d314b3
commit 2738299524
3 changed files with 8 additions and 1 deletions

View File

@@ -21,6 +21,8 @@ class TaskSay extends Task {
const {updateSpeechCredentialLastUsed} = require('../utils/db-utils')(this.logger, srf);
const {writeAlerts, AlertType, stats} = srf.locals;
const {synthAudio} = srf.locals.dbHelpers;
// todo maybe we should allow the user to only change the voice/language without changing the vendor?
const hasVerbLevelTts = this.synthesizer.vendor && this.synthesizer.vendor !== 'default';
const vendor = hasVerbLevelTts ? this.synthesizer.vendor : cs.speechSynthesisVendor ;
const language = hasVerbLevelTts ? this.synthesizer.language : cs.speechSynthesisLanguage ;