13

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.

vidyasagarr7
  • 513
  • 2
  • 6
  • 12
  • I am actually planning to use this service in some other application, not through the amazon echo device. – vidyasagarr7 May 04 '16 at 05:52
  • 1
    You could define your own skill following this https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/getting-started-guide and then debug with the console there. I am not sure, if every thing is possible without an Alexa device, I would guess though. edit: this could help a lot: https://developer.amazon.com/public/community/post/TxDJWS16KUPVKO/New-Alexa-Skills-Kit-Template-Build-a-Trivia-Skill-in-under-an-Hour – choli May 04 '16 at 08:46
  • @choli: thanks a lot. But looking more into the dev pages, it says we could use alexa skill set for manufacturers but, and it talks about the login through website or app. I want to integrate this with an app or a website, say just some webpage that makes a (predefined as specified in skill set) conversation with you. Would like to know I can achieve this. – vidyasagarr7 May 08 '16 at 15:28

6 Answers6

9

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.

John Kelvie
  • 858
  • 1
  • 7
  • 16
7

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.

Ron Lisle
  • 1,164
  • 6
  • 11
  • thanks a lot. But looking more into the dev pages, it says is useful for alexa skill set for manufacturers, and it talks about the login through website or app. I want to integrate this with an app or a website, say just some webpage that makes a (predefined as specified in skill set) conversation with you – vidyasagarr7 May 08 '16 at 15:31
  • 1
    You can try using the Alexa App but that is only for the US as of now. Just download the app and login with the same account in which you developed your alexa skill set. Use "Alexa Ask " – omuthu May 12 '16 at 12:06
  • 1
    The test tab doesn't let you interact completely, it says "Note: Service Simulator does not currently support testing audio player directives, dialog model, customer permissions and customer account linking. Text mode does not support launch intents and single interaction phrases." – Rhythmic Fistman Jan 04 '18 at 07:46
6

Use http://ngrok.com

See my video for a tutorial:

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

John Wheeler
  • 275
  • 2
  • 4
2

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.

spechter
  • 2,058
  • 1
  • 17
  • 23
  • were you able to register / connect Echoism to do dev test ? – Naveen Vijay Feb 01 '17 at 14:59
  • Yes, but the first time I registered was with a real Echo. Echosim pops an Amazon login, right? Just enter your Amazon/AWS dev/login credentials and I assume it might work. But I'm not sure, sorry – spechter Feb 03 '17 at 02:20
  • 1
    yes, it works. I tried it to test my skill in development. I never registered any echo device for this. – Neeraj Singh Feb 17 '17 at 01:38
0

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.

0

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

muneebahmad
  • 119
  • 1
  • 3