alexa-skill

Linking Netatmo Weather Station to Amazon Echo (Alexa)

岁酱吖の 提交于 2019-12-03 16:53:42
[Full tutorial in the answered question below. Feedback welcome!] I am trying to create an AWS Lambda function to use for an Amazon Alexa skill to fetch weather information from my Netatmo weatherstation. Basically, I need to connect to the Netatmo cloud via http request. Here's a snippet of my code, the http request is done for the temporary access token, the request is ok but the result body is body: {"error":"invalid_request"}. What could be the problem here? var clientId = ""; var clientSecret = ""; var userId="a@google.ro"; var pass=""; function getNetatmoData(callback, cardTitle){ var

Alexa Flask Ask Yes / No response handling

。_饼干妹妹 提交于 2019-12-03 16:33:08
I am trying to create a simple Alexa skill using Flask Ask in python. I have an intent called "SearchIntent" with a "searchterm" slot and the python code looks something like this: @ask.intent("SearchIntent") def SearchIntent(searchterm): resList = [] searchterm = searchterm.lower() for item in somelist: if item.find(searchterm) != -1: resList.append(item) return question("I Found " + str(len(resList)) + ", Do you want me to list them all?") I want to check if the response from the user, if he says "Yes" than read all the results: return statement('\n'.join(resList)) and if the user says no,

Alexa Skill Development using flask-ask and ngrok

左心房为你撑大大i 提交于 2019-12-03 12:20:09
I'm trying to begin developing a skill for alexa using flask-ask and ngrok in python. Following is my code: from flask import Flask from flask_ask import Ask, statement, question, session import json import requests import time import unidecode app = Flask(__name__) ask = Ask(app, "/reddit_reader") def get_headlines(): titles = 'is this working' return titles @app.route('/') def homepage(): return "hi there, how ya doin?" @ask.launch def start_skill(): welcome_message = 'Hello there, would you like the news?' return question(welcome_message) @ask.intent("YesIntent") def share_headlines():

Alexa Custom Slot Type: No value in intent

北慕城南 提交于 2019-12-03 07:54:46
问题 I've already posted this question to the amazon developer forum but don't receive an answer there. I guess Stackoverflow should've been the first choice from the beginning: From my understanding if I use a Custom Slot Type even if the list of its possible values does not contain the spoken word the spoken word is still passed to the function. The documentation says A custom slot type is not the equivalent of an enumeration. Values outside the list may still be returned if recognized by the

Alexa Custom Slot Type: No value in intent

不打扰是莪最后的温柔 提交于 2019-12-02 21:23:09
I've already posted this question to the amazon developer forum but don't receive an answer there. I guess Stackoverflow should've been the first choice from the beginning: From my understanding if I use a Custom Slot Type even if the list of its possible values does not contain the spoken word the spoken word is still passed to the function. The documentation says A custom slot type is not the equivalent of an enumeration. Values outside the list may still be returned if recognized by the spoken language understanding system. Now I have a Custom Slot Type LIST_OF_PERSONS with values Matthias

Amazon Alexa Skill

允我心安 提交于 2019-12-02 17:59:48
问题 I want to ask alexa different sorts of questions and then at the end I want it should ask "Is there anything else you would like to know?" and when I say yes (where yes is working suggestion) it should suggest me according to the intent I am in. Like if I am in IncityIntent: 'InCityIntent': function () { speechOutput = ''; speechOutput = "The atmosphere in the city is beautiful. Is there anything else you would like to know"; this.emit(":ask", speechOutput, speechOutput); 'YesIntent':

Amazon Alexa Skill

拥有回忆 提交于 2019-12-02 12:10:12
I want to ask alexa different sorts of questions and then at the end I want it should ask "Is there anything else you would like to know?" and when I say yes (where yes is working suggestion) it should suggest me according to the intent I am in. Like if I am in IncityIntent: 'InCityIntent': function () { speechOutput = ''; speechOutput = "The atmosphere in the city is beautiful. Is there anything else you would like to know"; this.emit(":ask", speechOutput, speechOutput); 'YesIntent': function () { speechOutput = ''; /*when the user say yes, he should get this output*/ speechOutput = You can

Ask user for input from LaunchIntent

那年仲夏 提交于 2019-12-02 10:25:32
I'm writing a skill in Node JS 8. I have an intent set up with slots and it works properly if I say Ask {skill name} to {utterance}. I'd like to design my skill so that the user can just say Open {skill Name} and on opening it will ask them for input that will then be handled and passed to the intent. I've seen multiple people say that you can't do this. But I've used 2 skills today that did exactly this. I'm just looking for the correct syntax to do this. I have: 'LaunchRequest': function() { this.response.speak("What note would you like?"); this.emit(':responseReady'); } Which seems like it

“Alexa, open Mighty Righty” - works /// “Alexa, ask Mighty Righty who is right, me or my husband” doesn't work (hmm, I don't know that one)

为君一笑 提交于 2019-12-02 02:13:03
My published skill can be invoked by "Alexa, open Mighty Righty," but it won't work if a user says "Alexa, ask Mighty Righty who is right, me or my husband," how to do that? https://www.amazon.com/dp/B07SGBR24G/ This is the link to the working published skill. #------------------------------Part1-------------------------------- # In this part we define a list that contains the player names, and # a dictionary with player biographies Player_LIST = ["me or my wife", "me or my husband", "me or you"] Player_BIOGRAPHY = {"me or my wife": ["She is. Do as she says, and you'll be OK.", "You", "Of

alexa skill user input for spelling out letters

别说谁变了你拦得住时间么 提交于 2019-12-01 21:11:34
I'd like Alexa to be able to accept a variable-length list of English letters to my custom skill. It will allow users to search based on a string. There's two steps to this: Getting good representation for individual letters that Alexa can understand Enumerating sample utterances with variable number of letters For the first, one way would be to define a custom slot that has as its enumerated values of the English alphabet: SLOT_LETTER ay bee see dee ee eff gee ... etc but that feels hacky. Does Amazon support any way to do this or is there a cleverer way? I'd really rather not use NATO