| Package | Description |
|---|---|
| com.amazon.speech.json |
Contains classes used for converting requests and responses
to and from JSON.
|
| com.amazon.speech.speechlet |
Contains classes used to represent the key elements used for a speech-enabled
web service.
|
| com.amazon.speech.speechlet.interfaces.audioplayer |
Contains classes used by the
AudioPlayer interface. |
| com.amazon.speech.speechlet.interfaces.playbackcontroller |
Contains classes used by the
PlaybackController interface. |
| Modifier and Type | Method and Description |
|---|---|
SpeechletResponse |
SpeechletResponseEnvelope.getResponse()
Returns the
SpeechletV2 response. |
| Modifier and Type | Method and Description |
|---|---|
void |
SpeechletResponseEnvelope.setResponse(SpeechletResponse response)
Sets the
SpeechletV2 response. |
| Modifier and Type | Method and Description |
|---|---|
static SpeechletResponse |
SpeechletResponse.newAskResponse(OutputSpeech outputSpeech,
Reprompt reprompt)
Creates and returns a response intended to ask the user a question.
|
static SpeechletResponse |
SpeechletResponse.newAskResponse(OutputSpeech outputSpeech,
Reprompt reprompt,
Card card)
Creates and returns a response intended to ask the user a question, both in speech and with a
graphical card displayed in the companion app.
|
static SpeechletResponse |
SpeechletResponse.newTellResponse(OutputSpeech outputSpeech)
Creates and returns a response intended to tell the user something.
|
static SpeechletResponse |
SpeechletResponse.newTellResponse(OutputSpeech outputSpeech,
Card card)
Creates and returns a response intended to tell the user something, both in speech and with a
graphical card in the companion app.
|
SpeechletResponse |
Speechlet.onIntent(IntentRequest request,
Session session)
Entry point for handling speech initiated requests.
This is where the bulk of the Speechlet logic lives. |
SpeechletResponse |
SpeechletV2.onIntent(SpeechletRequestEnvelope<IntentRequest> requestEnvelope)
Entry point for handling speech initiated requests.
This is where the bulk of the SpeechletV2 logic lives. |
SpeechletResponse |
SpeechletToSpeechletV2Adapter.onIntent(SpeechletRequestEnvelope<IntentRequest> requestEnvelope) |
SpeechletResponse |
Speechlet.onLaunch(LaunchRequest request,
Session session)
Entry point for
Speechlets for handling a speech initiated request to start the skill
without providing an Intent.This method is only invoked when Session.isNew() is true. |
SpeechletResponse |
SpeechletV2.onLaunch(SpeechletRequestEnvelope<LaunchRequest> requestEnvelope)
Entry point for
SpeechletV2s for handling a speech initiated request to start the skill
without providing an Intent.This method is only invoked when Session.isNew() is true. |
SpeechletResponse |
SpeechletToSpeechletV2Adapter.onLaunch(SpeechletRequestEnvelope<LaunchRequest> requestEnvelope) |
| Modifier and Type | Method and Description |
|---|---|
SpeechletResponse |
AudioPlayer.onPlaybackFailed(SpeechletRequestEnvelope<PlaybackFailedRequest> requestEnvelope)
Entry point for handling an AudioPlayer failure event.
|
SpeechletResponse |
AudioPlayer.onPlaybackFinished(SpeechletRequestEnvelope<PlaybackFinishedRequest> requestEnvelope)
Entry point for handling an AudioPlayer playback finished event.
|
SpeechletResponse |
AudioPlayer.onPlaybackNearlyFinished(SpeechletRequestEnvelope<PlaybackNearlyFinishedRequest> requestEnvelope)
Entry point for handling an AudioPlayer playback nearly finished event.
|
SpeechletResponse |
AudioPlayer.onPlaybackStarted(SpeechletRequestEnvelope<PlaybackStartedRequest> requestEnvelope)
Entry point for handling an AudioPlayer playback started event.
|
SpeechletResponse |
AudioPlayer.onPlaybackStopped(SpeechletRequestEnvelope<PlaybackStoppedRequest> requestEnvelope)
Entry point for handling an AudioPlayer playback stopped event.
|
| Modifier and Type | Method and Description |
|---|---|
SpeechletResponse |
PlaybackController.onNextCommandIssued(SpeechletRequestEnvelope<NextCommandIssuedRequest> requestEnvelope)
Entry point for a user pressing the next button on a playback controller.
|
SpeechletResponse |
PlaybackController.onPauseCommandIssued(SpeechletRequestEnvelope<PauseCommandIssuedRequest> requestEnvelope)
Entry point for a user pressing the pause button on a playback controller.
|
SpeechletResponse |
PlaybackController.onPlayCommandIssued(SpeechletRequestEnvelope<PlayCommandIssuedRequest> requestEnvelope)
Entry point for a user pressing the play button on a playback controller.
|
SpeechletResponse |
PlaybackController.onPreviousCommandIssued(SpeechletRequestEnvelope<PreviousCommandIssuedRequest> requestEnvelope)
Entry point for a user pressing the previous button on a playback controller.
|
Copyright © 2016. All rights reserved.