alexa

Amazon S3 tags when put together if more then five then the combination doesn't play? What might be the reason? I am trying to play this--

帅比萌擦擦* 提交于 2020-01-07 08:34:07
问题 <speak> <audio src = "https://s3.amazonaws.com/morsecodesounds/Is.mp3" /> <audio src = "https://s3.amazonaws.com/morsecodesounds/Ie.mp3" /> <audio src = "https://s3.amazonaws.com/morsecodesounds/Il.mp3" /> <audio src = "https://s3.amazonaws.com/morsecodesounds/Ie.mp3" /> <audio src = "https://s3.amazonaws.com/morsecodesounds/Ic.mp3" /> <audio src = "https://s3.amazonaws.com/morsecodesounds/It.mp3" /> </speak> This is what i tested on the alexa developer console did not play it. 回答1: Just to

Can I create a Alexa Skill that can read my report available in CSV (or JSON) format?

匆匆过客 提交于 2020-01-06 08:16:08
问题 Can we create an Alexa Skill that could read out the data on my CSV (or JSON) file? I would like to create a voice-bot to read out my weekly report. I can have my report available in either CSV or JSON format. It would be great if we aren't using any already built 3rd party apps. I would like to write it from scratch. 回答1: As a short answer, yes. That should totally be possible. I currently have a skill that gets the response from a JSON file (it gets the required response, based on the

How can i restart a dialog in Alexa Skill

99封情书 提交于 2020-01-03 05:07:06
问题 I have a NewContactIntent where the user enters data like first name and mobile number etc. I want him to be able to restart the dialog at any point. Therefore I have a RestartIntent so when the user says 'Restart' the RestartIntentHandler handles the request and should forward it back to the NewContactIntent. Here is the code: const NewContactIntentHandler = { canHandle(handlerInput) { return handlerInput.requestEnvelope.request.type === 'IntentRequest' && handlerInput.requestEnvelope

How to fallback into error when reprompt is processed in Alexa Skill

让人想犯罪 __ 提交于 2020-01-03 04:23:06
问题 I'm new to developing Alexa Skills. I'm working on a Skill for the Spanish store, so I'm using the es-ES voice. I use the Node.js ASK-SDK and I've come across this issue: When I'm trying to develop a conversation with reprompt, if the user says gibberish, that shouldn't trigger any of my utterances, I expect to enter in the Error Handler, as it's the one with canHandle == true, but the actual result is that that gibberish is detected and sorted by Alexa as one of the correct utterances. I've

Getting an Alexa Slot value out of an intent

爱⌒轻易说出口 提交于 2020-01-02 03:59:44
问题 I'm working to build an Alexa skill and have run into a roadblock on getting my slot values out of the intent object. The intent object JSON looks like so: "intent": { "name": "string", "slots": { "string": { "name": "string", "value": "string" } } } My question is what will that first "string" value be to identify the slots? The documentation has this: A map of key-value pairs that further describes what the user meant based on a predefined intent schema. The map can be empty. The key is a

Ask user for input from LaunchIntent

拈花ヽ惹草 提交于 2019-12-31 07:29:14
问题 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()

Adding session attributes in Python for Alexa skills

泄露秘密 提交于 2019-12-30 03:35:14
问题 I have 3 slots ( account , dollar_value , recipient_first ) within my intent schema for an Alexa skill and I want to save whatever slots are provided by the speaker in the session Attributes. I am using the following methods to set session attributes: def create_dollar_value_attribute(dollar_value): return {"dollar_value": dollar_value} def create_account_attribute(account): return {"account": account} def create_recipient_first_attribute(recipient_first): return {"recipient_first": recipient

Vue(四):实例化第一个Vue应用

ぐ巨炮叔叔 提交于 2019-12-27 02:23:37
实例化语法 var vm = new Vue({ // 选项 }) Vue 构造器中的内容 <!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>Vue 测试实例</title> <script src="https://cdn.staticfile.org/vue/2.4.2/vue.min.js"></script> </head> <body> <div id="vue_det"> <h1>site : {{site}}</h1> <h1>url : {{url}}</h1> <h1>{{details()}}</h1> </div> <script type="text/javascript"> var vm = new Vue({ el: '#vue_det', data: { site: "我的第一个Vue应用", url: "www.xxxxx.com", alexa: "10000" }, methods: { details: function() { return this.site + " - 学的既是技术,更是梦想!"; } } }) </script> </body> 可以看到在 Vue 构造器中有一个el 参数,它是 DOM 元素中的 id。在上面实例中 id 为 vue_det,在

1.Json的学习--JSON.stringfy()

点点圈 提交于 2019-12-25 18:49:44
1.JSON.parse() JSON.parse() JSON 通常用于与服务端交换数据。 在接收服务器数据时一般是字符串。 我们可以使用 JSON.parse() 方法将数据转换为 JavaScript 对象。 JSON.parse(text[, reviver]) 参数说明: text: 必需, 一个有效的 JSON 字符串。 reviver: 可选,一个转换结果的函数, 将为对象的每个成员调用此函数. JSON 解析实例 例如我们从服务器接收了以下数据: { " name " : " runoob " , " alexa " : 10000 , " site " : " www.runoob.com " } 我们使用 JSON.parse() 方法处理以上数据,将其转换为 JavaScript 对象: var obj = JSON . parse ( ' { "name":"runoob", "alexa":10000, "site":"www.runoob.com" } ' ) ; 从服务端接收数组的 JSON 数据 如果从服务端接收的是数组的 JSON 数据,则 JSON.parse 会将其转换为 JavaScript 数组: 异常 解析数据 JSON 不能存储 Date 对象。 如果你需要存储 Date 对象,需要将其转换为字符串。 之后再将字符串转换为 Date

alexa Steam custom skill api integration

冷暖自知 提交于 2019-12-25 09:02:15
问题 currently trying to develop one of my first alexa skills. trying to build a skill that updates the user on who out of their Steam friends, are online. Curerntly it's pretty messy and not in the format i hope it to be in the end, but for testing purposes, I'm not yet using intents, im just testing using the launchrequest. So far I've managed to get a users (mine) friends list from steam and put all the friends ids in a url that should be able to grab the details for these users. The issue I'm