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

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

问题描述

我正在做一个教程 (HelloWorld) 来为 Echo 制作一项技能,我按照说明进行操作.当我使用服务模拟器测试技能时,我输入了

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 替换为与我的技能相对应的那个.我也把亚马逊技能包作为触发器.

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."

不知道发生了什么!任何指导表示赞赏!

Not sure what is happening! Any guidance is appreciated!!

推荐答案

为了让您的 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天全站免登陆