我正在使用lambda函数端点(Node 8.10运行时)来构建我的第一个Alexa技能。使用ask-sdk-core
是否可以获取用来打开我的技能的启动短语?这是我的上下文处理程序代码:
const LaunchRequestHandler = {
canHandle(handlerInput) {
console.log(handlerInput.requestEnvelope);
return handlerInput.requestEnvelope.request.type === 'LaunchRequest';
},
handle(handlerInput) {
const speakOutput = ??? // Would like to return the launch phrase here, i.e. "open", "tell", "ask"
return handlerInput.responseBuilder
.speak(speakOutput)
.getResponse();
},
};