question

Skillbuilder [GER] avatar image
Skillbuilder [GER] asked

AudioPlayer working in Amazon Music App but not on a physical echo device

Hey,

I'm sending this response from my own server:

{  
   "version":"1.0",
   "response":{  
      "directives":[  
         {  
            "type":"AudioPlayer.Play",
            "playBehavior":"REPLACE_ALL",
            "audioItem":{  
               "stream":{  
                  "token":"test",
                  "url":"https://url",
                  "offsetInMilliseconds":0
               }
            }
         }
      ],
      "shouldEndSession":true
   }
}

which works fine for external sources.

But if I use my own server for hosting mp3 sources (running on apache), it doesn't play. Oddly enough, it works in the "Amazon Music App on my iPhone.

Can you help me?

Best regards

alexa skills kitresponseaudioplayerskill builderskills
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.

Skillbuilder [GER] avatar image Skillbuilder [GER] commented ·

Found out the problem! It's because I authenticate via url like https://user:pass@www.domain.com/audio/file.mp3.. I'm afraid, because it works with audiofiles in an ssml tag. Is this a common problem?

Regards

0 Likes 0 ·

0 Answers