如何在Alexa中设计手机卡

编程入门 行业动态 更新时间:2024-10-06 10:35:40
本文介绍了如何在Alexa中设计手机卡的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我已经开发了一个应用程序,并且可以正常运行,但是在设计时,尽管示例中执行了相同的代码,但我无法实现示例中给出的功能。我想实现此设计,图像位于中心,上面带有标题,下面是描述,但我得到的是此,侧面图片,侧面标题和说明向下。请让我知道如何实现。这是我的代码示例

I have developed an app and it is functioning properly, however when it comes to designing, i am unable to achieve what is given in the example despite of doing the same code in the example. I want to achieve this design where image is in the center with title above and description down but what I am getting is this, side image, side title and description down. Please let me know how to achieve that. Here is my sample of my code

"response" : { "outputSpeech" : { "type" : "SSML", "ssml" : "<speak>Hello,welcome!</speak>" }, "card": { "type": "Standard", "title": "My Title", "text": "My description", "image": { "smallImageUrl": "small image with the width 720 and height 480", "largeImageUrl": "large image with the width 1200 and height=800" } }, "reprompt": { "outputSpeech": { "type": "SSML", "ssml": "<speak>I am waiting for your command!!</speak>" } }, "shouldEndSession" : false }

推荐答案

亚马逊似乎已更改了标准卡的布局。图像现在缩小并推到左侧。卡上当前文档中显示的示例具有新的布局。您所指的博客文章已存在一年半了

It looks like Amazon has changed the Standard Card layout. Images are now shrinked and pushed to the left. The examples shown in current documentation on Cards have the new layout. The blog post you are referring is more than one and half years old

更多推荐

如何在Alexa中设计手机卡

本文发布于:2023-11-28 04:28:24,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1640962.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:手机卡   如何在   Alexa

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!