HI,
When Alexa play the song he left the application
This is my code
Can you tell me what you want to achieve? You might need to modify the user flow to achieve what you need
So if I understand correctly,
The user says the title,
Alexa tells is starting to play the audio
play the audio
Application exit.
Is this what you need? then your code should be fine.
Are you sure the audio url is reachable?
Have you check that your audio is conform to alexa specs?
https://developer.amazon.com/docs/custom-skills/audioplayer-interface-reference.html
If you do not want the application to exit after the song is played then you should not end the session
and you should navigate to another state or intent or both after it
Yes it’s this, the song continue but he stop the application this is the request json :
https://code.empreintesduweb.com/13534.html
What do you mean with it stops the application? Does it start playing the audio but then the audio suddenly stops?
I can see in your request that it contains the AudioPlayer.PlaybackStarted
, so this should work.
Please keep in mind that the audio player interface always closes the session after starting the audio playback.
The audio continue this is good but close the application.
“Please keep in mind that the audio player interface always closes the session after starting the audio playback.”
Ok and how can I keep the session open ?
Because with google assistance I don’t have this problem
You can’t if you’re using the AudioPlayer Interface.
You could also play audio with SSML (this.$speech.addAudio('https://...')
) but it has lower audio quality.
I tested two application “skyrock” and “fun radio”.
When the song start the app no stop