没有AWS的Alexa智能家居技能 [英] Alexa Smarthome-Skill without AWS

查看:90
本文介绍了没有AWS的Alexa智能家居技能的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有点困惑atm。

是否可以构建Alexa Smarthome技能而无需将其托管在AWS上。

Is it possible to build a Alexa Smarthome Skill without hosting it on AWS.

对于我的最后一个自定义技能,我使用了 Alexa-App ,但这没有。据我所知,它不支持Amazon的Smarthome-API。另外,我没有找到任何支持Smarthome-API的库。

For my last custom skill I used Alexa-App but this doesn't support the Smarthome-API from Amazon, as far as I know. Also I did not found any library that does support the Smarthome-API.

也许您可以帮助我找到一个lib,以便在我的主机上托管我的Smart home-Skill

Maybe you can Help me find a lib, so I can host my Smart home-Skill on my own Server.

Pref语言: JavaScript Ruby

推荐答案


是否可以构建Alexa智能家居技能而无需将其托管在AWS上。

不,不是-并非完全如此。

No, it is not -- not entirely, anyway.

Alexa支持托管 custom 完全是外部技能。他们称此为将技能作为Web服务的宿主,即Alexa可以向其发送请求的可访问Web的端点。但是:

Alexa supports hosting custom skills entirely externally. They call this "hosting a skill as a web service" -- that is, a web-accessible endpoint that Alexa can send requests to. However:


Web服务只能用于自定义技能。

Web services can only be used for custom skills.

< a href = https://developer.amazon.com/docs/custom-skills/host-a-custom-skill-as-a-web-service.html rel = nofollow noreferrer> https:// developer .amazon.com / docs / custom-skills / host-a-custom-skill-as-a-web-service.html

智能家居技能必须在Lambda中运行。当然,智能家居技能的Lambda函数可以向设备云发出自己的外部请求-对您意味着什么,可能涉及您自己的服务器-但这可以使用HTTPS请求或使用Alexa调用的Lambda函数内部使用您可能会使用的任何其他自定义协议的请求。

Smart Home Skills must be run in Lambda. Of course, the Lambda function for a Smart Home Skill can make is own external requests to the "device cloud" -- whatever that means to you, and which may involve servers of your own -- but this is done using either HTTPS request or requests using any other custom protocol you might use, either way, from inside the Lambda function that Alexa invokes.


您的技能代码作为Lambda函数托管的会接收并解析指令,以验证身份验证信息。 您的技能可以使用您定义的沟通渠道与您的系统或设备云进行沟通,从而打开客户的厨房灯。 (添加了重点)

Your skill code, which is hosted as a Lambda function receives and parses the directive, validating the authentication information. Your skill communicates with your systems, or device cloud, using communication channels you've defined to turn on the customer’s kitchen light. (emphasis added)

https://developer.amazon.com/docs/smarthome/understand-the-smart-home-skill-api.html

这篇关于没有AWS的Alexa智能家居技能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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