question

Vishal avatar image
Vishal asked

Next Intent doesn't support in Echo Show

Hello,

While playing a video on Echo Show, "Next" command doesn't go to my nextIntent. Instead, "Skip" commands proceed to the nextIntent(which is perfect in my case) which work perfectly. Is there I am missing to work with "Next" command.


public static Optional<com.amazon.ask.model.Response> playVideo(String url, String speechText, String deviceId,Long offSet,String programId,List<String> programidlist) {
        SimpleCard card = createCard(speechText);
        
        // Create the ssml output
        OutputSpeech outputSpeech = SsmlOutputSpeech.builder()
                .withSsml("<speak> <p> <s> " + speechText.replace("!", " ") + "</s> </p> </speak>").build();
        
        System.out.println("URL ========   "+url);
        System.out.println("offSet ========   "+offSet);
        if(offSet == 0) {
            DeviceProgram device = new DeviceProgram();
            device.setDeviceId(deviceId);
            device.setProgramId(programId);
            device.setProgramIdList(programidlist);
            device.setStatus(true);
            device.setDeactiveStatus(false);
            device.setUrl(url);
            System.out.println("Device Object ==========   " + new Gson().toJson(device));

            try {
                httpRequestDeviceInseart(device);
            } catch (IOException e) {

                System.out.println(e.getStackTrace());
            } catch (ParseException e) {

                System.out.println(e.getStackTrace());
            }
        }else {
            //Device is already inserted
        }

        VideoItem videoItem = VideoItem.builder().withSource(url).build();
        LaunchDirective videoDirective = LaunchDirective.builder().withVideoItem(videoItem).build();
        
        // Add the library to the list
        List<Directive> dirList = new ArrayList<Directive>();

        dirList.add(videoDirective);
        
        return Optional.of(com.amazon.ask.model.Response.builder().withOutputSpeech(outputSpeech).withCard(card).withReprompt(BaseMethods.createRepromp(outputSpeech)).withDirectives(dirList).build());

    }


Detail Description:

My skill have a some programs which have a mp4 video being played and then there are some questions to be attended by users.


Issue:

When the video is being played, saying "Alexa, Skip" goes to the question.But when saying "Alexa, Next" skips the question.

alexa skills kitecho showvideo skill apivideoapp
10 |5000

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

1 Answer

sungyoo avatar image
sungyoo answered

Have you extended or added any utterance to NextIntent in interaction model?


NextIntent's default utterances include:

  • next
  • skip
  • skip forward


https://developer.amazon.com/docs/custom-skills/standard-built-in-intents.html#available-standard-built-in-intents

10 |5000

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