diff --git a/backend/config/constants.js b/backend/config/constants.js index b60f24b..299010e 100644 --- a/backend/config/constants.js +++ b/backend/config/constants.js @@ -31,6 +31,12 @@ constants.voiceResponseStrings = { GENERIC_CONTINUE : 'Would you like to continue' } +//Timing is given in [ms] +constats.voiceResponseTimings = { + PAUSE_BETWEEN_QUESTIONS : 650, + PAUSE_AFTER_WELCOME_MESSAGE : 650, +} + module.exports = constants; \ No newline at end of file diff --git a/backend/models/alexa.js b/backend/models/alexa.js index a08f6fb..801c5f9 100644 --- a/backend/models/alexa.js +++ b/backend/models/alexa.js @@ -39,7 +39,7 @@ module.exports = { listOfPossibleQuestions += intent.intentExplanation + intent.questions[0] + - ''; + ''; } }); @@ -53,7 +53,7 @@ module.exports = { this.response .speak ( activeSkill.invocationAnswer + - '' + + '' + listOfPossibleQuestions ) .listen (constants.voiceResponseStrings.GENERIC_CONTINUE); //Phrase from listen doesn't work !!!