question

newuser-11e7a3ff-e56b-43ab-929e-8c0515b658a9 avatar image
newuser-11e7a3ff-e56b-43ab-929e-8c0515b658a9 asked ·

play mp3 file from REST api

Hello,

I have a REST request (GET method) that calling it, return an mp3 file (download automatically on your device). How can I play this mp3 in Alexa skill?

If I put the link directly in <audio src="URL"> gives me error.

Any help will be appreciated.

ssmlalexa skill kit
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

Alexander Martin avatar image
Alexander Martin answered ·

Hi,

I guess the API ships the mp3 with the content type application/octet-stream. If you have access to the API I would use audio/mp3 or audio/mpeg as content-type and see if the problem still occurs.

Regards,

Alex

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.