Skip to content

Latest commit

 

History

History
78 lines (50 loc) · 3.22 KB

File metadata and controls

78 lines (50 loc) · 3.22 KB

Quick Setup with BST

If you would like to get started working with this project quickly, to see how the new streaming works, just follow these directions.

You can take a look at the [deploy README] (./README_DEPLOY.md) if/when you want to make the skill available publicly. These steps will allow you to get quickly setup and then do "frictionless iterations" on your code.

Running the Sample

  1. Clone the project
git clone https://github.com/alexa/skill-sample-nodejs-audio-player.git
cd skill-sample-nodejs-audio-player/js
npm install
  1. Install Bespoken Tools

The Bespoken Tools (aka bst) make it easy to debug and develop your skills locally.

The proxy tool, which we will be using, works by redirecting traffic from the Alexa service directly to your development laptop or machine.

npm install bespoken-tools -g
  1. Run bst proxy to get setup

From the directory where you cloned the project, switch to the "js" folder and run the bst proxy:

cd js
bst proxy lambda index.js

The proxy will print out some basic information:

BST: v0.6.12  Node: v6.3.0

Your URL for Alexa Skill configuration:
https://proxy.bespoken.tools?node-id=83118179-ae4a-4132-8c15-82af566efa2b

The URL that is printed out will be used in the next step.

  1. Create or login to an Amazon Developer account. In the Developer Console:

Create an Alexa Skill named MySkill and using the invocation name "my skill" and select 'Yes' for Audio Player support: alt text

Copy the contents of speechAssets/intentSchema.json and speechAssets/Utterances.txt into the intent schema and sample utterances fields on the Interaction Model tab:     alt text

Set the URL from above in the Configuration tab: alt text

  1. Try it out

Via the Test tab, enable the skill for testing: alt text

Then send an intent to your skill: alt text

You will also see the output from your skill in the terminal window where the bst proxy is running:

alt text

Pretty cool, right?!

Enjoy!

You can run wild with it now - make changes and see them show up instantaneously.

You can even test from your Alexa device - give it a try!

We love feedback - talk to us on Gitter at:
https://gitter.im/bespoken/bst