question

Vladimir Mavs avatar image
Vladimir Mavs asked ·

How can I play mp3 file in loop like noise?

I'd like to find solution to play one mp3 file in loop without any breaks.

The first way is using Alexa's SSML, how I understand I can't do that for my aims.

The second is using Player directives 'PlaybackNearlyFinished'. However in this approach, I see 3-7 seconds break between uploading the mp3.

I thought, that I can use InputStream for this purpose, but I didn't find any possibilities for that.

If you can suggest any approaches, it will be great.

Is it possible to do this? Will I listen pauses between loops anyway?

Thanks in advance,

Vladimir

alexa skills kitaudioaudioplayerssml
10 |2000 characters needed characters left characters exceeded

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

1 Answer

Brian@Amazon avatar image
Brian@Amazon answered ·

Hi Vladimir. Using PlaybackNearlyFinished is your best bet. You might get a little bit of buffering based on network speed and file size, but it's the best way to implement this looping behavior.

1 comment
10 |2000 characters needed characters left characters exceeded

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

Thanks a lot for answer!

0 Likes 0 ·