diff --git a/lib/tasks/cognigy/index.js b/lib/tasks/cognigy/index.js index 4d2cb6ae..d216996b 100644 --- a/lib/tasks/cognigy/index.js +++ b/lib/tasks/cognigy/index.js @@ -3,7 +3,6 @@ const {TaskName, TaskPreconditions} = require('../../utils/constants'); const makeTask = require('../make_task'); const { SocketClient } = require('@cognigy/socket-client'); const SpeechConfig = require('./speech-config'); -const { IoTThingsGraph } = require('aws-sdk'); const parseGallery = (obj = {}) => { const {_default} = obj; diff --git a/lib/tasks/cognigy/speech-config.js b/lib/tasks/cognigy/speech-config.js index a802beb9..fe448963 100644 --- a/lib/tasks/cognigy/speech-config.js +++ b/lib/tasks/cognigy/speech-config.js @@ -49,7 +49,7 @@ class SpeechConfig extends Emitter { const speechBargein = Array.isArray(bargein.enable) && bargein.enable.includes('speech'); const dtmfBargein = Array.isArray(bargein.enable) && bargein.enable.includes('dtmf'); const minBargeinWordCount = speechBargein ? (bargein.minWordCount || 1) : 0; - const {interDigitTimeout=0, maxDigits, minDigits=1, submitDigit} = (opts.dtmf || {}); + const {interDigitTimeout = 0, maxDigits, minDigits = 1, submitDigit} = (opts.dtmf || {}); const {noInputTimeout, noInputRetries, noInputSpeech, noInputUrl} = (opts.user || {}); const sayConfig = { text: textPrompt, @@ -73,7 +73,7 @@ class SpeechConfig extends Emitter { retry : { noInputRetries, noInputSpeech, - noInputUrl + noInputUrl } }; diff --git a/lib/tasks/gather.js b/lib/tasks/gather.js index a38ca293..d8b68794 100644 --- a/lib/tasks/gather.js +++ b/lib/tasks/gather.js @@ -297,7 +297,7 @@ class TaskGather extends Task { transcript: evt.Text } ] - } + }; } } if (evt.is_final) this._resolve('speech', evt);