首页 > 解决方案 > 在 alexa ask-sdk 中添加事件监听器

问题描述

我有 JAVA 中的基本 alexa 技能(使用 ask-sdk)一种情况是,在特定时间我希望 Alexa 说一些通知,比如在 2:00(这将由我的代码确定)alexa 应该说些什么

“它的 2.00”你必须去散步..

但我不确定要使用什么,我看到一些警报/主动事件,但无法为 JAVA 找到它们,只能在 nodeJs 中看到它们。

请问有什么可以在java中使用这种情况..

标签: alexaask-sdk

解决方案


The Proactive Events API is language agnostic, you can make calls to it in your Java code to trigger the notification that you want.

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


推荐阅读