question

Marius Narkus avatar image
Marius Narkus asked

Audioplayer play not working

I am trying to implement audioplayer capabilities to my skill

I am not able to play a soundfile with the audioplayer play directive.

Because it did not work, I triied to debug with Manual JSON. I tried an example from the ASK Documentation:

{
    "version": "1.0",
    "sessionAttributes": {},
    "response": {
        "outputSpeech": {},
        "card": {},
        "reprompt": {},
        "shouldEndSession": true,
        "directives": [
            {
                "type": "AudioPlayer.Play",
                "playBehavior": "ENQUEUE",
                "audioItem": {
                    "stream": {
                        "url": "https://tradeofwar.de/vogel/1titel.mp3",
                        "token": "1234AAAABBBBCCCCCDDDDEEEEEFFFF",
                        "expectedPreviousToken": "9876ZZZZZZZYYYYYYYYYXXXXXXXXXXX",
                        "offsetInMilliseconds": 0
                    },
                    "metadata": {
                        "title": "This is just a test",
                        "subtitle": "testing"
                    }
                }
            }
        ]
    }
}


Result:

Error submitting Manual JSON

An unknown error has occurred. Please try later.


Thursday, February 7, 2019, 9:27 AM


What am I doing wrong? Please help!


cheers

Marius


P.S: instead fof ENQUEUE I also tried REPLACE_ALL

audioplayer
10 |5000

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

newuser-dc31d9d1-5ad2-41a3-809a-0fdfb258e626 avatar image
newuser-dc31d9d1-5ad2-41a3-809a-0fdfb258e626 answered

There seems to be no way to get a straight answer on this forum regarding the audio player so good luck. I've posted my issue on GitHub, here and also submitted a support ticket none of which resulted in an answer. I did get a response from the support ticket requesting more info which I provided days ago and since then - NOTHING!!!

10 |5000

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

Amazon_Bernardo Bezerra avatar image
Amazon_Bernardo Bezerra answered

Hello @narkuma and thank you for your message.

I am sorry it took a while to reply to your post.

Are you still facing this issue? Can you please share your skill ID so I can take a look?

Regards,
Barry

10 |5000

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