4b. introduce summarizer ; use summarizer for top news reading
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
const constants = {};
|
||||
|
||||
constants.skillStage = {
|
||||
IN_DEVELOPMENT : 'development',
|
||||
LIVE : 'live'
|
||||
}
|
||||
IN_DEVELOPMENT: 'development',
|
||||
LIVE: 'live',
|
||||
};
|
||||
|
||||
constants.amazonResultCodes = {
|
||||
OK: 200,
|
||||
@@ -36,12 +36,17 @@ constants.voiceResponseStrings = {
|
||||
QUESTION_NOT_FOUND: 'Sorry, I didnt understand',
|
||||
GENERIC_CONTINUE: 'Say something to continue',
|
||||
DIDNT_ASK_ANYTHING: 'There was no question to answer to',
|
||||
ERROR_SUMMARIZING_CONTENT: 'Sorry, there was problem with summarizing news',
|
||||
ERROR_FETCHING_CONTENT: 'Failed to get content',
|
||||
};
|
||||
|
||||
//Timing is given in [ms]
|
||||
constants.voiceResponseTimings = {
|
||||
PAUSE_BETWEEN_QUESTIONS: 650,
|
||||
PAUSE_AFTER_WELCOME_MESSAGE: 650,
|
||||
PAUSE_BETWEEN_TITLES: 500,
|
||||
PAUSE_BETWEEN_TITLE_AND_CONTENT: 500,
|
||||
PAUSE_BETWEEN_NEWS: 800,
|
||||
};
|
||||
|
||||
constants.stringConstraints = {
|
||||
@@ -65,8 +70,8 @@ constants.stringConstraints = {
|
||||
|
||||
constants.answerType = {
|
||||
PREDEFINED: 0,
|
||||
EXTERNAL_SOURCE_WP_JSON : 1,
|
||||
EXTERNAL_SOURCE_RSS : 2
|
||||
}
|
||||
EXTERNAL_SOURCE_WP_TITLES: 1,
|
||||
EXTERNAL_SOURCE_WP_NEWS: 2,
|
||||
};
|
||||
|
||||
module.exports = constants;
|
||||
|
||||
Reference in New Issue
Block a user