This is an old revision of the document!
Table of Contents
Creating an Alexa Skill to Play a Music File
Author: Santiago Ricoy Email: ricoys1@unlv.nevada.edu
Date: Last modified on 12/28/16
Keywords: alexa skill tutorial voice audio playback alexa sdk
This picture shows part of the Amazon Developer console, which allows you to use many items offered by Amazon to developers; in this case, testing the voice-controlled side of an Alexa skill. We need to understand how to stream files through our Alexa-enabled device. Solving this is to some degree is important because it demonstrates the ability to fetch files from the web with the Alexa Voice Service (AVS), which implies it can be used to manipulate and control other items in the cloud, and connected devices. This tutorial shows you how to set up a lambda function that talks to the voice-operated end of an Alexa skill. It takes approximately 1.5 hours to complete.
Motivation and Audience
This tutorial's motivation is to spark innovation in attendees of the IEEE Winter School. The tutorial assumes the reader has the following background and interests:
* Can sign up and learn to use basic AWS services
* Perhaps also know how to navigate Object Oriented code
* Additional background needed may include prior exposure to javascript and node.js
* This tutorial may also attract readers who are interested in voice recognition
The rest of this tutorial is presented as follows:
- Programming <!- delete this line if not applicable →
Required Items
US-based vendors to obtain material to complete this tutorial include <list relevant hyperlinks or phone numbers and addresses>.
To complete this tutorial, you'll need the following items:
- Computer with Internet access
- Wifi internet access
- Node.js runtime installed
- Text editor (Atom was used for this)
PART NAME/DESCRIPTION | VENDOR | VENDOR Number or URL | PRICE | QTY |
---|---|---|---|---|
Amazon Echo Dot | Amazon.com | https://www.amazon.com/All-New-Amazon-Echo-Dot-Add-Alexa-To-Any-Room/dp/B01DFKC2SO/ref=sr_1_2?ie=UTF8&qid=1483065428&sr=8-2&keywords=echo | $49.99 | 1 |
Here is the list as a Google XLS document
Construction
This section gives step-by-step instructions along with photos to <fill in the blank>. (If a circuit-building tutorial:) A schematic to construct <fill in the blank> is shown here <add image>. <Add hyperlink to PDF of schematic> is the Acrobat file of the same schematic.
Step 1
<Add photos to make step easier to understand>
Step 2
<Additional steps like Step 3, Step 4, etc>
Programming
A link to the source code can be found <provide URL to your code, probably saved in this DASL Wiki>.
The goal of the code is <brief explanation>. It works in the following way
<!- Insert a snippet of your code here. Try to keep to less than 0.5 page long –>
The snippet above serves to <fill in the blank>. It does this by <fill in the blank>.
<!- Insert another snippet of your code here. Try to keep to less than 0.5 page long –>
Next, the code does <fill in the blank>. It does this by <fill in the blank>.
Final Words
This tutorial's objective was to <fill in the blank>. Complete <choose: construction details, source code and program descriptions> for <fill in the blank>. Once the concepts were conveyed the reader could <fill in the blank>.
Speculating future work derived from this tutorial, includes <fill in the blank>. In the big picture, the problem of <fill in the blank> can be solved with this tutorial.
For questions, clarifications, etc, Email: paul.oh@unlv.edu