jatin69 / vitamin-guide-amazon-alexa-skill

Vitamin Guide - Amazon Alexa multimodal skill with APL
MIT License
4 stars 0 forks source link

why not for standard eco without screen #1

Open gabbiano69 opened 5 years ago

gabbiano69 commented 5 years ago

it will be fantastic make avaible also for eco dot with audio? can you modify it? because i try it and this is the result Invalid Directive vitamin guide Request Identifier: null

The device does not support Alexa.Presentation.APL directives

Feedback vocale

jatin69 commented 5 years ago

Yes, I didn't realize it fails on echo dot. I'll fix it in a few days. btw this skill is my entry for alexa multi modal challenge. check it out here.

Thanks for the review. Appreciate it.

gabbiano69 commented 5 years ago

any news???

jatin69 commented 5 years ago

@gabbiano69 The skill has been fixed and is under review.

gabbiano69 commented 5 years ago

great, may i know wich files have you changed and what exactly do you add for code? if is possible? anyway thanks for yours answear

jatin69 commented 5 years ago

This function is the main addition. Simply search for its occurrences to know all the changes.

gabbiano69 commented 5 years ago

great! may i suggest a standard card for device audio only? when the device is just audio device , when is open the skill send standard card. if yiu make this the skill is perfect...

jatin69 commented 5 years ago

But why? The audio device can't really utilize the standard card. What's the benefit of sending?

gabbiano69 commented 5 years ago

non for device but for app, companion alexa app on the smartphone, the standard card can help and guide the users or just to send some message for example yours website

gabbiano69 commented 5 years ago

any news?

gabbiano69 commented 5 years ago

?

gabbiano69 commented 5 years ago

hi jatin can you help me? i know that you are busy but for you is a work of two minutes,

i have a an alexa skill ( skill-sample-nodejs-audio-player/multiple-streams/

and i tryed to add it apl language

i did welcomeView.json from the support of alexa developper console (design) and i add the render in lanchrequest in index.js

but this not work

if you see this 2 file (attached) you can see and adjust it for me? pleaseeeee i rename index in json to send by mail but is index.js

i'm waiting your answear it's important for me

i have a problem with a skill Cordiali saluti, Best regard, Francesco Greco

Il giorno gio 21 feb 2019 alle ore 17:52 Jatin notifications@github.com ha scritto:

But why? The audio device can't really utilize the standard card. What's the benefit of sending?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jatin69/vitamin-guide-amazon-alexa-skill/issues/1#issuecomment-466076111, or mute the thread https://github.com/notifications/unsubscribe-auth/ANriHeIJJP59zHWwUz3H_dAlPqnTvHh2ks5vPs60gaJpZM4agI6U .

jatin69 commented 5 years ago

Hey @gabbiano69 I did not receive any email yet. If you attached files to any github issued email, I am not sure it'll reach me. Also, i am afraid i cannot take one on one queries right now, or look at files. If you'd describe the problem verbally, i'll try to do my best. Regards

gabbiano69 commented 5 years ago

this is the code i add apl in launchrequest, but not work when i test it in developer console

maybe i can't use apl e standard card togheter?

/ eslint-disable func-names / / eslint-disable no-console / / eslint-disable no-restricted-syntax / / eslint-disable consistent-return /

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(); }, };

thanks?

Il giorno mar 2 lug 2019 alle ore 14:07 Jatin notifications@github.com ha scritto:

Hey @gabbiano69 https://github.com/gabbiano69 I did not receive any email yet. If you attached files to any github issued email, I am not sure it'll reach me. Also, i am afraid i cannot take one on one queries right now, or look at files. If you'd describe the problem verbally, i'll try to do my best. Regards

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/jatin69/vitamin-guide-amazon-alexa-skill/issues/1?email_source=notifications&email_token=ADNOEHOVICQLRGOLNHG3EYLP5NAHRA5CNFSM4GUAR2KKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZBBQTQ#issuecomment-507648078, or mute the thread https://github.com/notifications/unsubscribe-auth/ADNOEHJ6R2HXNUV3L5UTRRDP5NAHRANCNFSM4GUAR2KA .

gabbiano69 commented 5 years ago

?