mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-20 08:40:38 +00:00
bugfix: aws property is engine not platform
This commit is contained in:
@@ -1,5 +1,6 @@
|
|||||||
const Task = require('./task');
|
const Task = require('./task');
|
||||||
const {TaskName, TaskPreconditions} = require('../utils/constants');
|
const {TaskName, TaskPreconditions} = require('../utils/constants');
|
||||||
|
const { logger } = require('../../app');
|
||||||
|
|
||||||
class TaskSay extends Task {
|
class TaskSay extends Task {
|
||||||
constructor(logger, opts, parentTask) {
|
constructor(logger, opts, parentTask) {
|
||||||
@@ -25,7 +26,7 @@ class TaskSay extends Task {
|
|||||||
const vendor = hasVerbLevelTts ? this.synthesizer.vendor : cs.speechSynthesisVendor ;
|
const vendor = hasVerbLevelTts ? this.synthesizer.vendor : cs.speechSynthesisVendor ;
|
||||||
const language = hasVerbLevelTts ? this.synthesizer.language : cs.speechSynthesisLanguage ;
|
const language = hasVerbLevelTts ? this.synthesizer.language : cs.speechSynthesisLanguage ;
|
||||||
const voice = hasVerbLevelTts ? this.synthesizer.voice : cs.speechSynthesisVoice ;
|
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 salt = cs.callSid;
|
||||||
const credentials = cs.getSpeechCredentials(vendor, 'tts');
|
const credentials = cs.getSpeechCredentials(vendor, 'tts');
|
||||||
|
|
||||||
@@ -48,7 +49,7 @@ class TaskSay extends Task {
|
|||||||
vendor,
|
vendor,
|
||||||
language,
|
language,
|
||||||
voice,
|
voice,
|
||||||
platform,
|
engine,
|
||||||
salt,
|
salt,
|
||||||
credentials
|
credentials
|
||||||
}).catch((err) => {
|
}).catch((err) => {
|
||||||
|
|||||||
@@ -369,7 +369,7 @@
|
|||||||
},
|
},
|
||||||
"language": "string",
|
"language": "string",
|
||||||
"voice": "string",
|
"voice": "string",
|
||||||
"platform": {
|
"engine": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"enum": ["standard", "neural"]
|
"enum": ["standard", "neural"]
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
"@jambonz/db-helpers": "^0.6.16",
|
"@jambonz/db-helpers": "^0.6.16",
|
||||||
"@jambonz/http-health-check": "^0.0.1",
|
"@jambonz/http-health-check": "^0.0.1",
|
||||||
"@jambonz/mw-registrar": "^0.2.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/stats-collector": "^0.1.6",
|
||||||
"@jambonz/time-series": "^0.1.5",
|
"@jambonz/time-series": "^0.1.5",
|
||||||
"aws-sdk": "^2.1060.0",
|
"aws-sdk": "^2.1060.0",
|
||||||
|
|||||||
Reference in New Issue
Block a user