From e1a023c21e15eebb16ff1e431d7c17e0d2e2d27b Mon Sep 17 00:00:00 2001 From: Dave Horton Date: Fri, 21 Jan 2022 09:57:58 -0500 Subject: [PATCH] bugfix: aws property is engine not platform --- lib/tasks/say.js | 5 +++-- lib/tasks/specs.json | 2 +- package.json | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/lib/tasks/say.js b/lib/tasks/say.js index bc7e04f8..b627b987 100644 --- a/lib/tasks/say.js +++ b/lib/tasks/say.js @@ -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) => { diff --git a/lib/tasks/specs.json b/lib/tasks/specs.json index 0b250057..d6e3d27d 100644 --- a/lib/tasks/specs.json +++ b/lib/tasks/specs.json @@ -369,7 +369,7 @@ }, "language": "string", "voice": "string", - "platform": { + "engine": { "type": "string", "enum": ["standard", "neural"] }, diff --git a/package.json b/package.json index f20f0e32..586a2cad 100644 --- a/package.json +++ b/package.json @@ -30,7 +30,7 @@ "@jambonz/db-helpers": "^0.6.16", "@jambonz/http-health-check": "^0.0.1", "@jambonz/mw-registrar": "^0.2.1", - "@jambonz/realtimedb-helpers": "^0.4.15", + "@jambonz/realtimedb-helpers": "^0.4.16", "@jambonz/stats-collector": "^0.1.6", "@jambonz/time-series": "^0.1.5", "aws-sdk": "^2.1060.0",