bugfix: aws property is engine not platform

This commit is contained in:
Dave Horton
2022-01-21 09:57:58 -05:00
parent 8acb4d1a24
commit e1a023c21e
3 changed files with 5 additions and 4 deletions

View File

@@ -1,5 +1,6 @@
const Task = require('./task');
const {TaskName, TaskPreconditions} = require('../utils/constants');
const { logger } = require('../../app');
class TaskSay extends Task {
constructor(logger, opts, parentTask) {
@@ -25,7 +26,7 @@ class TaskSay extends Task {
const vendor = hasVerbLevelTts ? this.synthesizer.vendor : cs.speechSynthesisVendor ;
const language = hasVerbLevelTts ? this.synthesizer.language : cs.speechSynthesisLanguage ;
const voice = hasVerbLevelTts ? this.synthesizer.voice : cs.speechSynthesisVoice ;
const platform = this.synthesizer.platform || 'standard';
const engine = this.synthesizer.engine || 'standard';
const salt = cs.callSid;
const credentials = cs.getSpeechCredentials(vendor, 'tts');
@@ -48,7 +49,7 @@ class TaskSay extends Task {
vendor,
language,
voice,
platform,
engine,
salt,
credentials
}).catch((err) => {

View File

@@ -369,7 +369,7 @@
},
"language": "string",
"voice": "string",
"platform": {
"engine": {
"type": "string",
"enum": ["standard", "neural"]
},