| 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. |
| com.amazon.speech.speechlet.interfaces.system |
Contains classes used by the
System interface. |
| com.amazon.speech.speechlet.verifier |
Contains classes used for verifying requests sent to your service.
|
| Modifier and Type | Method and Description |
|---|---|
SpeechletRequestEnvelope<T> |
SpeechletRequestEnvelope.Builder.build() |
static SpeechletRequestEnvelope<?> |
SpeechletRequestEnvelope.fromJson(byte[] json)
Read a
SpeechletRequestEnvelope from a byte array. |
static SpeechletRequestEnvelope<?> |
SpeechletRequestEnvelope.fromJson(InputStream in)
Read a
SpeechletRequestEnvelope from an InputStream. |
static SpeechletRequestEnvelope<?> |
SpeechletRequestEnvelope.fromJson(String json)
Read a
SpeechletRequestEnvelope from a String. |
| Modifier and Type | Method and Description |
|---|---|
SpeechletResponseEnvelope |
SpeechletRequestDispatcher.dispatchSpeechletCall(SpeechletRequestEnvelope<?> requestEnvelope,
Session session)
Processes the provided
SpeechletRequestEnvelope and generates an appropriate response
after dispatching the appropriate method calls on the SpeechletV2 provided at
construction time. |
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 |
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) |
void |
SpeechletV2.onSessionEnded(SpeechletRequestEnvelope<SessionEndedRequest> requestEnvelope)
Callback used to notify that the session ended as a result of the user interacting, or not
interacting with the device.
|
void |
SpeechletToSpeechletV2Adapter.onSessionEnded(SpeechletRequestEnvelope<SessionEndedRequest> requestEnvelope) |
void |
SpeechletV2.onSessionStarted(SpeechletRequestEnvelope<SessionStartedRequest> requestEnvelope)
Used to notify that a new session started as a result of a user interacting with the device.
|
void |
SpeechletToSpeechletV2Adapter.onSessionStarted(SpeechletRequestEnvelope<SessionStartedRequest> 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.
|
| Modifier and Type | Method and Description |
|---|---|
void |
System.onExceptionEncountered(SpeechletRequestEnvelope<ExceptionEncounteredRequest> requestEnvelope)
Entry point for a runtime exception occurring on the device.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
ApplicationIdSpeechletRequestEnvelopeVerifier.verify(SpeechletRequestEnvelope<?> requestEnvelope)
Returns true if the provided
applicationId is supported by this verifier. |
boolean |
SpeechletRequestVerifierWrapper.verify(SpeechletRequestEnvelope<?> speechletRequestEnvelope) |
boolean |
SpeechletRequestEnvelopeVerifier.verify(SpeechletRequestEnvelope<?> speechletRequestEnvelope)
Verifies a
SpeechletRequest within the context of the Session in which it was
received. |
Copyright © 2016. All rights reserved.