【发布时间】:2020-09-25 08:03:31
【问题描述】:
我正在尝试在 Alexa 测验中添加自定义音频文件,但似乎无法弄清楚。我基本上使用了刚刚调整过的https://github.com/alexa/skill-sample-nodejs-quiz-game 中的所有内容。下面是文本的 JSON 语音代码。另外,我是一个业余爱好者而不是真正的开发人员,所以如果这完全没有意义,我很抱歉。
const languageString = {
en: {
translation: {
QUESTIONS: questions.QUESTIONS_EN_US,
GAME_NAME: 'Trivia',
HELP_MESSAGE: 'I will ask you %s multiple choice questions. Respond with the number of the answer. For example, say one, two, three, or four. To start a new game at any time, say, start game. ',
REPEAT_QUESTION_MESSAGE: 'To repeat the last question, say, repeat. ',
ASK_MESSAGE_START: 'Would you like to start playing?',
HELP_REPROMPT: 'To give an answer to a question, respond with the number of the answer. ',
STOP_MESSAGE: 'Would you like to keep playing?',
QUIT_MESSAGE: 'Good bye.',
CANCEL_MESSAGE: 'Ok, let\'s play again soon.',
NO_MESSAGE: 'Ok, we\'ll play another time. Goodbye!',
TRIVIA_UNHANDLED: 'Try saying a number between 1 and %s',
HELP_UNHANDLED: 'Say yes to continue, or no to end the game.',
START_UNHANDLED: 'Say start to start a new game.',
NEW_GAME_MESSAGE: 'Welcome to %s. ',
WELCOME_MESSAGE: 'I will ask you %s questions, try to get as many right as you can. Just say the number of the answer. Let\'s begin. ',
ANSWER_CORRECT_MESSAGE: 'correct. ',
ANSWER_WRONG_MESSAGE: 'wrong. ',
CORRECT_ANSWER_MESSAGE: 'The correct answer is %s: %s. ',
ANSWER_IS_MESSAGE: 'That answer is ',
TELL_QUESTION_MESSAGE: 'Question %s. %s ',
GAME_OVER_MESSAGE: 'You got %s out of %s questions correct. Thank you for playing!',
SCORE_IS_MESSAGE: 'Your score is %s. '
},
},
【问题讨论】:
标签: javascript node.js json aws-lambda alexa