我正在使用Alexa Node SDK构建我的应用程序,它托管在AWS Lambda上。当使用Echo Show (或任何支持显示的设备)时,我希望当Alexa以音频响应时,屏幕可以更新为全屏图像。
我可以使用"Standard Card“来做到这一点--但是图像非常小,并且显示在口语文本的右侧。
有没有办法删除文本并全屏显示图像?
示例代码:
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]
https://stackoverflow.com/questions/56383065
复制相似问题