An interface which helps building a response.
Adds an AudioPlayer ClearQueue directive - clear the queue without stopping the currently playing stream, or clear the queue and stop any currently playing stream.
Describes the clear queue behavior. Accepted values: CLEAR_ENQUEUED: clears the queue and continues to play the currently playing stream CLEAR_ALL: clears the entire playback queue and stops the currently playing stream (if applicable).
Adds an AudioPlayer play directive
Describes playback behavior. Accepted values: REPLACE_ALL: Immediately begin playback of the specified stream, and replace current and enqueued streams. ENQUEUE: Add the specified stream to the end of the current queue. This does not impact the currently playing stream. REPLACE_ENQUEUED: Replace all streams in the queue. This does not impact the currently playing stream.
Identifies the location of audio content at a remote HTTPS location. The audio file must be hosted at an Internet-accessible HTTPS endpoint. HTTPS is required, and the domain hosting the files must present a valid, trusted SSL certificate. Self-signed certificates cannot be used. The supported formats for the audio file include AAC/MP4, MP3, HLS, PLS and M3U. Bitrates: 16kbps to 384 kbps.
A token that represents the audio stream. This token cannot exceed 1024 characters
The timestamp in the stream from which Alexa should begin playback. Set to 0 to start playing the stream from the beginning. Set to any other value to start playback from that associated point in the stream
A token that represents the expected previous stream. This property is required and allowed only when the playBehavior is ENQUEUE. This is used to prevent potential race conditions if requests to progress through a playlist and change tracks occur at the same time.
Metadata that can be displayed on screen enabled devices
Adds an AudioPlayer Stop directive - Stops the current audio Playback
Adds a Dialog confirmIntent directive to response
Adds a Dialog confirmSlot directive to response
Adds a Dialog delegate directive to response
Helper method for adding directives to responses
the directive send back to Alexa device
Adds a Dialog elicitSlot directive to response
Adds a hint directive - show a hint on the screen of the echo show
plain text to show on the hint
Adds a Display RenderTemplate Directive
Adds a VideoApp play directive to play a video
Identifies the location of video content at a remote HTTPS location. The video file must be hosted at an Internet-accessible HTTPS endpoint.
(optional) title that can be displayed on VideoApp.
(optional) subtitle that can be displayed on VideoApp.
Returns the response object
Has alexa listen for speech from the user. If the user doesn't respond within 8 seconds then has alexa reprompt with the provided reprompt speech
Has Alexa say the provided speech to the user
Helper method for adding Api response in the response
Renders an askForPermissionsConsent card
Adds canFulfillIntent to response.
Renders a link account card
Sets shouldEndSession value to null/false/true
Renders a simple card with the following title and content
Renders a standard card with the following title, content and image