首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >实现Alexa.Speaker接口的智能家居设备不响应卷更改请求

实现Alexa.Speaker接口的智能家居设备不响应卷更改请求
EN

Stack Overflow用户
提问于 2017-07-19 06:34:14
回答 2查看 444关注 0票数 1

我的娱乐设备智能家居技术实现了API 3的一些功能,包括Alexa.Speaker接口

据我从文档中了解到,它应该响应诸如“Alexa,将设备的音量设置为5”之类的语音命令,但是Alexa总是以“对不起,我无法控制您设备上的音量”来响应。

该设备的发现响应如下

代码语言:javascript
复制
{
    endpointId: 'music1',
    friendlyName: 'pillow',
    description: 'Music on Kodi',
    manufacturerName: 'Cubox-i',
    displayCategories: [],
    capabilities: [
        {
            type: 'AlexaInterface',
            interface: 'Alexa.PowerController',
            version: '1.0',
            properties: {
                supported: [
                    {
                        name: 'powerState',
                    },
                ],
            },
        },
        {
            type: 'AlexaInterface',
            interface: 'Alexa.PlaybackController',
            version: '1.0',
            properties: {},
        },
        {
            type: 'AlexaInterface',
            interface: 'Alexa.Speaker',
            version: '1.0',
            properties: {
                supported: [
                    {
                        name: 'volume',
                    },
                    {
                        name: 'muted',
                    },
                ],
            },
        },
    ],
}

这一发现似乎运行良好,因为PowerController接口正在响应fine (例如:“亚历克莎,打开枕头”)。

我可以在AWS日志中看到发现、PowerControllerPlaybackController请求和响应。

任何对Speaker的语音命令(无论是试图将音量设置为20,将音量增加5,还是要求静音或静音枕头)都不会向我的Lambda发出任何请求,并导致上面提到的响应--或者在“枕头不支持这一点”的情况下静音。

EN

回答 2

Stack Overflow用户

发布于 2017-07-20 10:40:29

而不是

代码语言:javascript
复制
properties: {
            supported: [
                {
                    name: 'volume',
                },
                {
                    name: 'muted',
                },
            ],
        },

这个JSON,使用这个:

代码语言:javascript
复制
'properties.supported':[{
                    name: 'volume',
                },
                {
                    name: 'muted',
                }]

这是他们试图解决的一个错误,但在此之前,这将是可行的,请让我知道这个特定的解决方案是否适合你。

票数 2
EN

Stack Overflow用户

发布于 2017-11-06 05:10:56

除了“properties.supported”,版本应该是1 (而不是3)。扬声器接口发现响应应该如下所示:

代码语言:javascript
复制
{   
    "type": "AlexaInterface",
    "interface": "Alexa.Speaker",
    "version": "1.0",
    "properties.supported":[
    {
        "name": "muted",
    },
    {
        "name": "volume"
    }]
}
票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/45182599

复制
相关文章

相似问题

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