From 161e67ece5295a973e105af60190b2563ae1d29f Mon Sep 17 00:00:00 2001 From: akirilyuk Date: Tue, 1 Feb 2022 15:29:16 +0100 Subject: [PATCH] fix gather task creation again --- lib/tasks/cognigy/speech-config.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lib/tasks/cognigy/speech-config.js b/lib/tasks/cognigy/speech-config.js index fa28ba3c..74f5a0ee 100644 --- a/lib/tasks/cognigy/speech-config.js +++ b/lib/tasks/cognigy/speech-config.js @@ -91,6 +91,13 @@ class SpeechConfig extends Emitter { /* turn config can now be emptied for next turn of conversation */ this.turnConfig = {}; + + const config = {}; + if(sayConfig){ + config.say = sayConfig; + }else if(playConfig){ + config.play = playConfig; + } return textPrompt ? {...final, say: sayConfig} : {...final, play: playConfig};