No magic numbers
This commit is contained in:
@@ -31,6 +31,12 @@ constants.voiceResponseStrings = {
|
|||||||
GENERIC_CONTINUE : 'Would you like to continue'
|
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;
|
module.exports = constants;
|
||||||
@@ -39,7 +39,7 @@ module.exports = {
|
|||||||
listOfPossibleQuestions +=
|
listOfPossibleQuestions +=
|
||||||
intent.intentExplanation +
|
intent.intentExplanation +
|
||||||
intent.questions[0] +
|
intent.questions[0] +
|
||||||
'<break time="1s"/>';
|
'<break time="'+constants.voiceResponseTimings.PAUSE_BETWEEN_QUESTIONS+'ms"/>';
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -53,7 +53,7 @@ module.exports = {
|
|||||||
this.response
|
this.response
|
||||||
.speak (
|
.speak (
|
||||||
activeSkill.invocationAnswer +
|
activeSkill.invocationAnswer +
|
||||||
'<break time="650ms"/>' +
|
'<break time="'+constants.voiceResponseTimings.PAUSE_AFTER_WELCOME_MESSAGE+'ms"/>' +
|
||||||
listOfPossibleQuestions
|
listOfPossibleQuestions
|
||||||
)
|
)
|
||||||
.listen (constants.voiceResponseStrings.GENERIC_CONTINUE); //Phrase from listen doesn't work !!!
|
.listen (constants.voiceResponseStrings.GENERIC_CONTINUE); //Phrase from listen doesn't work !!!
|
||||||
|
|||||||
Reference in New Issue
Block a user