【问题标题】:Trigger notification on specific Alexa device在特定 Alexa 设备上触发通知
【发布时间】:2020-05-26 07:42:25
【问题描述】:

我看到了一些类似问题的帖子,但它们都已经过时并且没有得到真正的回答。这个想法是在特定的 Alexa 设备上触发通知。例如,通过同一网络中的另一个 Alexa 或远程电话。在我弄脏手之前,这可能吗?

这是一个类似的问题Trigger Alexa speaking

【问题讨论】:

    标签: alexa alexa-skill


    【解决方案1】:

    我猜你正在寻找的是主动事件。

    您可以做的是在您的技能中使用这些 API,将您的 Alexa 技能通知客户发送到他们各自的 Alexa 设备。

    用于 ProactiveEventsAPI 的 Alexa 文档:

    https://developer.amazon.com/en-US/docs/alexa/smapi/proactive-events-api.html

    它们支持一组预定义的模板(模式),用于可以发送的不同类型的通知。这些都列在这里:

    https://developer.amazon.com/en-US/docs/alexa/smapi/schemas-for-proactive-events.html

    如果您没有找到适合您用例的方案,他们还会在同一架构列表页面中为您提供选项以向他们提交您的请求。

    Alexa 的开发者博客在同一博客上链接到使用 ProactiveEvents API 的演示技能的逐步构建说明:

    https://developer.amazon.com/blogs/alexa/post/bbf23596-766a-4e7c-8d74-cbfc234b6791/how-to-send-media-event-notifications-to-your-alexa-skill-customers

    我在网上找到的可能有用的其他资源:

    【讨论】:

      【解决方案2】:

      Proactive Events API 可以针对特定的 user_id(亚马逊帐户),但目前我还没有找到任何方法将其缩小到特定设备。

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2017-02-24
        • 2021-05-25
        • 2019-04-17
        • 1970-01-01
        • 1970-01-01
        • 2022-10-15
        相关资源
        最近更新 更多