本文介绍了没有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 推荐答案 不,不是-并非完全如此。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: 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. https://developer.amazon.com/docs/smarthome/understand-the-smart-home-skill-api.html 这篇关于没有AWS的Alexa智能家居技能的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 09-26 01:26