【发布时间】:2019-05-30 17:38:24
【问题描述】:
我正在使用 Alexa Node SDK 构建我的应用程序,该应用程序托管在 AWS Lambda 上。在使用 Echo Show(或任何支持显示的设备)时,我希望屏幕在 Alexa 以音频响应时更新为全屏图像。
我可以使用“标准卡”来执行此操作,但图像非常小并且出现在语音文本的右侧。
有什么方法可以删除文字并全屏显示图像?
示例代码:
return handlerInput.responseBuilder
.speak('my text')
.withStandardCard('my title', 'my text', 'https://myimage-sm.jpg', 'https://myimage-lg.jpg')
.reprompt('my title', 'my text')
.addElicitSlotDirective('slotname')
.getResponse();
为了清楚起见,我也尝试使用addRenderTemplateDirective 添加模板,但这是throws an error, as Alexa allows only one directive per slot。
No other directives are allowed to be specified with a Dialog directive. The following Dialog Directives were returned: [Display.RenderTemplate]
【问题讨论】:
标签: node.js lambda alexa alexa-skill