question

heber avatar image
heber asked

response said "I don't know what to resume"

when i said "stop play", It was successfully stopped. but when i said resume, response said "I don't know what to resume" ===> why?

alexa voice serviceaudioresponse
10 |5000

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

Steve avatar image
Steve answered

Is the AudioPlayer interface that you've implemented handling both Stop and ClearQueue directives?

https://developer.amazon.com/public/solutions/alexa/alexa-voice-service/reference/audioplayer

It seems like you may be clearing the queue unintentionally. Could you share the x-amzn-requestid for the Stop directive you receive?

3 comments
10 |5000

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

I have implemented both of that, and I did not find the x-amzn-requestid for the Stop directive that receive, I've been stuck on this question for several days. Why i did not see the x-amzn-requestid?

and there is another detail for this, that is, if I ask other questions when playing music, then I can not stop playing... response said "I can change the playback when the mode is play".

0 Likes 0 ·

Hi @heber, Can you try again by asking alexa to play something and then stop to get the requestId. If you are unabel to find x-amzn-requestid for stop directive can you please share the request id for the play directive?

0 Likes 0 ·

For clarification, the x-amzn-requestid is an HTTP header. It should be on the HTTP response, not a particular directive.

0 Likes 0 ·
HiDeveloper avatar image
HiDeveloper answered

Hello. We are facing same issue.

When we recieve stop directive, we send playbackstopped event.

Then we tell "resume", Alexa always returns "I don't know what to resume"

Could you tell me where can be error

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.

Would you mind posting the "x-amzn-requestid" for some of your failed requests? It is an HTTP header included on all responses from AVS. The Java Sample app logs them by default here: https://github.com/alexa/alexa-avs-sample-app/blob/master/samples/javaclient/src/main/java/com/amazon/alexa/avs/http/AVSClient.java#L294

0 Likes 0 ·
HiDeveloper avatar image
HiDeveloper answered

Hi, Sebastian,

First case:

for stop directive, I receive:

x-amzn-requestid 1256b2fffe74d0bc-000033bb-00003e9c-b14a6a4918b1bd67-d0936dcf-3

after that I tell "Resume" and Alexa returns "Sorry I dont know what was playing" , the ID:

x-amzn-requestid 0ad043fffe9a1d10-00003a45-00003e93-5f7628e74eee9e22-a699471e-3

Second case:

for stop directive, I receive:

06a768fffe01e940-000002c3-00003ec6-83017760994280e8-5bee7e67-3

after that I tell "Resume" and Alexa returns "Sorry I don't know what to resume" , the ID:

068284fffe868be0-00005577-000040e9-329ab48fc1436545-921d9f1a-3

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.

Hi, it looks like your device is closing the connection repeatedly with AlexaService. In fact, between the first two requestIds you posted it appears the connection gets closed.

Would you mind verifying that your device is adhering to the HTTP/2 connection guidelines here? https://developer.amazon.com/public/solutions/alexa/alexa-voice-service/docs/managing-an-http-2-connection

Particularly step #2 under "Creating an HTTP/2 Connection" - Note: Each event and it’s associated response are sent on a single event stream. When the response is received the stream should be closed.

Each event should be sent up on its own event stream, but the same HTTP/2 connection should remain.

Another few things to check:

0 Likes 0 ·