vidyasagarr7
vidyasagarr7

Reputation: 523

How to test the amazon alexa custom skill through your computer while in development phase?

I am trying to use the sample code provided for Amazon Alexa API, and trying to run hello world / history buff examples through the computer. How do I test from my local machine, about the request and response formats. In the README file it is given to visit this website : http://echo.amazon.com/#skills, but I could see nothing there as it mentions more about connecting to the device. I dont have the device, but I would like to test things locally through my laptop.

Upvotes: 13

Views: 8100

Answers (6)

muneebahmad
muneebahmad

Reputation: 119

You can also test your skill locally by following this tutorial: How to test your Alexa skill locally

Upvotes: 0

spechter
spechter

Reputation: 2368

I'm guessing the key point in OP's question is "dont have the device".

There is a web simulator at https://echosim.io

It behaves just like any other Alexa 'device'. Login with your Amazon account and it picks up all your selected skills, etc. Shows up as just another device in the Alexa app.

Only downsides: You have to click to talk, and it's pretty slow, presumably because it has to receive, buffer, convert and re-ship the audio.

Also, I'm not sure how you register/connect to the Alexa service in the first place without an Echo/Dot device, but I assume there is a way.

UPDATE:

More recently, there are a number of free 3rd-party apps on Android and iOS devices to also simulate an Alexa/Echo device. It can be less klunky than the web site. Search for 'Alexa' in your App/Play store and try a few of them out. "Reverb" is one: https://itunes.apple.com/us/app/reverb-for-amazon-alexa/id1144695621

Good luck.

Upvotes: 2

means-to-meaning
means-to-meaning

Reputation: 123

I dont have the device, but I would like to test things locally through my laptop.

If you are developing the skill using an AWS Lambda function in Python, have a look at: https://pypi.python.org/pypi/FirstAlexaSkills/0.1.2

It can generate custom Alexa events based on your parameters (utterances, slot variables) and allows you to create test cases against your local code, as well as against AWS Lambda itself.

Upvotes: 0

John Kelvie
John Kelvie

Reputation: 858

We have a tool that we built specifically for this purpose: https://bespoken.tools/blog/2016/08/24/introducing-bst-proxy-for-alexa-skill-development

Requests and responses from Alexa will be sent directly to your development laptop, so that you can quickly code and debug without having to do any deployments. We have found this to be very useful for our own development.

Our Github project is here: https://github.com/bespoken/bst

We are also adding other useful commands for Alexa development.

Upvotes: 9

John Wheeler
John Wheeler

Reputation: 285

Use http://ngrok.com

See my video for a tutorial:

https://youtu.be/eC2zi4WIFX0?t=108

Upvotes: 6

Ron Lisle
Ron Lisle

Reputation: 1164

Yes, the Test tab in the Alexa Developer Console allows you to interact completely with your skill during development.

You will type in your utterances instead of speaking them, but from a program logic perspective, there is no difference.

The Test page also provides a place to type in your skill's reponses, to see what they'll actually sound like. I recommend that you do so if you don't have an actual device. Sometimes adding or removing a comment can help make the responses easier to understand, or sound more natural.

Upvotes: 7

Related Questions