alexa

Alexa Skill AudioPlayer: Console test Support poor support/bugs

空扰寡人 提交于 2019-12-20 02:52:05
问题 I'm developing a skill to play my own music. I have troubles with AudioPlayer with the developer console test environment ( https://developer.amazon.com/alexa/console/ask/test/ ). Two questions: 1. AudioPlayer Built-in Intents doesn't run as expected (test simulator bug?) Alexa, play mymusicsSkill playing Wanderer track 1: Antelao Adrift Alexa, next What would you like to play next? Ask mymusicSkill next intent: next See also screenshot: BTW, my code: 'AMAZON.NextIntent': function () { this

Node.js Lambda function returns “The response is invalid” back to Alexa Service Simulator from REST call

て烟熏妆下的殇ゞ 提交于 2019-12-18 09:14:03
问题 Having issues making a REST call to an API between a node.js Lambda function and Alexa. I'm using the request library to make the calls with an account linked skill. I've only set one sample utterance for the intent, and the simulator see this fine. Also, the cloudwatch logs show a 200 response code from the api endpoint and any of the returned data from the API from console.logs to CW. 'use strict'; var http = require('http'); var request = require('request'); var Alexa = require('alexa-sdk'

Amazon Alexa skill: We were unable to link xxxx at this time. And with 401 Unauthorized

岁酱吖の 提交于 2019-12-17 21:22:45
问题 Amazon Alexa skill: We were unable to link xxxx at this time. And with 401 Unauthorized. =================================================================== Skill model: CUSTOM Skill STATUS: In Development Account Linking: Auth Code Grant Client Authentication Scheme: "HTTP Basic" (Credentials in request body is the same error) Default Access Token Expiration Time: 360 1,Use Browser on Microsoft Windows open https://alexa.amazon.com/spa/index.html In "DEV SKILLS", Enable my CUSTOM skill,

MQTT in AWS Lambda function for Alexa Javascript

天涯浪子 提交于 2019-12-13 07:17:31
问题 Please help, I need to use mqtt protocol in lambda function to send some data to a broker. I use simple code to test it : mqtt = require('mqtt'); var client = mqtt.connect('mqtt://test.mosquitto.org'); client.on('connect', function () { client.subscribe('presence'); client.publish('presence', 'Hello mqtt'); }); client.on('message', function (topic, message) { // message is Buffer console.log(message.toString()); client.end(); }); But I get an error "Cannot find module 'mqtt'", how can I

Alexa and mysql remote endpoint cannot be called or has invalid input

社会主义新天地 提交于 2019-12-12 21:20:30
问题 I'm trying to connect alexa to mysql. The database is stored in localhost,via xampp. I've got nodejs-mysql connection perfectly, but when i try to incorporate it with alexa, it says "The remote endpoint could not be called, or the response it returned was invalid." My database file:- var mysql=require('mysql'); var con=mysql.createConnection({ host:'localhost', user: 'root', password:'', database:'ctp' }); function answer(){} answer.prototype.getdata= function(question,callback) { sql="select

AWS API to get Alexa voice

拥有回忆 提交于 2019-12-12 15:11:43
问题 Does anyone know if there is an AWS API or similar that would allow me to send in text (or SSML), and get back the audio of Alexa 'speaking' it. Crucially, I want the output in Alexa's 'voice' The options I have explored so far are: AWS Polly This was my first port of call and sounds promising, and simple to interact with; but the available voices do not include Alexa's voice (I think the GB voice for Alexa is 'Abbey') If I didn't need the voice to be Alexa's, I'd probably be using this idea

update Interaction Model without resubmission

让人想犯罪 __ 提交于 2019-12-12 12:47:49
问题 My intention is my users can insert some intent to my alexa skill using my applications. So I need to change the intent schema and sample utterance of my alexa skill dynamically. Is there any way to update intent schema and sample utterances without resubmisson and without using amazon developer portal. Thanks 回答1: No, there is no way to update the configuration of a skill programmatically or dynamically. There is a popular feature request in for this though:. https://forums.developer.amazon

Alexa Flask Ask Yes / No response handling

筅森魡賤 提交于 2019-12-12 08:14:37
问题 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

HTTP request with Alexa and Lambda on SDK v2, how to make it works?

℡╲_俬逩灬. 提交于 2019-12-12 08:09:45
问题 I am playing with ASK SDK v2 provided by Amazon in order to make Skill for Alexa but I face an architectural problem : First of all, the HTTP request works like a charm but I would like to return speach response if and only if my HTTP request is complete but I don't even know if it's possible because of the "handle" function that should return something (look at comments) : const MyIntentHandler = { canHandle(handlerInput) { const request = handlerInput.requestEnvelope.request; return request

“errorMessage”: “event is not defined” in lambda function

廉价感情. 提交于 2019-12-12 02:27:42
问题 I am creating my first Alexa skill which fetches data from dynamodb table. I am naive in node.js and alexa both. I was successfully able to create a sample Space geek skill set , and then when I created my own skill set I used the same package( to make sure the libraries, response files remain the same) but only changed the index.js ( which is my lambda funnction). When I am testing this function on lambda console , I am getting the below error: { "errorMessage": "event is not defined",