diff --git a/lib/tasks/cognigy/speech-config.js b/lib/tasks/cognigy/speech-config.js index cc7b1060..e112136c 100644 --- a/lib/tasks/cognigy/speech-config.js +++ b/lib/tasks/cognigy/speech-config.js @@ -7,6 +7,9 @@ const stripNulls = (obj) => { return obj; }; + +const defaultSpeechConfig + class SpeechConfig extends Emitter { constructor({logger, ep, opts = {}}) { super(); @@ -23,10 +26,9 @@ class SpeechConfig extends Emitter { changedConfig ); merged.bargein.enable = changedConfig.bargein?.enable?.length === 0 ? [] : changedConfig.bargein?.enable; - + this.logger.debug({merged, sessionConfig: this.sessionConfig, changedConfig}, 'merged config'); // should we override hints with empty array or leave it as it is once saved? // merged.recognizer.hints = changedConfig.recognizer?.hints - } update(session) {