我的娱乐设备智能家居技术实现了API 3的一些功能,包括Alexa.Speaker接口。
据我从文档中了解到,它应该响应诸如“Alexa,将设备的音量设置为5”之类的语音命令,但是Alexa总是以“对不起,我无法控制您设备上的音量”来响应。
该设备的发现响应如下
{
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日志中看到发现、PowerController和PlaybackController请求和响应。
任何对Speaker的语音命令(无论是试图将音量设置为20,将音量增加5,还是要求静音或静音枕头)都不会向我的Lambda发出任何请求,并导致上面提到的响应--或者在“枕头不支持这一点”的情况下静音。
发布于 2017-07-20 10:40:29
而不是
properties: {
supported: [
{
name: 'volume',
},
{
name: 'muted',
},
],
},这个JSON,使用这个:
'properties.supported':[{
name: 'volume',
},
{
name: 'muted',
}]这是他们试图解决的一个错误,但在此之前,这将是可行的,请让我知道这个特定的解决方案是否适合你。
发布于 2017-11-06 05:10:56
除了“properties.supported”,版本应该是1 (而不是3)。扬声器接口发现响应应该如下所示:
{
"type": "AlexaInterface",
"interface": "Alexa.Speaker",
"version": "1.0",
"properties.supported":[
{
"name": "muted",
},
{
"name": "volume"
}]
}https://stackoverflow.com/questions/45182599
复制相似问题