【发布时间】:2019-01-16 05:09:42
【问题描述】:
the utterance
the slot being used
我的 lambda 函数的意图:
var phoneNumber;
"getPhoneNumberIntent": function() {
phoneNumber = this.event.request.intent.slots.phoneNumber.value;
if (getLength(phoneNumber) === 10) {
this.response.speak('I heard <say-as interpret-as="telephone"> ' + phoneNumber + '</say-as>. Is this the correct number?').listen();
this.emit(':responseReady');
} else {
console.log(phoneNumber);
this.response.speak('That is not a valid phone number. Please try again.').listen();
}
},
当我输入令人难以置信的特定话语时,输出 JSON 中唯一的内容是 null。在输入中,甚至没有调用正确的意图。我在网站上没有看到类似我的问题,我看了高低。感谢您提供任何帮助或反馈。
【问题讨论】:
-
插槽电话号码对应的意图名称是什么,并且是在您的代码库中被列为最后一个意图处理程序的后备意图处理程序。应该是因为它始终为真,因此您尝试命中的处理程序应在回退之前报告为真。
-
最后,在测试控制台中输入数字一、一、一、一、一、一、一、一、一、一不是 1111111111 它不会将整数解释为口语数字。跨度>
标签: node.js aws-lambda alexa alexa-skills-kit alexa-slot