i have a an alexa skill that is online built with the repository "skill-sample-nodejs-audio-player/*multiple-streams*/"
and i tryed to added it the APL language.
i added APL support from alexa developper console (interface) i made a new file in lambda welcomeView.json with apl support (the file is ok),
and i added the render directive in lanchrequest in index.js but this not work.
can you see down.
But not work i see undefined in test
const alexa = require('ask-sdk'); const constants = require('./constants'); const welcomeView = require("./welcomeView.json"); const card = { title: 'Pillole di Coaching', text: 'di: Massimo Binelli.\n \n www.massimobinelli.it\n \n \ www.atletavincente.com\n \ninfo@massimobinelli.it', cardcontent: ' https://www.artigianiinfiera.it/wp-content/uploads/oroscopo/pillole-di-coaching/immagini/logo.png ', image: { largeImageUrl: ' https://www.artigianiinfiera.it/wp-content/uploads/oroscopo/pillole-di-coaching/immagini/logo.png ', smallImageUrl: ' https://www.artigianiinfiera.it/wp-content/uploads/oroscopo/pillole-di-coaching/immagini/logo.png ' } }; /* INTENT HANDLERS */ const LaunchRequestHandler = { canHandle(handlerInput) { return handlerInput.requestEnvelope.request.type === 'LaunchRequest'; }, async handle(handlerInput) { const playbackInfo = await getPlaybackInfo(handlerInput); let message; let reprompt; if (!playbackInfo.hasPreviousPlaybackSession) { message = 'Benvenuti in pillole di coaching a cura di Massimo Binelli. Puoi chiedere, inizia, per far partire lultimo episodio del podcast.'; reprompt = 'Puoi dire:, inizia, per iniziare.'; } else { playbackInfo.inPlaybackSession = false; message = `Stavi ascoltando ${constants.audioData[playbackInfo.playOrder[playbackInfo.index]].title}.Vorresti riprendere da dove avevi interrotto?`; reprompt = 'Puoi dire si per riprendere da dove avevi lasciato o no per ricominciare dallultimo episodio'; } return handlerInput.responseBuilder .speak(message) .reprompt(reprompt) .withStandardCard(card.title, card.text, card.cardcontent, card.smallImageUrl, card.largeImageUrl) .addDirective({ type: 'Alexa.Presentation.APL.RenderDocument', version: '1.0', document: welcomeView.document, datasources: welcomeView.dataSources }) .getResponse(); }, };
can anyone help me please
here there are the two file.