Is there an elegant way to add a delay between audio files when using the Alexa AudioPlayer? I have a skill where the audio files are currently playing back-to-back with no real separation between them. I tried passing a .tell with an SSML delay (<break time="2s"/>
) to this.$audioSkill.$audioPlayer
, but that only seems to work with the PlayIntent
and not when I ENQUEUE the next clip in the PlaybackNearlyFinished
Intent. If I put one there, the skill simply stops without advancing to the next clip.
Unfortunately, I cannot change the audio files, because they are also used by a mobile app that we’ve developed. I was thinking of creating an audio file that contains a second or two of silence that I ENQUEUE between each clip, but that complicates the logic a bit (e.g. Next and Previous intents must now account for the blank clip). It also seems like a hack and not really what I’m looking for. However, maybe that’s my only option…
Any thoughts?