首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >只有支持web浏览器的客户端才支持expected_inputs[0].input_prompt.rich_initial_prompt: MalformedResponse 'carousel_browse‘

只有支持web浏览器的客户端才支持expected_inputs[0].input_prompt.rich_initial_prompt: MalformedResponse 'carousel_browse‘
EN

Stack Overflow用户
提问于 2018-10-25 14:20:34
回答 1查看 357关注 0票数 0

我试图在智能显示器上运行BrowseCarousel,但是我得到了以下错误

只有支持web浏览器的客户端才支持expected_inputs.input_prompt.rich_initial_prompt: MalformedResponse 'carousel_browse‘。

我的设备是Google集线器,它支持网络浏览器,并且在我的手机上使用相同的代码

代码语言:javascript
复制
conv.ask(fakeColorCarousel());



const fakeColorCarousel = () => {
  const carousel = new BrowseCarousel({
   items: {
     'indigo taco': {
       title: 'Indigo Taco',
       synonyms: ['indigo', 'taco'],
       image: new Image({
         url: 'https://storage.googleapis.com/material-design/publish/material_v_12/assets/0BxFyKV4eeNjDN1JRbF9ZMHZsa1k/style-color-uiapplication-palette1.png',
         alt: 'Indigo Taco Color',
       }),
     },
     'pink unicorn': {
       title: 'Pink Unicorn',
       synonyms: ['pink', 'unicorn'],
       image: new Image({
         url: 'https://storage.googleapis.com/material-design/publish/material_v_12/assets/0BxFyKV4eeNjDbFVfTXpoaEE5Vzg/style-color-uiapplication-palette2.png',
         alt: 'Pink Unicorn Color',
       }),
     },
     'blue grey coffee': {
       title: 'Blue Grey Coffee',
       synonyms: ['blue', 'grey', 'coffee'],
       image: new Image({
         url: 'https://storage.googleapis.com/material-design/publish/material_v_12/assets/0BxFyKV4eeNjDZUdpeURtaTUwLUk/style-color-colorsystem-gray-secondary-161116.png',
         alt: 'Blue Grey Coffee Color',
       }),
     },
 }});
 return carousel;
};
EN

回答 1

Stack Overflow用户

发布于 2018-10-25 17:14:40

从技术上讲,智能显示器不支持谷歌的网页浏览功能。您应该检查设备上是否存在web浏览器,或者要求您的操作使用web浏览器。

const hasWebBrowser = conv.surface.capabilities.has('actions.capability.WEB_BROWSER');

阅读更多:表面能力指南

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/52991595

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档