如何在Alexa中设计手机卡 [英] how to design mobile card in alexa

查看:83
本文介绍了如何在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中设计手机卡的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆