alexa-skill

SSL exception: “received close_notify during handshake” upon initializing Alexa Skill Management API (SMAPI)

丶灬走出姿态 提交于 2019-12-24 19:50:21
问题 I am trying to use SMAPI to interact with my Alexa Skill using Java. The following code fails: package io.mirko.impl; import com.amazon.ask.model.services.skillManagement.SkillManagementService; import com.amazon.ask.smapi.SmapiClients; import org.junit.jupiter.api.Test; public class IntegrationTest { // These come from `ask util generate-lwa-tokens` passing ClientID and SecretID from LWA private static final String CLIENT_ID = "<client_id>"; private static final String CLIENT_SECRET = "

Streaming HTTP audio feed on Alexa

≯℡__Kan透↙ 提交于 2019-12-24 03:22:08
问题 Accordingly to https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/custom-audioplayer-interface-reference: The audio file must be hosted at an Internet-accessible HTTPS endpoint. HTTPS is required, and the domain hosting the files must present a valid, trusted SSL certificate. I want to build a skill to stream a feed from http (NOT https) endpoint. How do I do this? There are other skills (like TuneIn radio) which seem to stream http feeds. Unless they proxy them, which

Alexa - Implementing CanFulfillIntentRequest in python

醉酒当歌 提交于 2019-12-24 01:38:18
问题 I have enabled the CanFulfillIntentRequest from the alexa skill developer console in English(U.S) of my skill. I have added a handler in my lambda for the CanFulfillIntentRequest. When I use the skill tester and type the intent utterance directly (without skill invocation name), it doesn't seem to hit my code. I can't find any related logs in the cloudwatch. def lambda_handler(event, context): print("event.session.application.applicationId=" + event['session']['application']['applicationId'])

How to add slot values dynamically to alexa skill

旧城冷巷雨未停 提交于 2019-12-24 00:54:49
问题 I am new in Alexa development. I have successfully create an Alexa skill with AWS lambda function and Node.js code. This is my intent schema. { "intents": [ { "slots": [ { "name": "locationName", "type": "LOCATION_LIST" } ], "intent": "locationIntent" } ] } Also I have used custom slot type "LOCATION_LIST" with following values. kitchen bedroom bathroom dining area It's working fine. But I need to add more location values dynamically from my own service. Is it possible? Based on my system

Calling Another Alexa intent from within LaunchRequest

烈酒焚心 提交于 2019-12-23 19:28:28
问题 I am working on an Alexa skill where I would like to redirect user to one intent when he opens the skill via LaunchRequest. User says Open xyz skill LaunchRequest receives this and forwards the request to another intent. this.emit('AnotherIntent') AnotherIntent has a SLOT which is required for its functioning. I have setup the SLOT as required and AnotherIntent does work perfectly fine when invoked on its own. However when I Launch the skill and tries to call AnotherIntent from within it as

How to keep an alexa skill open?

心不动则不痛 提交于 2019-12-23 07:40:47
问题 I have created a skill so that people can keep track of some state. But instead of asking alexa everytime to open the app and interact. alexa ask grocerylist to add 2 eggs alexa ask grocerylist to add bread I would want to keep the grocerylist skill open so that users can interact with it until they ask it to close alexa open grocerylist .... 2 mins later add 2 eggs .... 1 min later add bread Is there a way to do this without having to use alexa ask grocerylist every time. 回答1: This is not

Alexa Dialog Model Step and dialogState is never in COMPLETED

*爱你&永不变心* 提交于 2019-12-23 05:15:52
问题 I'm implementing an Alexa Dialog Model with an PHP Endpoint. I used the Alexa doc (https://developer.amazon.com/fr/docs/custom-skills/dialog-interface-reference.html) Here is my example: My skill: RequestIntent Utterance : add an {obj} in the bedroom Slots : {obj} / Slot Filling Phrase: Me : Alexa, Add an object in the bedroom Alexa : What object do you want to add in bedroom ? Me : I would like to add a cars in the bedroom Alexa : You want to add a car in the bedroom ? Me : Yes STEP1:

Returning handler.ResponseBuilder from promise.then() method

柔情痞子 提交于 2019-12-22 10:34:30
问题 In one of the intent handler for my Alexa skill I have to return response once my promise is resolved. Code looks like this : var rcvPromise = receiveMsgQ(); rcvPromise.then(function(speechText) { console.log('rcv Promise resolved with ',speechText); return handlerInput.responseBuilder .speak(speechText) .withSimpleCard('skill_name', speechText) .withShouldEndSession(false) .getResponse(); }); Skill returns with ERROR message with no additional details about error. Is there any way to fix

Alexa not finding my Skill

偶尔善良 提交于 2019-12-21 04:24:32
问题 I created my Alexa Skill as an AWS Lambda Node.js app based on one of the provided examples in the Alexa Skills Kit. I followed all the instructions: My Echo is registered with the same account as my developer account on AWS I configured my Skill on the Amazon developer console I put my application ID from the console into my application code I uploaded my code to the AWS Lambda service (set to N. Virginia, as instructed) I tested my service and it returned the expected JSON I entered my ARN

How can I access a local API using Amazon Alexa

时间秒杀一切 提交于 2019-12-20 14:43:12
问题 I intend to build a set of skills for Amazon Alexa that will integrate with a custom software suite that runs on a RaspberryPi in my home. I am struggling to figure out how I can make the Echo / Dot itself make an API call to the raspberry pi directly - without going through the internet, as the target device will have nothing more then an intranet connection - it will be able to receive commands from devices on the local network, but is not accessible via the world. From what I have read,