question

jwyatt avatar image
jwyatt asked ·

After video finishes, it takes 10-15 seconds before resuming to skill's next command

My approved skill has been working for 90 days. All of the sudden it is not working as design. When the video finishes it takes 10-15 seconds before resuming to skill's next command. example: Alexa, open Voice Capsule (account required to use) ... I want to talk to Jim Wyatt ... yes (play video) "Hi welcome to Voice Capsule" a video is played and at the end of the video, it appears to freeze. If you wait 10-15 seconds then it resumes as normal. This started ~ a week ago.

My code is based upon this example.

String videoURL = "https://s3.amazonaws.com/mkusters-images/guitar_video.mp4";
String videoTitle = "Sample Video Title";
String videosubTitle = "Sample Video SubTitle";
SpeechletResponse oSpeechletResponse = new ResponseBuilder()
.addVideoDirective(videoURL, videoTitle, videosubTitle)
.build();
oSpeechletResponse.setNullableShouldEndSession(null);
return oSpeechletResponse;

I am using library: alexa-skills-kit-1.8.1-javadoc.jar

Jim

apijavavideo skill apivideoapp
2 comments
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.

Clarification:

use case: Play video and wait for next utterance.
step 1 User: Open "Skill" and play video 1.
step 2 Skill: plays Video 1 and immediately respond to the next utterance.
step 3 User: Play the video $x.
step 4 Skill: plays Video $x and immediately respond to the next utterance.
Repeat step 3 & 4 until user says good-bye

This use case worked for 90 days (June 1st to 1st week of October).
now the behavior from the skill is...
Skill: plays Video and now there is a 10-15 second delay before responding to the next utterance.

Code has not changed.

0 Likes 0 ·

This is not just related to my skill, it is Alexa itself.
If you try "Alexa, play the ${x} video". after the video is played there is a 10-15 second delay

0 Likes 0 ·
Amazon_Bernardo Bezerra avatar image
Amazon_Bernardo Bezerra answered ·

Hello @jwyatt and thanks for your patience during our troubleshooting.

I have been informed that the fix has been deployed. Can you please test if you are still facing this issue?

Regards,
Barry

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.

Amazon_Bernardo Bezerra avatar image
Amazon_Bernardo Bezerra answered ·

Hi @jwyatt and thanks for your message.

Can you share your skill ID so I can take a better look?

Regards,
Barry

8 comments
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.

Skill Name:
Voice Capsule Skill ID: amzn1.ask.skill.577b022b-8576-442a-a12c-4c2d7ec89f34

0 Likes 0 ·

Hi @jwyatt and thank you for the additional information.

I have checked your interaction model and could not find which intent would trigger the playing of a video. Can you please share the steps needed to reproduce your issue?

Regards,
Barry

0 Likes 0 ·

How to reproduce the issue:

1. Set up an account with www.VoiceCapsule.com
2a. Add Voice Capsule skill to your Alexa device.
2b. Enable Voice Capsule skill and link your account.
3. Alexa open Voice Capsule
4. I want to talk to Jim Wyatt

0 Likes 0 ·

Hi @jwyatt and thank you for the additional information.

I can confirm that your skill seems to hang after playing the video, however, when asking Alexa to play videos, it does not hang.

From the code snippet you shared on your first post, it seems that you are using an older version of the Java SDK that is no longer supported. I recommend you take a look at this page that has some information on how to migrate from V1 to V2.

Regards,
Barry

0 Likes 0 ·
jwyatt avatar image jwyatt Amazon_Bernardo Bezerra ♦♦ ·

Thanks for the information.

I have been looking at V2 and the documentation shows it will produce the same response as V1 for video (unless i over looked something).

Why would V2 fix the 10-15 second delay?

In the mean time, I need to modify my code to implement RequestHandler(s). Grrrrr

0 Likes 0 ·
Show more comments
Amazon_Bernardo Bezerra avatar image
Amazon_Bernardo Bezerra answered ·

Hi @jwyatt,

Just to give a quick update on this issue, the bug responsible for this behaviour has been identified and a fix is being worked on.

Regards,
Barry

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.

jwyatt avatar image
jwyatt answered ·

Thank you. I tested and it is now working.

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.