mirror of
https://github.com/jambonz/jambonz-feature-server.git
synced 2025-12-21 17:17:58 +00:00
linting fixes
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user