Каковы все возможные значения свойства SupportInterfaces запроса Alexa - PullRequest
0 голосов
/ 22 октября 2018

Alexa документация описывает свойство supportedInterfaces по его запросу следующим образом:

enter image description here

Помимо AudioPlayerтам упоминалось, где можно увидеть полный список поддерживаемых интерфейсов, которые могут появиться в запросе?

В настоящее время при тестировании из Alexa Developer Console сборник supportInterfaces не заполняется.

enter image description here

Это нормальное поведение?Я думаю, что хотя бы AudioPlayer должен был быть заполнен, или нет?Как можно сделать его заселенным?

Ответы [ 2 ]

0 голосов
/ 19 июля 2019

Команда ASK-SDK поддерживает определения TypeScript для своей кодовой базы.Вы можете проверить, какие поддерживаемые интерфейсы возможны, зайдя в каталог node_modules и просмотрев ask-sdk-model/index.d.ts.

Начиная с v1.17.0 это:

/**
 * An object listing each interface that the device supports. For example, if supportedInterfaces includes AudioPlayer {}, then you know that the device supports streaming audio using the AudioPlayer interface.
 * @interface
 */
export interface SupportedInterfaces {
    'Alexa.Presentation.APL'?: interfaces.alexa.presentation.apl.AlexaPresentationAplInterface;
    'AudioPlayer'?: interfaces.audioplayer.AudioPlayerInterface;
    'Display'?: interfaces.display.DisplayInterface;
    'VideoApp'?: interfaces.videoapp.VideoAppInterface;
    'Geolocation'?: interfaces.geolocation.GeolocationInterface;
}
0 голосов
/ 17 июля 2019

Echo Show имеет следующие ключи:

"supportedInterfaces":{
    "Display":{},
    "AudioPlayer": {},             
    "VideoApp":{}
}

Источник: https://developer.amazon.com/blogs/alexa/post/12826e9e-e06a-4ab4-a583-8e074709a9f3/how-to-build-alexa-skills-for-echo-show1

Я заметил, что при использовании приложения вы также получаете этот:

"supportedInterfaces": {
    "Geolocation": []
}
...