User Tools

Site Tools


music_player_skill

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
music_player_skill [2017/01/02 00:32] santiagoricoymusic_player_skill [2017/01/02 00:38] (current) santiagoricoy
Line 243: Line 243:
 What we do define is what the end user will say to invoke our skill, or navigate options within the skill. What we do define is what the end user will say to invoke our skill, or navigate options within the skill.
  
-{{:sricoy:echo_music:alexainteractionmodel.png?nolink&600 |}}+{{:sricoy:echo_music:alexainteractionmodel.png?nolink&600|}}
  
 The intent schema and sample utterances combined represent things the user might say, and what to do in response. The intent schema and sample utterances combined represent things the user might say, and what to do in response.
Line 253: Line 253:
 For more on defining an Alexa skill's voice interface, please visit this [[https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/defining-the-voice-interface#The Intent Schema|link]]. For more on defining an Alexa skill's voice interface, please visit this [[https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/defining-the-voice-interface#The Intent Schema|link]].
  
-{{::alexaglobalfields.png?nolink&500 |}}+{{:alexaglobalfields.png?nolink&500|}} 
  
 We must send our request somewhere, and the global fields section of our skill allows us to specify whether we are sending requests to our own URL or to an AWS Lambda function. It is easier to use the Amazon Resource Number (ARN) of a Lambda function, because we do not have to deal with any specifics concerning how our requests are sent to the Lambda function, we only need to write the code that our function will use to handle requests. We must send our request somewhere, and the global fields section of our skill allows us to specify whether we are sending requests to our own URL or to an AWS Lambda function. It is easier to use the Amazon Resource Number (ARN) of a Lambda function, because we do not have to deal with any specifics concerning how our requests are sent to the Lambda function, we only need to write the code that our function will use to handle requests.
  
    
-    2. **The Lambda Function**+2. **The Lambda Function**
  
 The Lambda function is where our code is hosted and responds when triggered by the Alexa skill. Otherwise, the function will sit idle and do nothing, making it very efficient for our purposes. With that said, let's take a brief look at our code below. The Lambda function is where our code is hosted and responds when triggered by the Alexa skill. Otherwise, the function will sit idle and do nothing, making it very efficient for our purposes. With that said, let's take a brief look at our code below.
  
 <code javascript> <code javascript>
 +
 'use strict'; 'use strict';
  
Line 293: Line 295:
 For more on handling requests, please visit this link: [[https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/handling-requests-sent-by-alexa|Handling Requests]] For more on handling requests, please visit this link: [[https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/handling-requests-sent-by-alexa|Handling Requests]]
  
-   3. IAM and the DynamoDB Table+3. **IAM and the DynamoDB Table**
        
-   {{::iammanagement.png?nolink&500 |}}+{{:iammanagement.png?nolink&500|}}
        
 In our example, we don't explicitly setup an Amazon DynamoDB table, but rather it is set up by our Lambda function. However, when we created a role with the Identity and Access Management service (IAM) and set it as our Lambda function's role, we were giving our function permission to create that table for us, as well as access to our Amazon Cloudwatch service. In our example, we don't explicitly setup an Amazon DynamoDB table, but rather it is set up by our Lambda function. However, when we created a role with the Identity and Access Management service (IAM) and set it as our Lambda function's role, we were giving our function permission to create that table for us, as well as access to our Amazon Cloudwatch service.
music_player_skill.1483345958.txt.gz · Last modified: by santiagoricoy