I am using ralyxa to work with Alexa. I have an audio, and have something else to do when this audio finishes.
As usual, the alexa triggers PlaybackFinished
Intent. But this intent does not include any standard properties such as outputSpeech
, card
, or reprompt
(This is what documentation says). I cannot trigger an output speech.
Is there any way to trigger a custom Intent, something like the following, which calls CustomIntent
inside PlaybackFinished
Intent?
intent 'AudioPlayer.PlaybackFinished' do
speech = PODCAST_REPEAT_OPTION
CustomIntent
end
For a
AudioPlayer.PlaybackFinished
request you cannot send a response withoutputSpeech
orreprompt
AudioPlayer
directivesYour skill can only respond with a
Stop
orClearQueue
directive to stop or clear the current audio playback queue.However, before you get a
AudioPlayer.PlaybackFinished
, you will receive aAudioPlayer.PlaybackNearlyFinished
to which you can send aPlay
directive (or anyAudioPlayer
directive.) to continue streaming audio.Standard response properties such as
outputSpeech
,card
, andreprompt
withAudioPlayer
directives are possible when responding to aLaunchRequest
orIntentRequest
.