question

MMoS avatar image
MMoS asked

Alexa ASK audioplayer, APL with SSML or APL for Audio

There are 3 ways to mp3 URL in skills, ASK audioplayer, APL with SSML or APL for Audio. What are the differences? For playing an mp3 from a URL should I use audioplayer vs APL?

alexa skills kitaplaudioplayer
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Andy Whitworth avatar image
Andy Whitworth answered

Audioplayer is intended for skills where the main purpose is to play audio. The AudioPlayer will operate outside of a skill session and send event messages to your skill code as the audio play progresses. Your opportunity for user interaction is limited when using audioplayer.

If you want a skill to have a more detailed user interaction but use audio for effects etc then use SSML or APLA. Your skill will retain control of the session using these (unlike audioplayer). APLA allows you to mix/sequence audio and speech + apply filters, this is it's advantage over SSML.

AudioPlayer allows very long MP3 tracks to be played whereas SSML and APLA have limited (240s I believe). So bear that in mind too.

1 comment
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

MMoS avatar image MMoS commented ·

This is a perfect summary @AndyW! Thank You!



1 Like 1 ·