linting fixes

This commit is contained in:
Dave Horton
2022-01-26 14:04:14 -05:00
parent 8c00c89882
commit 2ce902c00d
3 changed files with 3 additions and 4 deletions

View File

@@ -3,7 +3,6 @@ const {TaskName, TaskPreconditions} = require('../../utils/constants');
const makeTask = require('../make_task'); const makeTask = require('../make_task');
const { SocketClient } = require('@cognigy/socket-client'); const { SocketClient } = require('@cognigy/socket-client');
const SpeechConfig = require('./speech-config'); const SpeechConfig = require('./speech-config');
const { IoTThingsGraph } = require('aws-sdk');
const parseGallery = (obj = {}) => { const parseGallery = (obj = {}) => {
const {_default} = obj; const {_default} = obj;

View File

@@ -49,7 +49,7 @@ class SpeechConfig extends Emitter {
const speechBargein = Array.isArray(bargein.enable) && bargein.enable.includes('speech'); const speechBargein = Array.isArray(bargein.enable) && bargein.enable.includes('speech');
const dtmfBargein = Array.isArray(bargein.enable) && bargein.enable.includes('dtmf'); const dtmfBargein = Array.isArray(bargein.enable) && bargein.enable.includes('dtmf');
const minBargeinWordCount = speechBargein ? (bargein.minWordCount || 1) : 0; 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 {noInputTimeout, noInputRetries, noInputSpeech, noInputUrl} = (opts.user || {});
const sayConfig = { const sayConfig = {
text: textPrompt, text: textPrompt,
@@ -73,7 +73,7 @@ class SpeechConfig extends Emitter {
retry : { retry : {
noInputRetries, noInputRetries,
noInputSpeech, noInputSpeech,
noInputUrl noInputUrl
} }
}; };

View File

@@ -297,7 +297,7 @@ class TaskGather extends Task {
transcript: evt.Text transcript: evt.Text
} }
] ]
} };
} }
} }
if (evt.is_final) this._resolve('speech', evt); if (evt.is_final) this._resolve('speech', evt);