在Echo上测试时,无法识别Alexa Skill [英] Alexa Skill not recognized when tested on Echo

查看:149
本文介绍了在Echo上测试时,无法识别Alexa Skill的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做其中一个教程(HelloWorld)以使Echo熟练使用,然后按照说明进行操作。当我使用Service Simulator测试该技能时,我输入了

I was doing one of the tutorials (HelloWorld) to make a skill for the Echo and I followed the directions. When I tested the skill using the Service Simulator, I typed in

Alexa, tell Greeter to say hello

,并返回以下JSON响应:

and that returned the following JSON response:

{
  "version": "1.0",
  "response": {
    "outputSpeech": {
      "type": "PlainText",
      "text": "Hello World!"
},
"card": {
  "content": "Hello World!",
  "title": "Greeter",
  "type": "Simple"
},
"shouldEndSession": true
  },
  "sessionAttributes": {}
}

我认为这是正确的输出。但是,当我尝试在Echo上测试该技能时,Alexa回答对不起,我不是您的问题。我回顾了历史,Alexa将命令解释为 alexa告诉问候者打招呼。看来Alexa不能识别该技能?

I think that is the correct output. However, when I tried testing the skill on my Echo, Alexa replies "Sorry, I didn't your question." I went on the history and Alexa interpreted my command as "alexa tell greeter to say hello." It seems that Alexa is not recognizing the skill?

我正在使用Amazon Lambda执行代码,因此我检查了日志,并在上面说出命令时未执行代码。

I am using Amazon Lambda to execute the code, so I checked the logs and the code was not executed when I spoke the command to above.

我将javascript文件中的app_id替换为与我的技能相对应的app_id。我还把亚马逊技能套件作为触发器。

I replaced the app_id in the javascript file to the one that corresponds to my skill. I have also put the amazon skills kit as a trigger.

我还尝试了其他教程(ChemistryFlashCards和HistoryBuff),Alexa回答我不确定您的意思。

I also tried the other tutorials (ChemistryFlashCards and HistoryBuff), and Alexa replies "I'm not sure what you meant by that."

不知道发生了什么!

推荐答案

为您的Echo / Dot / Tap设备正确调用您的自定义技能,即您的语言交互模型需要匹配您的lambda资源所在的区域。我遇到了这个问题,因为我在EU-West1(爱尔兰)部署了lambda,但是交互模型的默认语言是英语(美国)。在交互模型中,我添加了一种新的英语(英国)语言并复制了我的意图和话语,然后删除了美国英语,现在我的Echo Dot可以正确地调用我的自定义技能意图了。

For your Echo / Dot / Tap device to correctly invoke your custom skill, the Language of your Interaction Model needs to match the region your lambda resource is deployed in. I had this issue, as I deployed lambda in EU-West1 (Ireland) but the default alnguage for the Interaction model is English (US). In the interaction model I added a new language of English (UK) and copied over my intents and utterances, then deleted the English US language, and my Echo Dot now correctly invoked my custom skill intents

这篇关于在Echo上测试时,无法识别Alexa Skill的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆