Amazon Developer

as

Settings
Sign out
Notifications
Alexa
Amazon Appstore
Ring
AWS
Documentation
Support
Contact Us
My Cases
Get started
Connect with Matter
Alexa Connect Kit
Add-ons
Certify
Resources
Skip to main content
Implement the Alexa.KeypadController interface in your Alexa skill so that users can voice-control onscreen navigation. You can voice-enable scrolling, directional pad (d-pad), selection of onscreen elements, and showing more details for elements that have focus. You can enable voice navigation on your smart TV home screens, for live TV providers, or for streaming apps. For details about video skills, see Understand the Video Skill API. For the list of languages that the Alexa.KeypadController interface supports, see List of Alexa Interfaces and Supported Languages. For the definitions of the message properties, see Alexa Interface Message and Property Reference.

Utterances

The Alexa.KeypadController interface uses the pre-built voice interaction model. After the customer says one of the following utterances, Alexa sends a corresponding directive to your skill. The following examples show some customer utterances:










Scenarios

Consider the following scenarios where you might use Alexa.KeypadController.

Voice-enable your home screen

If you’re a manufacturer of a smart TV, you can use Alexa.KeypadController to voice-enable the home screen. When the user views the list of apps that the TV supports, the user can use their voice to scroll right, left, up, or down, and to select the app of their choice. This scenario also uses the Alexa.PowerController and Alexa.Launcher interfaces. The following is an example of user utterances for this scenario:


Voice-enable your channel guide

If you’re a live TV provider, you can use Alexa.KeypadController to voice-enable the channel guide. The user can use their voice to scroll up, down, right, or left through the guide, and to select a program. This scenario also uses the Alexa.PowerController and Alexa.Launcher interfaces. The following is an example of user utterances for this scenario:




Voice-enable your app

If you’re an app developer, you might use Alexa.KeypadController to voice-enable your app to let the user use their voice to scroll up, down, right, or left. The user can use voice to see more information about an onscreen element by opening the details page, and to navigate back to the previous screen. This scenario also uses the Alexa.Launcher interface and the Alexa.RemoteVideoPlayer interface to display comedies. The following is an example of user utterances for this scenario:




Reportable properties

The Alexa.KeypadController interface uses the keystroke property as the primary property. You identify that you support the properties in your discovery response. The following table shows the valid values for the keystroke property.
Keystroke typeKeystroke valuesDescription
Directional pad
(d-pad)
UP, DOWN, LEFT, RIGHT, SELECTMove up, down, left, or right one unit or to the next onscreen element, or select the element or item that has focus.
ScrollingPAGE_UP, PAGE_DOWN, PAGE_LEFT, PAGE_RIGHTScroll in the specified direction.
InformationINFO, MOREDisplay more information about the onscreen element that has focus. For example, show content that’s offscreen, or jump to a detail page.
Back buttonBACKSimulate the behavior of the back button on the remote control. For example, navigate back to the previous screen.

Discovery

You describe endpoints that support Alexa.KeypadController by using the standard discovery mechanism described in Alexa.Discovery. For the KeypadController interface, include a keys attribute and list the keystrokes that you support.

Discover response example

The following example shows a Discover.Response message for a device that supports the Alexa.KeypadController.

Directives

Alexa sends the following Alexa.KeypadController interface directives to your skill.

SendKeystroke directive

Support the SendKeystroke directive so that customers can scroll your content.

SendKeystroke directive example

The following example shows a SendKeystroke directive that Alexa sends to your skill.

SendKeystroke directive payload

The following table shows the payload details for the SendKeystroke directive.
PropertyDescriptionType
keystrokeKeystroke requested by the user.
For valid values, see keystroke.
String

SendKeystroke response

If you handle a SendKeystroke directive successfully, respond with an Alexa.Response event. You can respond synchronously or asynchronously. If you respond asynchronously, include a correlation token and a scope with an authorization token. The following example shows a SendKeystroke response.

SendKeystroke directive error handling

If you can’t handle a SendKeystroke directive successfully and the error is specific to video, respond with an Alexa.Video.ErrorResponse event. For general errors, respond with a generic Alexa.ErrorResponse event. If the user requests a keystroke that your device doesn’t support, use the INVALID_VALUE error type.
Last modified on May 1, 2024