alexa

How to make phone call from custom alexa skill

◇◆丶佛笑我妖孽 提交于 2019-12-04 05:46:57
My intent to call the specified phone number from my own skill. For example Me: Alexa, ask <invocation> to find the customer service number Alexa: Sure, the customer service number is 1800-xxx-xxx-xxx. Would you like to call Me: Yes [HOW TO MAKE CALL NOW?] It would be possible to open a phone call from your programmed skill (alexa skill service). But for sure you not just want to start the call but also that the user can speak into alexa? But it's not possible to get the voice from the user. Amazon Alexa transfers the speech input into text. Your skill service only get JSON requests from the

How to get an Alexa userId?

非 Y 不嫁゛ 提交于 2019-12-04 00:13:57
I'm building an Alexa Skill, and it requires that I store the userId of a user. I've tried to retrieve it with event.session.user.userId . However, when I call console.log(event.session.user.userId) the output is literally amzn1.ask.account.[unique-value-here] . I've looked at several similar questions, and none of them provide a clear enough answer for me. I'm not sure if this is a bug, a developer-only thing, or if the userId is simply anonymized. If so, is there a way to get the actual userId? I imagine there would be, since Amazon has written an entire guide on it here: https://developer

How to loop audio in Alexa

空扰寡人 提交于 2019-12-03 20:38:15
I am building a ambient audio skill for sleep for Alexa! I am trying to loop the audio so I don't have to download 10 hour versions of the audio. How do I get the audio to work? I have it build to where it will play the audio, but not loop. I've solved this problem in my skill Rainmaker: https://www.amazon.com/Arif-Gebhardt-Rainmaker/dp/B079V11ZDM The trick is to handle the PlaybackNearlyFinished event. https://developer.amazon.com/de/docs/alexa-voice-service/audioplayer.html#playbacknearlyfinished This event is fired shortly before the currently playing audio stream is ending. Respond to the

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

How to calculate PageViews of a site using Alexa stats (formula?)

霸气de小男生 提交于 2019-12-03 07:52:39
问题 As simple as it sounds, I just want to know how to calculate the PageViews of a site using Alexa stats. Alexa gives PageViews per-million and reach % of total Internet users, etc. I only want a formula using Alexa data to calculate it. I know, Alexa data is not exact but my problem will be solved by that. Thanks in advance. 回答1: ( 10909000000 * alexa_pageView_percent ) / 30 then you'll get the rough estimate of the websites pageview in a day. Note that it is only a estimate. Its not really

MQTT in AWS Lambda function for Alexa Javascript

匿名 (未验证) 提交于 2019-12-03 01:45:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: 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

How to Authenticate with Alexa Voice Service from Android?

匿名 (未验证) 提交于 2019-12-03 01:20:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I am trying to connect to Alexa Voice Service from and Android app following the directions on this page. https://developer.amazon.com/public/solutions/alexa/alexa-voice-service/docs/authorizing-your-alexa-enabled-product-from-an-android-or-ios-mobile-app Bundle options = new Bundle (); String scope_data = "{\"alexa:all\":{\"productID\":\"" + PRODUCT_ID + "\", \"productInstanceAttributes\": {\"deviceSerialNumber\":\"" + PRODUCT_DSN + "\"}}}" ; options . putString ( AuthzConstants . BUNDLE_KEY . SCOPE_DATA . val , scope_data );

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